	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_set_original_gains
_b43legacy_set_original_gains:          ## @b43legacy_set_original_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%ecx, %ecx
	cmpl	$2, (%rdi)
	setl	%cl
	movl	$20480, %eax                    ## imm = 0x5000
	movl	$1024, %r15d                    ## imm = 0x400
	cmovll	%eax, %r15d
	leal	8(,%rcx,8), %r12d
	movq	%rcx, %r13
	xorl	%ebx, %ebx
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_b43legacy_ilt_write
	leal	1(%r15), %esi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_b43legacy_ilt_write
	leal	2(%r15), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_b43legacy_ilt_write
	leal	3(%r15), %esi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_b43legacy_ilt_write
	movq	%r13, %rax
	leal	24(,%r13,8), %r13d
	leal	(%r15,%rax,8), %r15d
	addl	$8, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%rbx), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_b43legacy_ilt_write
	leal	(%r12,%rbx), %eax
	incl	%eax
	movl	%ebx, %ecx
	incl	%ecx
	movl	%ecx, %ebx
	cmpl	%r13d, %eax
	jb	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	$1184, %esi                     ## imm = 0x4A0
	callq	_b43legacy_phy_read
	orl	$16448, %eax                    ## imm = 0x4040
	movzwl	%ax, %edx
	movq	%r14, %rdi
	movl	$1184, %esi                     ## imm = 0x4A0
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$1185, %esi                     ## imm = 0x4A1
	callq	_b43legacy_phy_read
	orl	$16448, %eax                    ## imm = 0x4040
	movzwl	%ax, %edx
	movq	%r14, %rdi
	movl	$1185, %esi                     ## imm = 0x4A1
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	movl	$1186, %esi                     ## imm = 0x4A2
	callq	_b43legacy_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$49087, %eax                    ## imm = 0xBFBF
	leal	16384(%rax), %edx
	movq	%r14, %rdi
	movl	$1186, %esi                     ## imm = 0x4A2
	callq	_b43legacy_phy_write
	movq	%r14, %rdi
	addq	$8, %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_original_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_original_gains
_b43legacy_set_original_gains:          ; @b43legacy_set_original_gains
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w8, [x0]
	mov	w9, #1024
	mov	w10, #20480
	cmp	w8, #2
	csel	w21, w10, w9, lt
	mov	w8, #8
	mov	w9, #16
	csel	w22, w9, w8, lt
	mov	w8, #24
	mov	w9, #32
	csel	w23, w9, w8, lt
	mov	x1, x21
	mov	w2, #0
	bl	_b43legacy_ilt_write
	orr	w1, w21, #0x1
	mov	x0, x19
	mov	w2, #2
	bl	_b43legacy_ilt_write
	orr	w1, w21, #0x2
	mov	x0, x19
	mov	w2, #1
	bl	_b43legacy_ilt_write
	orr	w1, w21, #0x3
	mov	x0, x19
	mov	w2, #3
	bl	_b43legacy_ilt_write
	mov	w20, #0
	orr	w21, w22, w21
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w21, w20
	mov	x0, x19
	mov	x2, x20
	bl	_b43legacy_ilt_write
	add	w20, w20, #1
	add	w8, w22, w20
	cmp	w8, w23
	b.lo	LBB0_1
; %bb.2:
	mov	x0, x19
	mov	w1, #1184
	bl	_b43legacy_phy_read
	and	w8, w0, #0xffff
	mov	w20, #16448
	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, #0xffff
	orr	w2, w8, w20
	mov	x0, x19
	mov	w1, #1185
	bl	_b43legacy_phy_write
	mov	x0, x19
	mov	w1, #1186
	bl	_b43legacy_phy_read
	mov	w8, #49087
	and	w8, w0, w8
	orr	w2, w8, #0x4000
	mov	x0, x19
	mov	w1, #1186
	bl	_b43legacy_phy_write
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_b43legacy_dummy_transmission
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_b43legacy_set_original_gains
.subsections_via_symbols
