	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpphy_set_tx_power_control
_lpphy_set_tx_power_control:            ## @lpphy_set_tx_power_control
	.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, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	callq	_lpphy_read_tx_pctl_mode_from_hardware
	movl	(%r15), %eax
	cmpl	%r14d, %eax
	jne	LBB0_1
## %bb.9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r14d, (%r15)
	movq	_B43_LPPHY_TXPCTL_HW@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	cmpl	%ecx, %eax
	je	LBB0_4
## %bb.2:
	cmpl	%r14d, %ecx
	jne	LBB0_4
## %bb.3:
	movq	_B43_LPPHY_TX_PWR_CTL_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %ecx
	movq	%rbx, %rdi
	movl	$65408, %edx                    ## imm = 0xFF80
	callq	_b43_phy_maskset
	movq	_B43_LPPHY_TX_PWR_CTL_NNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %ecx
	shll	$16, %ecx
	movq	%rbx, %rdi
	movl	$36863, %edx                    ## imm = 0x8FFF
	callq	_b43_phy_maskset
	movq	%rbx, %rdi
	callq	_lpphy_disable_tx_gain_override
	movl	$-1, 8(%r15)
LBB0_4:
	cmpl	$2, (%rbx)
	jl	LBB0_8
## %bb.5:
	movl	(%r12), %r15d
	movl	$208, %edi
	callq	_B43_PHY_OFDM
	movq	%rbx, %rdi
	movl	%eax, %esi
	cmpl	%r14d, %r15d
	jne	LBB0_7
## %bb.6:
	movl	$2, %edx
	callq	_b43_phy_set
	jmp	LBB0_8
LBB0_7:
	movl	$65533, %edx                    ## imm = 0xFFFD
	callq	_b43_phy_mask
LBB0_8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lpphy_write_tx_pctl_mode_to_hardware ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_LPPHY_TXPCTL_HW,4,2        ## @B43_LPPHY_TXPCTL_HW
	.comm	_B43_LPPHY_TX_PWR_CTL_CMD,4,2   ## @B43_LPPHY_TX_PWR_CTL_CMD
	.comm	_B43_LPPHY_TX_PWR_CTL_NNUM,4,2  ## @B43_LPPHY_TX_PWR_CTL_NNUM
	.no_dead_strip	_lpphy_set_tx_power_control
.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_power_control
_lpphy_set_tx_power_control:            ; @lpphy_set_tx_power_control
	.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, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	bl	_lpphy_read_tx_pctl_mode_from_hardware
	ldr	w8, [x21]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	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
LBB0_2:
	str	w20, [x21]
Lloh0:
	adrp	x22, _B43_LPPHY_TXPCTL_HW@GOTPAGE
Lloh1:
	ldr	x22, [x22, _B43_LPPHY_TXPCTL_HW@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	ccmp	w9, w20, #0, ne
	b.ne	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _B43_LPPHY_TX_PWR_CTL_CMD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _B43_LPPHY_TX_PWR_CTL_CMD@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w3, [x21, #4]
	mov	x0, x19
	mov	w2, #65408
	bl	_b43_phy_maskset
Lloh5:
	adrp	x8, _B43_LPPHY_TX_PWR_CTL_NNUM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _B43_LPPHY_TX_PWR_CTL_NNUM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w8, [x21, #16]
	lsl	w3, w8, #16
	mov	x0, x19
	mov	w2, #36863
	bl	_b43_phy_maskset
	mov	x0, x19
	bl	_lpphy_disable_tx_gain_override
	mov	w8, #-1
	str	w8, [x21, #8]
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.5:
	ldr	w21, [x22]
	mov	w0, #208
	bl	_B43_PHY_OFDM
	mov	x1, x0
	mov	x0, x19
	cmp	w21, w20
	b.ne	LBB0_7
; %bb.6:
	mov	w2, #2
	bl	_b43_phy_set
	b	LBB0_8
LBB0_7:
	mov	w2, #65533
	bl	_b43_phy_mask
LBB0_8:
	mov	x0, x19
	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	_lpphy_write_tx_pctl_mode_to_hardware
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_LPPHY_TXPCTL_HW,4,2        ; @B43_LPPHY_TXPCTL_HW
	.comm	_B43_LPPHY_TX_PWR_CTL_CMD,4,2   ; @B43_LPPHY_TX_PWR_CTL_CMD
	.comm	_B43_LPPHY_TX_PWR_CTL_NNUM,4,2  ; @B43_LPPHY_TX_PWR_CTL_NNUM
	.no_dead_strip	_lpphy_set_tx_power_control
.subsections_via_symbols
