	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_phy_ht_tx_power_ctl
_b43_phy_ht_tx_power_ctl:               ## @b43_phy_ht_tx_power_ctl
	.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, %r15
	movq	8(%rdi), %r12
	movq	_B43_PHY_HT_TXPCTL_CMD_C1_COEFF@GOTPCREL(%rip), %rax
	movq	_B43_PHY_HT_TXPCTL_CMD_C1_HWPCTLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_B43_PHY_HT_TXPCTL_CMD_C1_PCTLEN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	testl	%esi, %esi
	je	LBB0_1
## %bb.4:
	movl	$133, %esi
	movl	%ebx, %edx
	callq	_b43_phy_set
	movl	(%r15), %edi
	callq	_b43_current_band
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movl	$133, %esi
	movl	$50, %edx
	callq	_b43_phy_write
	movq	%r15, %rdi
	movl	$132, %esi
	movl	$50, %edx
	callq	_b43_phy_write
	movq	%r15, %rdi
	movl	$131, %esi
	movl	$50, %edx
	callq	_b43_phy_write
LBB0_6:
	movq	(%r12), %rax
	movl	(%rax), %edx
	movq	_B43_PHY_HT_TXPCTL_CMD_C1_INIT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	cmpl	%ecx, %edx
	jg	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movl	$133, %esi
	callq	_b43_phy_write
	movq	(%r12), %rax
	movl	(%rbx), %ecx
LBB0_8:
	movl	4(%rax), %edx
	cmpl	%ecx, %edx
	jg	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	movl	$132, %esi
	callq	_b43_phy_write
	movq	(%r12), %rax
	movl	(%rbx), %ecx
LBB0_10:
	movl	8(%rax), %edx
	cmpl	%ecx, %edx
	jg	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	movl	$131, %esi
	callq	_b43_phy_write
	jmp	LBB0_12
LBB0_1:
	movl	$133, %esi
	callq	_b43_phy_read
	testl	%ebx, %eax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movl	$130, %esi
	callq	_b43_phy_read
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	movq	%r15, %rdi
	movl	$129, %esi
	callq	_b43_phy_read
	movq	(%r12), %rcx
	movl	%eax, 4(%rcx)
	movq	%r15, %rdi
	movl	$128, %esi
	callq	_b43_phy_read
	movq	(%r12), %rcx
	movl	%eax, 8(%rcx)
LBB0_3:
	notl	%ebx
	movq	%r15, %rdi
	movl	$133, %esi
	movl	%ebx, %edx
	callq	_b43_phy_mask
LBB0_12:
	movl	%r14d, 8(%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_PHY_HT_TXPCTL_CMD_C1_COEFF,4,2 ## @B43_PHY_HT_TXPCTL_CMD_C1_COEFF
	.comm	_B43_PHY_HT_TXPCTL_CMD_C1_HWPCTLEN,4,2 ## @B43_PHY_HT_TXPCTL_CMD_C1_HWPCTLEN
	.comm	_B43_PHY_HT_TXPCTL_CMD_C1_PCTLEN,4,2 ## @B43_PHY_HT_TXPCTL_CMD_C1_PCTLEN
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_B43_PHY_HT_TXPCTL_CMD_C1_INIT,4,2 ## @B43_PHY_HT_TXPCTL_CMD_C1_INIT
	.no_dead_strip	_b43_phy_ht_tx_power_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_phy_ht_tx_power_ctl
_b43_phy_ht_tx_power_ctl:               ; @b43_phy_ht_tx_power_ctl
	.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, x1
	mov	x20, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _B43_PHY_HT_TXPCTL_CMD_C1_COEFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_PHY_HT_TXPCTL_CMD_C1_COEFF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _B43_PHY_HT_TXPCTL_CMD_C1_HWPCTLEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _B43_PHY_HT_TXPCTL_CMD_C1_HWPCTLEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _B43_PHY_HT_TXPCTL_CMD_C1_PCTLEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _B43_PHY_HT_TXPCTL_CMD_C1_PCTLEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w21, w8, w9
	cbz	w1, LBB0_9
; %bb.1:
	mov	w1, #133
	mov	x2, x21
	bl	_b43_phy_set
	ldr	w0, [x20]
	bl	_b43_current_band
Lloh9:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #133
	mov	w2, #50
	bl	_b43_phy_write
	mov	x0, x20
	mov	w1, #132
	mov	w2, #50
	bl	_b43_phy_write
	mov	x0, x20
	mov	w1, #131
	mov	w2, #50
	bl	_b43_phy_write
LBB0_3:
	ldr	x8, [x22]
	ldr	w2, [x8]
Lloh12:
	adrp	x21, _B43_PHY_HT_TXPCTL_CMD_C1_INIT@GOTPAGE
Lloh13:
	ldr	x21, [x21, _B43_PHY_HT_TXPCTL_CMD_C1_INIT@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w2, w9
	b.gt	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	w1, #133
	bl	_b43_phy_write
	ldr	x8, [x22]
	ldr	w9, [x21]
LBB0_5:
	ldr	w2, [x8, #4]
	cmp	w2, w9
	b.gt	LBB0_7
; %bb.6:
	mov	x0, x20
	mov	w1, #132
	bl	_b43_phy_write
	ldr	x8, [x22]
	ldr	w9, [x21]
LBB0_7:
	ldr	w2, [x8, #8]
	cmp	w2, w9
	b.gt	LBB0_12
; %bb.8:
	mov	x0, x20
	mov	w1, #131
	bl	_b43_phy_write
	b	LBB0_12
LBB0_9:
	mov	w1, #133
	bl	_b43_phy_read
	tst	w0, w21
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x20
	mov	w1, #130
	bl	_b43_phy_read
	ldr	x8, [x22]
	str	w0, [x8]
	mov	x0, x20
	mov	w1, #129
	bl	_b43_phy_read
	ldr	x8, [x22]
	str	w0, [x8, #4]
	mov	x0, x20
	mov	w1, #128
	bl	_b43_phy_read
	ldr	x8, [x22]
	str	w0, [x8, #8]
LBB0_11:
	mvn	w2, w21
	mov	x0, x20
	mov	w1, #133
	bl	_b43_phy_mask
LBB0_12:
	str	w19, [x22, #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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_PHY_HT_TXPCTL_CMD_C1_COEFF,4,2 ; @B43_PHY_HT_TXPCTL_CMD_C1_COEFF
	.comm	_B43_PHY_HT_TXPCTL_CMD_C1_HWPCTLEN,4,2 ; @B43_PHY_HT_TXPCTL_CMD_C1_HWPCTLEN
	.comm	_B43_PHY_HT_TXPCTL_CMD_C1_PCTLEN,4,2 ; @B43_PHY_HT_TXPCTL_CMD_C1_PCTLEN
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_B43_PHY_HT_TXPCTL_CMD_C1_INIT,4,2 ; @B43_PHY_HT_TXPCTL_CMD_C1_INIT
	.no_dead_strip	_b43_phy_ht_tx_power_ctl
.subsections_via_symbols
