	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpphy_rev0_1_set_rx_gain
_lpphy_rev0_1_set_rx_gain:              ## @lpphy_rev0_1_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %ecx
	andl	$1, %ecx
	movl	%esi, %eax
	andl	$65532, %eax                    ## imm = 0xFFFC
	movl	%esi, %r15d
	shrl	$2, %r15d
	andl	$3, %r15d
	orl	%eax, %r15d
	shrl	%ebx
	andl	$1, %ebx
	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	$10, %ecx
	movq	%r14, %rdi
	movl	$64511, %edx                    ## imm = 0xFBFF
	callq	_b43_phy_maskset
	movl	(%r12), %esi
	shll	$11, %ebx
	movq	%r14, %rdi
	movl	$63487, %edx                    ## imm = 0xF7FF
	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	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_phy_write                  ## TAILCALL
	.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
	.no_dead_strip	_lpphy_rev0_1_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_rev0_1_set_rx_gain
_lpphy_rev0_1_set_rx_gain:              ; @lpphy_rev0_1_set_rx_gain
	.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	x19, x0
	and	w3, w1, #0x1
	and	w20, w1, #0xfffc
	bfxil	w20, w1, #2, #2
	ubfx	w21, w1, #1, #1
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	x22, _B43_LPPHY_RF_OVERRIDE_2_VAL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _B43_LPPHY_RF_OVERRIDE_2_VAL@GOTPAGEOFF]
	ldr	w1, [x22]
	lsl	w3, w21, #10
	mov	x0, x19
	mov	w2, #64511
	bl	_b43_phy_maskset
	ldr	w1, [x22]
	lsl	w3, w21, #11
	mov	x0, x19
	mov	w2, #63487
	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, 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 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
	.no_dead_strip	_lpphy_rev0_1_set_rx_gain
.subsections_via_symbols
