	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpphy_rev2plus_set_rx_gain
_lpphy_rev2plus_set_rx_gain:            ## @lpphy_rev2plus_set_rx_gain
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movzwl	%r15w, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	shrl	$16, %r13d
	andl	$15, %r13d
	movl	%esi, %ebx
	shrl	$21, %ebx
	andl	$1, %ebx
	xorl	%ecx, %ecx
	testl	$1048576, %esi                  ## imm = 0x100000
	sete	%cl
	movq	_B43_LPPHY_RF_OVERRIDE_VAL_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$65534, %edx                    ## imm = 0xFFFE
	callq	_b43_phy_maskset
	movq	_B43_LPPHY_RF_OVERRIDE_2_VAL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%ebx, %ecx
	shll	$9, %ecx
	movq	%r14, %rdi
	movl	$65023, %edx                    ## imm = 0xFDFF
	callq	_b43_phy_maskset
	movl	(%r12), %esi
	shll	$10, %ebx
	movq	%r14, %rdi
	movl	$64511, %edx                    ## imm = 0xFBFF
	movl	%ebx, %ecx
	callq	_b43_phy_maskset
	movq	_B43_LPPHY_RX_GAIN_CTL_OVERRIDE_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_b43_phy_write
	movq	_B43_LPPHY_AFE_DDFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$65520, %edx                    ## imm = 0xFFF0
	movl	%r13d, %ecx
	callq	_b43_phy_maskset
	movl	(%r14), %edi
	callq	_b43_current_band
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	shrl	$2, %r15d
	andl	$3, %r15d
	movq	_B43_LPPHY_RF_OVERRIDE_2_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %ecx
	shll	$11, %ecx
	movq	%r14, %rdi
	movl	$59391, %edx                    ## imm = 0xE7FF
	callq	_b43_phy_maskset
	movl	$230, %edi
	callq	_B43_PHY_OFDM
	shll	$3, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$65511, %edx                    ## imm = 0xFFE7
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_phy_maskset                ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_LPPHY_RF_OVERRIDE_VAL_0,4,2 ## @B43_LPPHY_RF_OVERRIDE_VAL_0
	.comm	_B43_LPPHY_RF_OVERRIDE_2_VAL,4,2 ## @B43_LPPHY_RF_OVERRIDE_2_VAL
	.comm	_B43_LPPHY_RX_GAIN_CTL_OVERRIDE_VAL,4,2 ## @B43_LPPHY_RX_GAIN_CTL_OVERRIDE_VAL
	.comm	_B43_LPPHY_AFE_DDFS,4,2         ## @B43_LPPHY_AFE_DDFS
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.no_dead_strip	_lpphy_rev2plus_set_rx_gain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpphy_rev2plus_set_rx_gain
_lpphy_rev2plus_set_rx_gain:            ; @lpphy_rev2plus_set_rx_gain
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	and	w21, w1, #0xffff
	ubfx	w22, w1, #16, #4
	ubfx	w24, w1, #21, #1
	mov	w8, #1
	bic	w3, w8, w1, lsr #20
Lloh0:
	adrp	x8, _B43_LPPHY_RF_OVERRIDE_VAL_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_LPPHY_RF_OVERRIDE_VAL_0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #65534
	bl	_b43_phy_maskset
Lloh3:
	adrp	x23, _B43_LPPHY_RF_OVERRIDE_2_VAL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _B43_LPPHY_RF_OVERRIDE_2_VAL@GOTPAGEOFF]
	ldr	w1, [x23]
	lsl	w3, w24, #9
	mov	x0, x19
	mov	w2, #65023
	bl	_b43_phy_maskset
	ldr	w1, [x23]
	lsl	w3, w24, #10
	mov	x0, x19
	mov	w2, #64511
	bl	_b43_phy_maskset
Lloh5:
	adrp	x8, _B43_LPPHY_RX_GAIN_CTL_OVERRIDE_VAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _B43_LPPHY_RX_GAIN_CTL_OVERRIDE_VAL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_b43_phy_write
Lloh8:
	adrp	x8, _B43_LPPHY_AFE_DDFS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _B43_LPPHY_AFE_DDFS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65520
	mov	x3, x22
	bl	_b43_phy_maskset
	ldr	w0, [x19]
	bl	_b43_current_band
Lloh11:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ubfx	w20, w20, #2, #2
	ldr	w1, [x23]
	lsl	w3, w20, #11
	mov	x0, x19
	mov	w2, #59391
	bl	_b43_phy_maskset
	mov	w0, #230
	bl	_B43_PHY_OFDM
	mov	x1, x0
	lsl	w3, w20, #3
	mov	x0, x19
	mov	w2, #65511
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_b43_phy_maskset
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_LPPHY_RF_OVERRIDE_VAL_0,4,2 ; @B43_LPPHY_RF_OVERRIDE_VAL_0
	.comm	_B43_LPPHY_RF_OVERRIDE_2_VAL,4,2 ; @B43_LPPHY_RF_OVERRIDE_2_VAL
	.comm	_B43_LPPHY_RX_GAIN_CTL_OVERRIDE_VAL,4,2 ; @B43_LPPHY_RX_GAIN_CTL_OVERRIDE_VAL
	.comm	_B43_LPPHY_AFE_DDFS,4,2         ; @B43_LPPHY_AFE_DDFS
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.no_dead_strip	_lpphy_rev2plus_set_rx_gain
.subsections_via_symbols
