	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_set_all_gains
_b43legacy_set_all_gains:               ## @b43legacy_set_all_gains
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r15
	xorl	%eax, %eax
	cmpl	$2, (%rdi)
	setl	%al
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	8(,%rax,8), %r14d
	movl	$20480, %eax                    ## imm = 0x5000
	movl	$1024, %r13d                    ## imm = 0x400
	cmovll	%eax, %r13d
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_b43legacy_ilt_write
	leal	1(%r13), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_b43legacy_ilt_write
	leal	2(%r13), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_b43legacy_ilt_write
	leal	3(%r13), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_b43legacy_ilt_write
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	24(,%rax,8), %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%r13), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_b43legacy_ilt_write
	incl	%r14d
	cmpl	%ebx, %r14d
	jb	LBB0_1
## %bb.2:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	$-1, %ebx
	je	LBB0_4
## %bb.3:
	movl	%ebx, %eax
	shll	$14, %eax
	shll	$6, %ebx
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	$1184, %esi                     ## imm = 0x4A0
	callq	_b43legacy_phy_read
	andl	$49087, %eax                    ## imm = 0xBFBF
	orl	%ebx, %eax
	movq	%r15, %rdi
	movl	$1184, %esi                     ## imm = 0x4A0
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$1185, %esi                     ## imm = 0x4A1
	callq	_b43legacy_phy_read
	andl	$49087, %eax                    ## imm = 0xBFBF
	orl	%ebx, %eax
	movq	%r15, %rdi
	movl	$1185, %esi                     ## imm = 0x4A1
	movl	%eax, %edx
	callq	_b43legacy_phy_write
	movq	%r15, %rdi
	movl	$1186, %esi                     ## imm = 0x4A2
	callq	_b43legacy_phy_read
	andl	$49087, %eax                    ## imm = 0xBFBF
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	$1186, %esi                     ## imm = 0x4A2
	movl	%ebx, %edx
	callq	_b43legacy_phy_write
LBB0_4:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43legacy_dummy_transmission   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_b43legacy_set_all_gains
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43legacy_set_all_gains
_b43legacy_set_all_gains:               ; @b43legacy_set_all_gains
	.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	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w8, [x0]
	mov	w9, #8
	mov	w10, #16
	cmp	w8, #2
	csel	w24, w10, w9, lt
	mov	w8, #1024
	mov	w9, #20480
	csel	w22, w9, w8, lt
	mov	w8, #24
	mov	w9, #32
	csel	w25, w9, w8, lt
	mov	x1, x22
	mov	x2, x23
	bl	_b43legacy_ilt_write
	orr	w1, w22, #0x1
	mov	x0, x19
	mov	x2, x23
	bl	_b43legacy_ilt_write
	orr	w1, w22, #0x2
	mov	x0, x19
	mov	x2, x23
	bl	_b43legacy_ilt_write
	orr	w1, w22, #0x3
	mov	x0, x19
	mov	x2, x23
	bl	_b43legacy_ilt_write
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w22, w24
	mov	x0, x19
	mov	x2, x21
	bl	_b43legacy_ilt_write
	add	w24, w24, #1
	cmp	w24, w25
	b.lo	LBB0_1
; %bb.2:
	cmn	w20, #1
	b.eq	LBB0_4
; %bb.3:
	lsl	w8, w20, #14
	orr	w20, w8, w20, lsl #6
	mov	x0, x19
	mov	w1, #1184
	bl	_b43legacy_phy_read
	mov	w21, #49087
	and	w8, w0, w21
	orr	w2, w8, w20
	mov	x0, x19
	mov	w1, #1184
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1185
	bl	_b43legacy_phy_read
	and	w8, w0, w21
	orr	w2, w8, w20
	mov	x0, x19
	mov	w1, #1185
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1186
	bl	_b43legacy_phy_read
	and	w8, w0, w21
	orr	w2, w8, w20
	mov	x0, x19
	mov	w1, #1186
	bl	_b43legacy_phy_write
LBB0_4:
	mov	x0, x19
	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	_b43legacy_dummy_transmission
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_b43legacy_set_all_gains
.subsections_via_symbols
