	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_usb_gen_fill_eeprom   ## -- Begin function ath9k_hw_usb_gen_fill_eeprom
	.p2align	4, 0x90
_ath9k_hw_usb_gen_fill_eeprom:          ## @ath9k_hw_usb_gen_fill_eeprom
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -184(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%ecx, %ecx
	jle	LBB0_23
## %bb.1:
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rsi, %r15
	xorl	%r13d, %r13d
	movq	_AR5416_EEPROM_OFFSET@GOTPCREL(%rip), %rdx
	movq	_AR5416_EEPROM_S@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	decl	%r12d
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14), %ecx
	movl	%ebx, %eax
	shll	%cl, %eax
	cltq
	addq	(%rdx), %rax
	movslq	%r13d, %r13
	movq	%rax, -112(%rbp,%r13,8)
	incl	%r13d
	cmpl	$8, %r13d
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	leaq	-112(%rbp), %rsi
	movq	%rdx, %r13
	leaq	-176(%rbp), %rdx
	movl	$8, %ecx
	callq	_REG_READ_MULTI
	movq	%r13, %rdx
	movq	-176(%rbp), %rax
	movq	%rax, (%r15)
	movq	-168(%rbp), %rax
	movq	%rax, 8(%r15)
	movq	-160(%rbp), %rax
	movq	%rax, 16(%r15)
	movq	-152(%rbp), %rax
	movq	%rax, 24(%r15)
	movq	-144(%rbp), %rax
	movq	%rax, 32(%r15)
	movq	-136(%rbp), %rax
	movq	%rax, 40(%r15)
	movq	-128(%rbp), %rax
	movq	%rax, 48(%r15)
	movq	-120(%rbp), %rax
	movq	%rax, 56(%r15)
	addq	$64, %r15
	xorl	%r13d, %r13d
	jmp	LBB0_4
LBB0_5:
	testl	%r13d, %r13d
	je	LBB0_23
## %bb.6:
	leaq	-112(%rbp), %rsi
	leaq	-176(%rbp), %rbx
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	callq	_REG_READ_MULTI
	testl	%r13d, %r13d
	jle	LBB0_23
## %bb.7:
	movl	%r13d, %eax
	xorl	%ecx, %ecx
	cmpl	$4, %r13d
	jb	LBB0_18
## %bb.8:
	movq	%r15, %rdx
	subq	%rbx, %rdx
	cmpq	$32, %rdx
	jb	LBB0_18
## %bb.9:
	movl	%eax, %ecx
	andl	$-4, %ecx
	leaq	-4(%rcx), %rdi
	movq	%rdi, %rsi
	shrq	$2, %rsi
	incq	%rsi
	movl	%esi, %edx
	andl	$3, %edx
	cmpq	$12, %rdi
	jae	LBB0_11
## %bb.10:
	xorl	%edi, %edi
	jmp	LBB0_13
LBB0_11:
	andq	$-4, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movaps	-176(%rbp,%rdi,8), %xmm0
	movaps	-160(%rbp,%rdi,8), %xmm1
	movups	%xmm0, (%r15,%rdi,8)
	movups	%xmm1, 16(%r15,%rdi,8)
	movaps	-144(%rbp,%rdi,8), %xmm0
	movaps	-128(%rbp,%rdi,8), %xmm1
	movups	%xmm0, 32(%r15,%rdi,8)
	movups	%xmm1, 48(%r15,%rdi,8)
	movaps	-112(%rbp,%rdi,8), %xmm0
	movaps	-96(%rbp,%rdi,8), %xmm1
	movups	%xmm0, 64(%r15,%rdi,8)
	movups	%xmm1, 80(%r15,%rdi,8)
	movaps	-80(%rbp,%rdi,8), %xmm0
	movaps	-64(%rbp,%rdi,8), %xmm1
	movups	%xmm0, 96(%r15,%rdi,8)
	movups	%xmm1, 112(%r15,%rdi,8)
	addq	$16, %rdi
	addq	$-4, %rsi
	jne	LBB0_12
LBB0_13:
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.14:
	leaq	-160(,%rdi,8), %rsi
	addq	%rbp, %rsi
	leaq	(%r15,%rdi,8), %rdi
	addq	$16, %rdi
	shlq	$5, %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movaps	-16(%rsi,%rbx), %xmm0
	movaps	(%rsi,%rbx), %xmm1
	movups	%xmm0, -16(%rdi,%rbx)
	movups	%xmm1, (%rdi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %rdx
	jne	LBB0_15
LBB0_16:
	cmpq	%rax, %rcx
	je	LBB0_23
## %bb.17:
	leaq	(%r15,%rcx,8), %r15
LBB0_18:
	movl	%eax, %esi
	subl	%ecx, %esi
	movq	%rcx, %rdx
	notq	%rdx
	addq	%rax, %rdx
	andq	$7, %rsi
	je	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	-176(%rbp,%rcx,8), %rdi
	movq	%rdi, (%r15)
	addq	$8, %r15
	incq	%rcx
	decq	%rsi
	jne	LBB0_19
LBB0_20:
	cmpq	$7, %rdx
	jb	LBB0_23
## %bb.21:
	subq	%rcx, %rax
	leaq	-120(,%rcx,8), %rcx
	addq	%rbp, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rcx,%rdx,8), %rsi
	movq	%rsi, (%r15,%rdx,8)
	movq	-48(%rcx,%rdx,8), %rsi
	movq	%rsi, 8(%r15,%rdx,8)
	movq	-40(%rcx,%rdx,8), %rsi
	movq	%rsi, 16(%r15,%rdx,8)
	movq	-32(%rcx,%rdx,8), %rsi
	movq	%rsi, 24(%r15,%rdx,8)
	movq	-24(%rcx,%rdx,8), %rsi
	movq	%rsi, 32(%r15,%rdx,8)
	movq	-16(%rcx,%rdx,8), %rsi
	movq	%rsi, 40(%r15,%rdx,8)
	movq	-8(%rcx,%rdx,8), %rsi
	movq	%rsi, 48(%r15,%rdx,8)
	movq	(%rcx,%rdx,8), %rsi
	movq	%rsi, 56(%r15,%rdx,8)
	addq	$8, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_22
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5416_EEPROM_OFFSET,8,3       ## @AR5416_EEPROM_OFFSET
	.comm	_AR5416_EEPROM_S,4,2            ## @AR5416_EEPROM_S
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_usb_gen_fill_eeprom   ; -- Begin function ath9k_hw_usb_gen_fill_eeprom
	.p2align	2
_ath9k_hw_usb_gen_fill_eeprom:          ; @ath9k_hw_usb_gen_fill_eeprom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cmp	w3, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	mov	w21, #0
Lloh3:
	adrp	x24, _AR5416_EEPROM_OFFSET@GOTPAGE
Lloh4:
	ldr	x24, [x24, _AR5416_EEPROM_OFFSET@GOTPAGEOFF]
Lloh5:
	adrp	x25, _AR5416_EEPROM_S@GOTPAGE
Lloh6:
	ldr	x25, [x25, _AR5416_EEPROM_S@GOTPAGEOFF]
	add	x26, sp, #72
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	subs	w22, w22, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w9, [x25]
	lsl	w9, w23, w9
	add	x8, x8, w9, sxtw
	str	x8, [x26, w21, sxtw #3]
	add	w21, w21, #1
	cmp	w21, #8
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #72
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #8
	bl	_REG_READ_MULTI
	mov	w21, #0
	ldr	x8, [sp, #8]
	str	x8, [x19]
	ldr	x8, [sp, #16]
	str	x8, [x19, #8]
	ldr	x8, [sp, #24]
	str	x8, [x19, #16]
	ldr	x8, [sp, #32]
	str	x8, [x19, #24]
	ldr	x8, [sp, #40]
	str	x8, [x19, #32]
	ldr	x8, [sp, #48]
	str	x8, [x19, #40]
	ldr	x8, [sp, #56]
	str	x8, [x19, #48]
	ldr	x8, [sp, #64]
	str	x8, [x19, #56]
	add	x19, x19, #64
	b	LBB0_2
LBB0_5:
	cbz	w21, LBB0_15
; %bb.6:
	add	x22, sp, #8
	add	x1, sp, #72
	add	x2, sp, #8
	mov	x0, x20
	mov	x3, x21
	bl	_REG_READ_MULTI
	cmp	w21, #1
	b.lt	LBB0_15
; %bb.7:
	mov	x10, #0
	mov	w9, w21
	cmp	w21, #8
	b.lo	LBB0_12
; %bb.8:
	sub	x8, x19, x22
	cmp	x8, #64
	b.lo	LBB0_12
; %bb.9:
	and	x10, x9, #0xfffffff8
	add	x8, x19, x10, lsl #3
	add	x11, x19, #32
	add	x12, sp, #8
	add	x12, x12, #32
	mov	x13, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	stp	q0, q1, [x11, #-32]
	stp	q2, q3, [x11], #64
	subs	x13, x13, #8
	b.ne	LBB0_10
; %bb.11:
	cmp	x10, x9
	b.ne	LBB0_13
	b	LBB0_15
LBB0_12:
	mov	x8, x19
LBB0_13:
	add	x11, sp, #8
	add	x11, x11, x10, lsl #3
	sub	x9, x9, x10
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x11], #8
	str	x10, [x8], #8
	subs	x9, x9, #1
	b.ne	LBB0_14
LBB0_15:
	ldur	x8, [x29, #-72]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5416_EEPROM_OFFSET,8,3       ; @AR5416_EEPROM_OFFSET
	.comm	_AR5416_EEPROM_S,4,2            ; @AR5416_EEPROM_S
.subsections_via_symbols
