	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_radio_set_txpower_a  ## -- Begin function b43legacy_radio_set_txpower_a
	.p2align	4, 0x90
_b43legacy_radio_set_txpower_a:         ## @b43legacy_radio_set_txpower_a
	.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, %r15
	movl	%esi, %edi
	xorl	%esi, %esi
	movl	$63, %edx
	callq	_clamp_val
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_b43legacy_get_txgain_freq_power_amp
	shll	$5, %eax
	movzbl	%al, %edx
	movq	%r15, %rdi
	movl	$25, %esi
	callq	_b43legacy_phy_write
	movl	%r14d, %edi
	callq	_b43legacy_get_txgain_base_band
                                        ## kill: def $eax killed $eax def $rax
	andl	$15, %eax
	leal	32(%rax), %edx
	movq	%r15, %rdi
	movl	$23, %esi
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$12289, %esi                    ## imm = 0x3001
	callq	_b43legacy_ilt_read
	movl	%eax, %ebx
	andl	$7, %ebx
	movl	%r14d, %edi
	callq	_b43legacy_get_txgain_dac
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax,8), %edx
	movq	%r15, %rdi
	movl	$12289, %esi                    ## imm = 0x3001
	callq	_b43legacy_ilt_write
	movl	%r14d, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_radio_set_txpower_a  ; -- Begin function b43legacy_radio_set_txpower_a
	.p2align	2
_b43legacy_radio_set_txpower_a:         ; @b43legacy_radio_set_txpower_a
	.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
	mov	x0, x1
	mov	w1, #0
	mov	w2, #63
	bl	_clamp_val
	mov	x20, x0
	bl	_b43legacy_get_txgain_freq_power_amp
	ubfiz	w2, w0, #5, #3
	mov	x0, x19
	mov	w1, #25
	bl	_b43legacy_phy_write
	mov	x0, x20
	bl	_b43legacy_get_txgain_base_band
	mov	w2, #32
	bfxil	w2, w0, #0, #4
	mov	x0, x19
	mov	w1, #23
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #12289
	bl	_b43legacy_ilt_read
	mov	x21, x0
	mov	x0, x20
	bl	_b43legacy_get_txgain_dac
	bfi	w21, w0, #3, #29
	mov	x0, x19
	mov	w1, #12289
	mov	x2, x21
	bl	_b43legacy_ilt_write
	str	w20, [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
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
