	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9300_compress_decision
_ar9300_compress_decision:              ## @ar9300_compress_decision
	.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
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movl	16(%rbp), %r15d
	callq	_ath9k_hw_common
	movq	%rax, %r13
	cmpl	$129, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$128, %ebx
	jne	LBB0_10
## %bb.2:
	movl	24(%rbp), %ecx
	cmpl	%ecx, %r15d
	jne	LBB0_3
## %bb.4:
	movq	_COMP_HDR_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_memcpy
	movq	_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%r15d, %r8d
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_ath_dbg
	jmp	LBB0_13
LBB0_5:
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.6:
	movl	%r14d, %edi
	callq	_ar9003_eeprom_struct_find_by_id
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movl	24(%rbp), %edx
	callq	_memcpy
LBB0_9:
	movq	_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movl	%r15d, %ebx
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_ath_dbg
	movq	_COMP_HDR_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	24(%rbp), %edx
	movl	%ebx, %r8d
	callq	_ar9300_uncompress_block
	jmp	LBB0_13
LBB0_10:
	movq	_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %ecx
	jmp	LBB0_11
LBB0_3:
	movq	_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_ath_dbg
	jmp	LBB0_12
LBB0_7:
	movq	_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	movl	%r14d, %ecx
LBB0_11:
	xorl	%eax, %eax
	callq	_ath_dbg
LBB0_12:
	movl	$-1, %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %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	"EEPROM structure size mismatch memory=%d eeprom=%d\n"

	.comm	_COMP_HDR_LEN,4,2               ## @COMP_HDR_LEN
L_.str.1:                               ## @.str.1
	.asciz	"restored eeprom %d: uncompressed, length %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"can't find reference eeprom struct %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"restore eeprom %d: block, reference %d, length %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"unknown compression code %d\n"

	.no_dead_strip	_ar9300_compress_decision
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9300_compress_decision
_ar9300_compress_decision:              ; @ar9300_compress_decision
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x7
	mov	x19, x6
	mov	x24, x5
	mov	x23, x4
	mov	x26, x3
	mov	x27, x2
	mov	x22, x1
	mov	x25, x0
	bl	_ath9k_hw_common
	mov	x20, x0
	cmp	w27, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w27, #128
	b.ne	LBB0_8
; %bb.2:
	cmp	w19, w21
	b.ne	LBB0_9
; %bb.3:
Lloh0:
	adrp	x8, _COMP_HDR_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMP_HDR_LEN@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x1, x24, x8, lsl #2
	mov	x0, x23
	mov	x2, x19
	bl	_memcpy
Lloh3:
	adrp	x8, _EEPROM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EEPROM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	bl	_ath_dbg
	mov	w0, #0
	b	LBB0_12
LBB0_4:
	cbz	w26, LBB0_7
; %bb.5:
	mov	x0, x26
	bl	_ar9003_eeprom_struct_find_by_id
	cbz	x0, LBB0_10
; %bb.6:
	mov	x1, x0
	mov	x0, x23
	mov	x2, x21
	bl	_memcpy
LBB0_7:
Lloh8:
	adrp	x8, _EEPROM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EEPROM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	stp	x26, x19, [sp]
Lloh11:
	adrp	x2, l_.str.3@PAGE
Lloh12:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	bl	_ath_dbg
Lloh13:
	adrp	x8, _COMP_HDR_LEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _COMP_HDR_LEN@GOTPAGEOFF]
Lloh15:
	ldrsw	x8, [x8]
	add	x3, x24, x8, lsl #2
	mov	x0, x25
	mov	x1, x23
	mov	x2, x21
	mov	x4, x19
	bl	_ar9300_uncompress_block
	mov	w0, #0
	b	LBB0_12
LBB0_8:
Lloh16:
	adrp	x8, _EEPROM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EEPROM@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.4@PAGE
Lloh20:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x3, x27
	b	LBB0_11
LBB0_9:
Lloh21:
	adrp	x8, _EEPROM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EEPROM@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh24:
	adrp	x2, l_.str@PAGE
Lloh25:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	b	LBB0_11
LBB0_10:
Lloh26:
	adrp	x8, _EEPROM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EEPROM@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str.2@PAGE
Lloh30:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x3, x26
LBB0_11:
	bl	_ath_dbg
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM,4,2                     ; @EEPROM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EEPROM structure size mismatch memory=%d eeprom=%d\n"

	.comm	_COMP_HDR_LEN,4,2               ; @COMP_HDR_LEN
l_.str.1:                               ; @.str.1
	.asciz	"restored eeprom %d: uncompressed, length %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"can't find reference eeprom struct %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"restore eeprom %d: block, reference %d, length %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"unknown compression code %d\n"

	.no_dead_strip	_ar9300_compress_decision
.subsections_via_symbols
