	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_fetch_otp_file
_ath6kl_fetch_otp_file:                 ## @ath6kl_fetch_otp_file
	.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	%r12
	pushq	%rbx
	subq	$112, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%r14d, %r14d
	cmpq	$0, 8(%rdi)
	je	LBB0_1
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r14d, %eax
	addq	$112, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	16(%rdi), %r8
	testq	%r8, %r8
	je	LBB0_2
## %bb.3:
	leaq	8(%rbx), %r15
	movq	24(%rbx), %rcx
	leaq	L_.str.1(%rip), %rdx
	leaq	-144(%rbp), %r12
	movq	%r12, %rdi
	movl	$100, %esi
	callq	_snprintf
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_ath6kl_get_fw
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	leaq	-144(%rbp), %rsi
	movl	%eax, %edx
	callq	_ath6kl_err
	movl	%ebx, %r14d
	jmp	LBB0_5
LBB0_2:
	movq	_ATH6KL_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ath6kl_dbg
	jmp	LBB0_5
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH6KL_DBG_BOOT,4,2            ## @ATH6KL_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no OTP file configured for this hw\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s/%s"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to get OTP file %s: %d\n"

	.no_dead_strip	_ath6kl_fetch_otp_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_fetch_otp_file
_ath6kl_fetch_otp_file:                 ; @ath6kl_fetch_otp_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	x20, x0
	ldr	x8, [x20, #8]!
	cbz	x8, LBB0_4
LBB0_1:
	mov	w19, #0
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_4:
	mov	x19, x0
	ldr	x4, [x0, #16]
	cbz	x4, LBB0_7
; %bb.5:
	ldr	x3, [x19, #24]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #4
	mov	w1, #100
	bl	_snprintf
	add	x1, sp, #4
	mov	x0, x19
	mov	x2, x20
	mov	x3, x19
	bl	_ath6kl_get_fw
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.6:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #4
	mov	x2, x19
	bl	_ath6kl_err
	b	LBB0_2
LBB0_7:
Lloh10:
	adrp	x8, _ATH6KL_DBG_BOOT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATH6KL_DBG_BOOT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ath6kl_dbg
	b	LBB0_1
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH6KL_DBG_BOOT,4,2            ; @ATH6KL_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no OTP file configured for this hw\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s/%s"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to get OTP file %s: %d\n"

	.no_dead_strip	_ath6kl_fetch_otp_file
.subsections_via_symbols
