	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_eeprom_free_pcal_info
_ath5k_eeprom_free_pcal_info:           ## @ath5k_eeprom_free_pcal_info
	.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	%esi, %r14d
	movq	%rdi, %rbx
	cmpl	$128, %esi
	je	LBB0_7
## %bb.1:
	cmpl	$129, %r14d
	je	LBB0_5
## %bb.2:
	cmpl	$130, %r14d
	jne	LBB0_19
## %bb.3:
	movl	16(%rbx), %edi
	callq	_AR5K_EEPROM_HDR_11A
	testl	%eax, %eax
	je	LBB0_17
## %bb.4:
	leaq	32(%rbx), %rcx
	jmp	LBB0_9
LBB0_7:
	movl	16(%rbx), %edi
	callq	_AR5K_EEPROM_HDR_11G
	testl	%eax, %eax
	je	LBB0_17
## %bb.8:
	leaq	8(%rbx), %rcx
	jmp	LBB0_9
LBB0_5:
	movl	16(%rbx), %edi
	callq	_AR5K_EEPROM_HDR_11B
	testl	%eax, %eax
	je	LBB0_17
## %bb.6:
	leaq	24(%rbx), %rcx
LBB0_9:
	movl	%r14d, %edx
	movq	(%rbx), %rax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_17
## %bb.10:
	movq	(%rcx), %r13
	xorl	%r12d, %r12d
	movq	_AR5K_EEPROM_N_PD_CURVES@GOTPCREL(%rip), %rdx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_kfree
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_AR5K_EEPROM_N_PD_CURVES@GOTPCREL(%rip), %rdx
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r12
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rax,%rcx,8), %r12
	jae	LBB0_17
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	(%r13,%r12,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$0, (%rdx)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$8, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx,%r14), %rdi
	callq	_kfree
	movq	-8(%rbx,%r14), %rdi
	callq	_kfree
	incq	%r15
	movq	(%r13,%r12,8), %rbx
	addq	$16, %r14
	movq	_AR5K_EEPROM_N_PD_CURVES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jb	LBB0_14
	jmp	LBB0_15
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AR5K_EEPROM_N_PD_CURVES,8,3    ## @AR5K_EEPROM_N_PD_CURVES
	.no_dead_strip	_ath5k_eeprom_free_pcal_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_eeprom_free_pcal_info
_ath5k_eeprom_free_pcal_info:           ; @ath5k_eeprom_free_pcal_info
	.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, x1
	mov	x19, x0
	cmp	w1, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w20, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w20, #130
	b.ne	LBB0_18
; %bb.3:
	ldr	w0, [x19, #16]
	bl	_AR5K_EEPROM_HDR_11A
	cbz	w0, LBB0_19
; %bb.4:
	add	x9, x19, #32
	b	LBB0_9
LBB0_5:
	ldr	w0, [x19, #16]
	bl	_AR5K_EEPROM_HDR_11G
	cbz	w0, LBB0_19
; %bb.6:
	add	x9, x19, #8
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19, #16]
	bl	_AR5K_EEPROM_HDR_11B
	cbz	w0, LBB0_19
; %bb.8:
	add	x9, x19, #24
LBB0_9:
	ldr	x8, [x19]
	ldr	x10, [x8, w20, uxtw #3]
	cbz	x10, LBB0_17
; %bb.10:
	mov	x21, #0
	ldr	x22, [x9]
	mov	w20, w20
Lloh0:
	adrp	x23, _AR5K_EEPROM_N_PD_CURVES@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AR5K_EEPROM_N_PD_CURVES@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	bl	_kfree
	ldr	x8, [x19]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x21, x21, #1
	ldr	x9, [x8, x20, lsl #3]
	cmp	x21, x9
	b.hs	LBB0_17
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	ldr	x0, [x22, x21, lsl #3]
	cbz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x24, #0
	mov	x25, #0
LBB0_16:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x26, x0, x24
	ldr	x0, [x26, #8]
	bl	_kfree
	ldr	x0, [x26]
	bl	_kfree
	add	x25, x25, #1
	ldr	x8, [x23]
	ldr	x0, [x22, x21, lsl #3]
	add	x24, x24, #16
	cmp	x25, x8
	b.lo	LBB0_16
	b	LBB0_11
LBB0_17:
	mov	w0, #0
	b	LBB0_19
LBB0_18:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AR5K_EEPROM_N_PD_CURVES,8,3    ; @AR5K_EEPROM_N_PD_CURVES
	.no_dead_strip	_ath5k_eeprom_free_pcal_info
.subsections_via_symbols
