	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_core_fetch_firmware_files
_ath10k_core_fetch_firmware_files:      ## @ath10k_core_fetch_firmware_files
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_ath10k_fetch_cal_file
	movq	_ATH10K_FW_API_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	8(%r15), %r14
	leaq	-160(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, (%r15)
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %ecx
	callq	_ath10k_dbg
	movl	(%r15), %ecx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$100, %edx
	callq	_ath10k_core_get_fw_name
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_ath10k_core_fetch_firmware_api_n
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%rbx), %eax
	movq	_ATH10K_FW_API_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %ebx
	movl	%eax, %ebx
	jg	LBB0_2
## %bb.6:
	movq	_ATH10K_FW_API_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	4(%r15), %r8d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %r9d
	callq	_ath10k_err
	jmp	LBB0_4
LBB0_3:
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	callq	_ath10k_dbg
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.5:
	movl	%r12d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_FW_API_MAX,4,2          ## @ATH10K_FW_API_MAX
	.comm	_ATH10K_FW_API_MIN,4,2          ## @ATH10K_FW_API_MIN
	.comm	_ATH10K_DBG_BOOT,4,2            ## @ATH10K_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trying fw api %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to find firmware-N.bin (N between %d and %d) from %s: %d"

L_.str.2:                               ## @.str.2
	.asciz	"using fw api %d\n"

	.no_dead_strip	_ath10k_core_fetch_firmware_files
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_core_fetch_firmware_files
_ath10k_core_fetch_firmware_files:      ; @ath10k_core_fetch_firmware_files
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_ath10k_fetch_cal_file
Lloh3:
	adrp	x24, _ATH10K_FW_API_MAX@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ATH10K_FW_API_MAX@GOTPAGEOFF]
	ldr	w20, [x24]
	add	x21, x19, #8
Lloh5:
	adrp	x25, _ATH10K_DBG_BOOT@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ATH10K_DBG_BOOT@GOTPAGEOFF]
Lloh7:
	adrp	x23, l_.str@PAGE
Lloh8:
	add	x23, x23, l_.str@PAGEOFF
Lloh9:
	adrp	x26, _ATH10K_FW_API_MIN@GOTPAGE
Lloh10:
	ldr	x26, [x26, _ATH10K_FW_API_MIN@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	str	w20, [x19]
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x23
	mov	x3, x20
	bl	_ath10k_dbg
	ldr	w3, [x19]
	add	x1, sp, #4
	mov	x0, x19
	mov	w2, #100
	bl	_ath10k_core_get_fw_name
	add	x1, sp, #4
	mov	x0, x19
	mov	x2, x21
	bl	_ath10k_core_fetch_firmware_api_n
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	w8, w20, #1
	ldr	w2, [x26]
	cmp	w20, w2
	mov	x20, x8
	b.gt	LBB0_1
; %bb.3:
	ldr	w3, [x24]
	ldr	w4, [x19, #4]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x5, x22
	bl	_ath10k_err
	b	LBB0_5
LBB0_4:
	ldr	w1, [x25]
	ldr	w3, [x19]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
LBB0_5:
	ldur	x8, [x29, #-72]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x22
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_FW_API_MAX,4,2          ; @ATH10K_FW_API_MAX
	.comm	_ATH10K_FW_API_MIN,4,2          ; @ATH10K_FW_API_MIN
	.comm	_ATH10K_DBG_BOOT,4,2            ; @ATH10K_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trying fw api %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to find firmware-N.bin (N between %d and %d) from %s: %d"

l_.str.2:                               ; @.str.2
	.asciz	"using fw api %d\n"

	.no_dead_strip	_ath10k_core_fetch_firmware_files
.subsections_via_symbols
