	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpphy_set_tx_gains
_lpphy_set_tx_gains:                    ## @lpphy_set_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	%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
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, %rbx
	shrq	$32, %rbx
	cmpl	$1, (%rdi)
	jg	LBB0_2
## %bb.1:
	shll	$7, %r12d
	shll	$3, %ebx
	orl	%r14d, %r12d
	orl	%ebx, %r12d
	movq	_B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$63488, %edx                    ## imm = 0xF800
	movl	%r12d, %ecx
	jmp	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	callq	_lpphy_get_pa_gain
	movl	%eax, %r13d
	movq	_B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$8, %ebx
	orl	%r14d, %ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_b43_phy_write
	movl	$251, %edi
	callq	_B43_PHY_OFDM
	movl	%r13d, %ecx
	shll	$6, %ecx
	orl	%r12d, %ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_b43_phy_maskset
	movl	$252, %edi
	callq	_B43_PHY_OFDM
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_b43_phy_write
	movl	$253, %edi
	callq	_B43_PHY_OFDM
	shll	$8, %r13d
	orl	%r12d, %r13d
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	movl	%r13d, %ecx
LBB0_3:
	callq	_b43_phy_maskset
	shrq	$32, %r14
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_lpphy_set_dac_gain
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lpphy_enable_tx_gain_override  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL,4,2 ## @B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL
	.no_dead_strip	_lpphy_set_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_set_tx_gains
_lpphy_set_tx_gains:                    ; @lpphy_set_tx_gains
	.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, x2
	mov	x21, x1
	mov	x19, x0
	lsr	x23, x1, #32
	ldr	w8, [x0]
	cmp	w8, #1
	b.gt	LBB0_2
; %bb.1:
	orr	w8, w20, w21, lsl #7
	orr	w3, w8, w23, lsl #3
Lloh0:
	adrp	x8, _B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #63488
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_lpphy_get_pa_gain
	mov	x22, x0
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]
	orr	w23, w20, w23, lsl #8
	mov	x0, x19
	mov	x2, x23
	bl	_b43_phy_write
	mov	w0, #251
	bl	_B43_PHY_OFDM
	mov	x1, x0
	orr	w3, w21, w22, lsl #6
	mov	x0, x19
	mov	w2, #32768
	bl	_b43_phy_maskset
	mov	w0, #252
	bl	_B43_PHY_OFDM
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_b43_phy_write
	mov	w0, #253
	bl	_B43_PHY_OFDM
	mov	x1, x0
	orr	w3, w21, w22, lsl #8
	mov	x0, x19
	mov	w2, #32768
LBB0_3:
	bl	_b43_phy_maskset
	lsr	x1, x20, #32
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_lpphy_set_dac_gain
	mov	x0, x19
	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	_lpphy_enable_tx_gain_override
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL,4,2 ; @B43_LPPHY_TX_GAIN_CTL_OVERRIDE_VAL
	.no_dead_strip	_lpphy_set_tx_gains
.subsections_via_symbols
