	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_fetch_cal_file
_ath10k_fetch_cal_file:                 ## @ath10k_fetch_cal_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	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	12(%rdi), %edi
	callq	_ath10k_bus_str
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	callq	_dev_name
	leaq	L_.str(%rip), %rdx
	leaq	-144(%rbp), %r15
	movq	%r15, %rdi
	movl	$100, %esi
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_scnprintf
	movq	_ATH10K_FW_DIR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_ath10k_fetch_fw_file
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	12(%rbx), %edi
	callq	_ath10k_bus_str
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rdx
	leaq	-144(%rbp), %r15
	movq	%r15, %rdi
	movl	$100, %esi
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_scnprintf
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_ath10k_fetch_fw_file
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %rdi
	callq	_PTR_ERR
	jmp	LBB0_4
LBB0_3:
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %ecx
	leaq	L_.str.2(%rip), %rdx
	leaq	-144(%rbp), %r8
	movq	%rbx, %rdi
	callq	_ath10k_dbg
	xorl	%eax, %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$112, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pre-cal-%s-%s.bin"

	.comm	_ATH10K_FW_DIR,4,2              ## @ATH10K_FW_DIR
L_.str.1:                               ## @.str.1
	.asciz	"cal-%s-%s.bin"

	.comm	_ATH10K_DBG_BOOT,4,2            ## @ATH10K_DBG_BOOT
L_.str.2:                               ## @.str.2
	.asciz	"found calibration file %s/%s\n"

	.no_dead_strip	_ath10k_fetch_cal_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_fetch_cal_file
_ath10k_fetch_cal_file:                 ; @ath10k_fetch_cal_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	w0, [x0, #12]
	bl	_ath10k_bus_str
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_dev_name
	mov	x4, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #4
	mov	w1, #100
	mov	x3, x20
	bl	_scnprintf
Lloh5:
	adrp	x21, _ATH10K_FW_DIR@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ATH10K_FW_DIR@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #4
	mov	x0, x19
	bl	_ath10k_fetch_fw_file
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x19, #12]
	bl	_ath10k_bus_str
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_dev_name
	mov	x4, x0
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #4
	mov	w1, #100
	mov	x3, x20
	bl	_scnprintf
	ldr	w1, [x21]
	add	x2, sp, #4
	mov	x0, x19
	bl	_ath10k_fetch_fw_file
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x19]
	bl	_PTR_ERR
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _ATH10K_DBG_BOOT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATH10K_DBG_BOOT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w3, [x21]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x4, sp, #4
	mov	x0, x19
	bl	_ath10k_dbg
	mov	w0, #0
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pre-cal-%s-%s.bin"

	.comm	_ATH10K_FW_DIR,4,2              ; @ATH10K_FW_DIR
l_.str.1:                               ; @.str.1
	.asciz	"cal-%s-%s.bin"

	.comm	_ATH10K_DBG_BOOT,4,2            ; @ATH10K_DBG_BOOT
l_.str.2:                               ; @.str.2
	.asciz	"found calibration file %s/%s\n"

	.no_dead_strip	_ath10k_fetch_cal_file
.subsections_via_symbols
