	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_txpower_recalc_target_nphy ## -- Begin function wlc_phy_txpower_recalc_target_nphy
	.p2align	4, 0x90
_wlc_phy_txpower_recalc_target_nphy:    ## @wlc_phy_txpower_recalc_target_nphy
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_wlc_phy_txpwr_limit_to_tbl_nphy
	movq	%rbx, %rdi
	callq	_wlc_phy_txpwrctrl_pwr_setup_nphy
	movl	12(%rbx), %r14d
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	movl	$11, %esi
	callq	_D11REV_IS
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	movl	$12, %esi
	callq	_D11REV_IS
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_MCTL_PHYLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %esi
	callq	_wlapi_bmac_mctrl
	movl	8(%rbx), %r15d
	movq	_maccontrol@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	$1, %edi
	callq	_udelay
LBB0_3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_wlc_phy_txpwrctrl_enable_nphy
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	movl	$11, %esi
	callq	_D11REV_IS
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	movl	$12, %esi
	callq	_D11REV_IS
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_MCTL_PHYLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wlapi_bmac_mctrl               ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCTL_PHYLOCK,4,2               ## @MCTL_PHYLOCK
	.comm	_maccontrol,4,2                 ## @maccontrol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_txpower_recalc_target_nphy ; -- Begin function wlc_phy_txpower_recalc_target_nphy
	.p2align	2
_wlc_phy_txpower_recalc_target_nphy:    ; @wlc_phy_txpower_recalc_target_nphy
	.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
	bl	_wlc_phy_txpwr_limit_to_tbl_nphy
	mov	x0, x19
	bl	_wlc_phy_txpwrctrl_pwr_setup_nphy
	ldr	w20, [x19, #12]
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	mov	w1, #11
	bl	_D11REV_IS
Lloh0:
	adrp	x22, _MCTL_PHYLOCK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MCTL_PHYLOCK@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	mov	w1, #12
	bl	_D11REV_IS
	cbz	x0, LBB0_3
LBB0_2:
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	w1, [x22]
	mov	x2, x1
	bl	_wlapi_bmac_mctrl
	ldr	w21, [x19, #8]
Lloh2:
	adrp	x8, _maccontrol@GOTPAGE
Lloh3:
	ldr	x8, [x8, _maccontrol@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x21
	bl	_bcma_read32
	mov	w0, #1
	bl	_udelay
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_wlc_phy_txpwrctrl_enable_nphy
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	mov	w1, #11
	bl	_D11REV_IS
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	mov	w1, #12
	bl	_D11REV_IS
	cbz	x0, LBB0_6
LBB0_5:
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	w1, [x22]
	mov	w2, #0
	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	_wlapi_bmac_mctrl
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MCTL_PHYLOCK,4,2               ; @MCTL_PHYLOCK
	.comm	_maccontrol,4,2                 ; @maccontrol
.subsections_via_symbols
