	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpphy_get_tx_gains
_lpphy_get_tx_gains:                    ## @lpphy_get_tx_gains
	.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
	movq	%rdi, %r15
	movq	_B43_LPPHY_AFE_DAC_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_b43_phy_read
	movl	%eax, %r14d
	movl	(%r15), %r12d
	movq	_B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_b43_phy_read
	movl	%eax, %ebx
	cmpl	$1, %r12d
	jg	LBB0_2
## %bb.1:
	movl	%ebx, %ecx
	andl	$7, %ecx
	movl	%ebx, %edx
	shrl	$3, %edx
	andl	$15, %edx
	shrl	$7, %ebx
	andl	$15, %ebx
	jmp	LBB0_3
LBB0_2:
	movl	$251, %edi
	callq	_B43_PHY_OFDM
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_b43_phy_read
	movzbl	%bl, %ecx
	movzbl	%bh, %edx
	movzbl	%al, %eax
	movl	%eax, %ebx
LBB0_3:
	shrl	$7, %r14d
	andl	$7, %r14d
	shlq	$32, %rcx
	orq	%rcx, %r14
	shlq	$32, %rbx
	movl	%edx, %edx
	orq	%rbx, %rdx
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_LPPHY_AFE_DAC_CTL,4,2      ## @B43_LPPHY_AFE_DAC_CTL
	.comm	_B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL,4,2 ## @B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL
	.no_dead_strip	_lpphy_get_tx_gains
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpphy_get_tx_gains
_lpphy_get_tx_gains:                    ; @lpphy_get_tx_gains
	.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	x20, x0
Lloh0:
	adrp	x8, _B43_LPPHY_AFE_DAC_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_LPPHY_AFE_DAC_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_b43_phy_read
	mov	x19, x0
	ldr	w22, [x20]
Lloh3:
	adrp	x8, _B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_b43_phy_read
	mov	x21, x0
	cmp	w22, #1
	b.gt	LBB0_2
; %bb.1:
	and	w9, w21, #0x7
	ubfx	w10, w21, #3, #4
	ubfx	w8, w21, #7, #4
	b	LBB0_3
LBB0_2:
	mov	w0, #251
	bl	_B43_PHY_OFDM
	mov	x1, x0
	mov	x0, x20
	bl	_b43_phy_read
	and	w8, w0, #0xff
	and	w9, w21, #0xff
	ubfx	w10, w21, #8, #8
LBB0_3:
	ubfx	w0, w19, #7, #3
	bfi	x0, x9, #32, #8
	mov	w1, w10
	bfi	x1, x8, #32, #8
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_LPPHY_AFE_DAC_CTL,4,2      ; @B43_LPPHY_AFE_DAC_CTL
	.comm	_B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL,4,2 ; @B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL
	.no_dead_strip	_lpphy_get_tx_gains
.subsections_via_symbols
