	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_core_fetch_board_data_api_n
_ath10k_core_fetch_board_data_api_n:    ## @ath10k_core_fetch_board_data_api_n
	.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	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_ath10k_fetch_fw_file
	movq	%rax, %rdi
	movq	%rax, 8(%r14)
LBB0_2:
	callq	_IS_ERR
	movq	8(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	movq	8(%rdi), %r12
	movq	_ATH10K_BOARD_MAGIC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_strlen
	incl	%eax
	movslq	%eax, %r13
	cmpq	%r13, %r15
	jae	LBB0_6
## %bb.4:
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
LBB0_5:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_ath10k_err
	jmp	LBB0_8
LBB0_6:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath10k_err
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_9:
	movq	%r14, %rdi
	callq	_ath10k_core_free_board_files
LBB0_19:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_ALIGN
	movq	%r15, %rbx
	subq	%rax, %rbx
	jae	LBB0_12
## %bb.11:
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_12:
	leaq	(%r12,%rax,4), %r15
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_ath10k_core_search_bd
	movl	%eax, %r12d
	movq	_ENOENT@GOTPCREL(%rip), %r13
	xorl	%eax, %eax
	subl	(%r13), %eax
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_15
## %bb.13:
	cmpl	%eax, %r12d
	jne	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_ath10k_core_search_bd
	movl	%eax, %r12d
	xorl	%eax, %eax
	subl	(%r13), %eax
LBB0_15:
	cmpl	%eax, %r12d
	jne	LBB0_17
## %bb.16:
	movl	(%r14), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_ath10k_err
	movq	_ENODATA@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_17:
	testl	%r12d, %r12d
	jne	LBB0_9
## %bb.18:
	xorl	%r12d, %r12d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_BOARD_MAGIC,4,2         ## @ATH10K_BOARD_MAGIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find magic value in %s/%s, file too short: %zu\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"found invalid board magic\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed: %s/%s too small to contain board data, len: %zu\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.3:                               ## @.str.3
	.asciz	"failed to fetch board data for %s from %s/%s\n"

	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_ath10k_core_fetch_board_data_api_n
.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_board_data_api_n
_ath10k_core_fetch_board_data_api_n:    ; @ath10k_core_fetch_board_data_api_n
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x19]
	mov	x0, x19
	mov	x2, x20
	bl	_ath10k_fetch_fw_file
	str	x0, [x19, #8]
LBB0_2:
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	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
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_4:
	ldp	x25, x23, [x0]
Lloh0:
	adrp	x26, _ATH10K_BOARD_MAGIC@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ATH10K_BOARD_MAGIC@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_strlen
	add	w8, w0, #1
	sxtw	x24, w8
	cmp	x25, x24
	b.hs	LBB0_6
; %bb.5:
	ldr	w8, [x19]
	stp	x20, x25, [sp, #8]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_6:
	ldr	w1, [x26]
	mov	x0, x23
	mov	x2, x24
	bl	_memcmp
	cbz	x0, LBB0_8
; %bb.7:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
	mov	x0, x24
	mov	w1, #4
	bl	_ALIGN
	subs	x24, x25, x0
	b.hs	LBB0_13
; %bb.9:
	ldr	w8, [x19]
	stp	x20, x25, [sp, #8]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_ath10k_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_11:
	mov	x0, x19
	bl	_ath10k_core_free_board_files
LBB0_12:
	mov	x0, x23
	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
	add	sp, sp, #112
	ret
LBB0_13:
	add	x25, x23, x0, lsl #2
	mov	x0, x19
	mov	x1, x21
	mov	x2, x25
	mov	x3, x24
	bl	_ath10k_core_search_bd
	mov	x23, x0
Lloh11:
	adrp	x26, _ENOENT@GOTPAGE
Lloh12:
	ldr	x26, [x26, _ENOENT@GOTPAGEOFF]
	ldr	w8, [x26]
	neg	w8, w8
	cbz	x22, LBB0_16
; %bb.14:
	cmp	w23, w8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x25
	mov	x3, x24
	bl	_ath10k_core_search_bd
	mov	x23, x0
	ldr	w8, [x26]
	neg	w8, w8
LBB0_16:
	cmp	w23, w8
	b.ne	LBB0_18
; %bb.17:
	ldr	w8, [x19]
	stp	x8, x20, [sp, #8]
	str	x21, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ath10k_err
Lloh15:
	adrp	x8, _ENODATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_18:
	cbnz	w23, LBB0_11
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_BOARD_MAGIC,4,2         ; @ATH10K_BOARD_MAGIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find magic value in %s/%s, file too short: %zu\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"found invalid board magic\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed: %s/%s too small to contain board data, len: %zu\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.3:                               ; @.str.3
	.asciz	"failed to fetch board data for %s from %s/%s\n"

	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_ath10k_core_fetch_board_data_api_n
.subsections_via_symbols
