	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_phy_lcn_tx_pwr_ctl_init
_b43_phy_lcn_tx_pwr_ctl_init:           ## @b43_phy_lcn_tx_pwr_ctl_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_b43_mac_suspend
	movq	8(%rbx), %rax
	cmpl	$0, (%rax)
	movl	(%rbx), %edi
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rsi
	callq	_b43err
	jmp	LBB0_3
LBB0_1:
	callq	_b43_current_band
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	leal	(%rdx,%rdx,2), %eax
	movl	%eax, %ecx
	orl	$4, %ecx
	orl	$12, %eax
	addl	%edx, %edx
	addl	$12, %edx
	movl	%ecx, -32(%rbp)
	movl	%eax, -28(%rbp)
	movl	%edx, -24(%rbp)
	movq	$0, -16(%rbp)
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_b43_phy_lcn_set_tx_gain
	movq	%rbx, %rdi
	movl	$150, %esi
	callq	_b43_phy_lcn_set_bbmult
	movq	_B43_SENSE_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_b43_phy_lcn_sense_setup
LBB0_3:
	movq	%rbx, %rdi
	callq	_b43_mac_enable
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_B43_SENSE_TEMP,4,2             ## @B43_SENSE_TEMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX power control not supported for this HW\n"

	.no_dead_strip	_b43_phy_lcn_tx_pwr_ctl_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function b43_phy_lcn_tx_pwr_ctl_init
lCPI0_0:
	.long	7                               ; 0x7
	.long	15                              ; 0xf
lCPI0_1:
	.long	4                               ; 0x4
	.long	12                              ; 0xc
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_b43_phy_lcn_tx_pwr_ctl_init:           ; @b43_phy_lcn_tx_pwr_ctl_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	bl	_b43_mac_suspend
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	ldr	w0, [x19]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43err
	b	LBB0_3
LBB0_2:
	bl	_b43_current_band
Lloh2:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w8, eq
	mov	w9, #14
	dup.2s	v0, w8
	mov	w8, #12
	shl.2s	v0, v0, #31
	cmlt.2s	v0, v0, #0
Lloh5:
	adrp	x10, lCPI0_0@PAGE
Lloh6:
	ldr	d1, [x10, lCPI0_0@PAGEOFF]
Lloh7:
	adrp	x10, lCPI0_1@PAGE
Lloh8:
	ldr	d2, [x10, lCPI0_1@PAGEOFF]
	bsl.8b	v0, v2, v1
	str	d0, [sp, #8]
	csel	w8, w8, w9, eq
	str	w8, [sp, #16]
	str	xzr, [sp, #24]
	add	x1, sp, #8
	mov	x0, x19
	bl	_b43_phy_lcn_set_tx_gain
	mov	x0, x19
	mov	w1, #150
	bl	_b43_phy_lcn_set_bbmult
Lloh9:
	adrp	x8, _B43_SENSE_TEMP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _B43_SENSE_TEMP@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_phy_lcn_sense_setup
LBB0_3:
	mov	x0, x19
	bl	_b43_mac_enable
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpAdrp	Lloh5, Lloh7
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_B43_SENSE_TEMP,4,2             ; @B43_SENSE_TEMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX power control not supported for this HW\n"

	.no_dead_strip	_b43_phy_lcn_tx_pwr_ctl_init
.subsections_via_symbols
