	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_nphy_pa_override
_b43_nphy_pa_override:                  ## @b43_nphy_pa_override
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %eax
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	_B43_NPHY_RFCTL_INTC1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	testl	%eax, %eax
	je	LBB0_1
## %bb.7:
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_b43_phy_write
	movl	4(%rbx), %ebx
	jmp	LBB0_8
LBB0_1:
	movq	%r14, %rdi
	callq	_b43_phy_read
	movl	%eax, (%rbx)
	movq	_B43_NPHY_RFCTL_INTC2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_b43_phy_read
	movl	%eax, 4(%rbx)
	movl	16(%r14), %edi
	callq	_b43_current_band
	movl	(%r14), %ecx
	movl	$5248, %ebx                     ## imm = 0x1480
	cmpl	$6, %ecx
	jg	LBB0_6
## %bb.2:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	$3, %ecx
	jl	LBB0_4
## %bb.3:
	cmpl	%edx, %eax
	movl	$1536, %eax                     ## imm = 0x600
	movl	$1152, %ebx                     ## imm = 0x480
	jmp	LBB0_5
LBB0_4:
	cmpl	%edx, %eax
	movl	$384, %eax                      ## imm = 0x180
	movl	$288, %ebx                      ## imm = 0x120
LBB0_5:
	cmovel	%eax, %ebx
LBB0_6:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_b43_phy_write
LBB0_8:
	movq	_B43_NPHY_RFCTL_INTC2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_phy_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_NPHY_RFCTL_INTC1,4,2       ## @B43_NPHY_RFCTL_INTC1
	.comm	_B43_NPHY_RFCTL_INTC2,4,2       ## @B43_NPHY_RFCTL_INTC2
	.comm	_NL80211_BAND_5GHZ,4,2          ## @NL80211_BAND_5GHZ
	.no_dead_strip	_b43_nphy_pa_override
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_nphy_pa_override
_b43_nphy_pa_override:                  ; @b43_nphy_pa_override
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x8, x1
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x22, _B43_NPHY_RFCTL_INTC1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _B43_NPHY_RFCTL_INTC1@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x21, _B43_NPHY_RFCTL_INTC2@GOTPAGE
Lloh3:
	ldr	x21, [x21, _B43_NPHY_RFCTL_INTC2@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w2, [x20]
	mov	x0, x19
	bl	_b43_phy_write
	ldr	w20, [x20, #4]
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_b43_phy_read
	str	w0, [x20]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43_phy_read
	str	w0, [x20, #4]
	ldr	w0, [x19, #16]
	bl	_b43_current_band
	ldr	w8, [x19]
	cmp	w8, #6
	b.le	LBB0_4
; %bb.3:
	mov	w20, #5248
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	mov	w10, #288
	mov	w11, #384
	cmp	w0, w9
	csel	w9, w11, w10, eq
	mov	w10, #1152
	mov	w11, #1536
	csel	w10, w11, w10, eq
	cmp	w8, #3
	csel	w20, w9, w10, lt
LBB0_5:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_b43_phy_write
LBB0_6:
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_b43_phy_write
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_NPHY_RFCTL_INTC1,4,2       ; @B43_NPHY_RFCTL_INTC1
	.comm	_B43_NPHY_RFCTL_INTC2,4,2       ; @B43_NPHY_RFCTL_INTC2
	.comm	_NL80211_BAND_5GHZ,4,2          ; @NL80211_BAND_5GHZ
	.no_dead_strip	_b43_nphy_pa_override
.subsections_via_symbols
