	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpphy_papd_cal_txpwr
_lpphy_papd_cal_txpwr:                  ## @lpphy_papd_cal_txpwr
	.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	%rdi, %rbx
	movq	(%rdi), %r14
	callq	_lpphy_read_tx_pctl_mode_from_hardware
	movl	(%r14), %r14d
	movq	_B43_LPPHY_AFE_CTL_OVR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_b43_phy_read
	movl	%eax, %r15d
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	testb	$64, %r15b
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_lpphy_get_tx_gains
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_2:
	movq	_B43_LPPHY_RF_PWR_OVERRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_b43_phy_read
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_lpphy_get_bb_mult
	movl	%eax, %r12d
	movq	_B43_LPPHY_TXPCTL_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_lpphy_set_tx_power_control
	testb	$64, %r15b
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_lpphy_set_tx_gains
LBB0_4:
	movzbl	%r13b, %r15d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_lpphy_set_bb_mult
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_lpphy_set_tx_power_control
	movq	_B43_LPPHY_RF_PWR_OVERRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$65280, %edx                    ## imm = 0xFF00
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_phy_maskset                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_LPPHY_AFE_CTL_OVR,4,2      ## @B43_LPPHY_AFE_CTL_OVR
	.comm	_B43_LPPHY_RF_PWR_OVERRIDE,4,2  ## @B43_LPPHY_RF_PWR_OVERRIDE
	.comm	_B43_LPPHY_TXPCTL_OFF,4,2       ## @B43_LPPHY_TXPCTL_OFF
	.no_dead_strip	_lpphy_papd_cal_txpwr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpphy_papd_cal_txpwr
_lpphy_papd_cal_txpwr:                  ; @lpphy_papd_cal_txpwr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x20, [x0]
	bl	_lpphy_read_tx_pctl_mode_from_hardware
	ldr	w20, [x20]
Lloh0:
	adrp	x8, _B43_LPPHY_AFE_CTL_OVR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_LPPHY_AFE_CTL_OVR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_phy_read
	mov	x21, x0
	tbnz	w0, #6, LBB0_2
; %bb.1:
	mov	x22, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_lpphy_get_tx_gains
	mov	w22, w0
LBB0_3:
Lloh3:
	adrp	x25, _B43_LPPHY_RF_PWR_OVERRIDE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _B43_LPPHY_RF_PWR_OVERRIDE@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_b43_phy_read
	mov	x23, x0
	mov	x0, x19
	bl	_lpphy_get_bb_mult
	mov	x24, x0
Lloh5:
	adrp	x8, _B43_LPPHY_TXPCTL_OFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _B43_LPPHY_TXPCTL_OFF@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lpphy_set_tx_power_control
	tbz	w21, #6, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x22
	bl	_lpphy_set_tx_gains
LBB0_5:
	and	w21, w23, #0xff
	mov	x0, x19
	mov	x1, x24
	bl	_lpphy_set_bb_mult
	mov	x0, x19
	mov	x1, x20
	bl	_lpphy_set_tx_power_control
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #65280
	mov	x3, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_b43_phy_maskset
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_LPPHY_AFE_CTL_OVR,4,2      ; @B43_LPPHY_AFE_CTL_OVR
	.comm	_B43_LPPHY_RF_PWR_OVERRIDE,4,2  ; @B43_LPPHY_RF_PWR_OVERRIDE
	.comm	_B43_LPPHY_TXPCTL_OFF,4,2       ; @B43_LPPHY_TXPCTL_OFF
	.no_dead_strip	_lpphy_papd_cal_txpwr
.subsections_via_symbols
