	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9300_uncompress_block
_ar9300_uncompress_block:               ## @ar9300_uncompress_block
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, %rbx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_ath9k_hw_common
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %eax
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.1:
	movl	%r14d, %r8d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	callq	_ath_dbg
	movl	%r13d, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	addl	$2, %r14d
	leaq	(%rbx,%r14,4), %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r15d, %r13d
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%r12d, %r14d
	cmpl	%r8d, %r14d
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %eax
	movzbl	(%rbx,%rax,4), %r9d
	addl	%r9d, %r13d
	movzbl	4(%rbx,%rax,4), %r12d
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	js	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r12,%r13), %r15d
	cmpl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	jle	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$2, %r14d
	jmp	LBB0_8
LBB0_9:
	movl	$1, %eax
	jmp	LBB0_10
LBB0_11:
	movq	_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, (%rsp)
	leaq	L_.str.1(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	callq	_ath_dbg
	xorl	%eax, %eax
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM,4,2                     ## @EEPROM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Restore at %d: spot=%d offset=%d length=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Bad restore at %d: spot=%d offset=%d length=%d\n"

	.no_dead_strip	_ar9300_uncompress_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9300_uncompress_block
_ar9300_uncompress_block:               ; @ar9300_uncompress_block
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	bl	_ath9k_hw_common
	cmp	w19, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x23, x0
	mov	w24, #0
	mov	w26, #0
Lloh0:
	adrp	x28, _EEPROM@GOTPAGE
Lloh1:
	ldr	x28, [x28, _EEPROM@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x28]
	mov	x0, x23
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x26
	mov	x4, x24
	mov	x6, x27
	bl	_ath_dbg
	add	x0, x22, w24, uxtw #2
	add	w26, w26, #2
	add	x1, x20, w26, uxtw #2
	mov	x2, x27
	bl	_memcpy
	mov	x24, x25
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w26, w26, w27
	cmp	w26, w19
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w8, w26
	lsl	x8, x8, #2
	ldrb	w5, [x20, x8]
	add	w24, w5, w24
	add	w8, w26, #1
	lsl	x8, x8, #2
	ldrb	w27, [x20, x8]
	cbz	w27, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w24, #31, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w24, w27
	cmp	w25, w21
	b.le	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w27, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w26, w26, #2
	b	LBB0_3
LBB0_9:
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	ldr	w1, [x28]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x3, x26
	mov	x4, x24
	mov	x6, x27
	bl	_ath_dbg
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM,4,2                     ; @EEPROM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Restore at %d: spot=%d offset=%d length=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Bad restore at %d: spot=%d offset=%d length=%d\n"

	.no_dead_strip	_ar9300_uncompress_block
.subsections_via_symbols
