	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_core_fetch_board_file   ## -- Begin function ath10k_core_fetch_board_file
	.p2align	4, 0x90
_ath10k_core_fetch_board_file:          ## @ath10k_core_fetch_board_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	%rbx
	subq	$232, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_ATH10K_BD_IE_BOARD@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_7
## %bb.1:
	leaq	-144(%rbp), %rsi
	movq	%r15, %rdi
	movl	$100, %edx
	movl	$1, %ecx
	callq	_ath10k_core_create_board_name
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_7:
	movq	_ATH10K_BD_IE_BOARD_EXT@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_10
## %bb.8:
	leaq	-144(%rbp), %rsi
	movq	%r15, %rdi
	movl	$100, %edx
	callq	_ath10k_core_create_eboard_name
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath10k_err
	jmp	LBB0_11
LBB0_5:
	leaq	-256(%rbp), %rsi
	movq	%r15, %rdi
	movl	$100, %edx
	xorl	%ecx, %ecx
	callq	_ath10k_core_create_board_name
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	movq	%r15, %rdi
	movl	%ebx, %edx
	jmp	LBB0_4
LBB0_10:
	movl	$2, (%r15)
	movq	_ATH10K_BOARD_API2_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-144(%rbp), %rsi
	leaq	-256(%rbp), %rdx
	movq	%r15, %rdi
	callq	_ath10k_core_fetch_board_data_api_n
	testl	%eax, %eax
	je	LBB0_13
LBB0_11:
	movl	$1, (%r15)
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ath10k_core_fetch_board_data_api_1
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	movl	4(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
LBB0_4:
	xorl	%eax, %eax
	callq	_ath10k_err
	jmp	LBB0_14
LBB0_13:
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %ecx
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	callq	_ath10k_dbg
	xorl	%ebx, %ebx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ebx, %eax
	addq	$232, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_BD_IE_BOARD,4,2         ## @ATH10K_BD_IE_BOARD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create board name: %d"

L_.str.1:                               ## @.str.1
	.asciz	"failed to create fallback board name: %d"

	.comm	_ATH10K_BD_IE_BOARD_EXT,4,2     ## @ATH10K_BD_IE_BOARD_EXT
L_.str.2:                               ## @.str.2
	.asciz	"fallback to eboard.bin since board id 0"

	.comm	_ATH10K_BOARD_API2_FILE,4,2     ## @ATH10K_BOARD_API2_FILE
L_.str.3:                               ## @.str.3
	.asciz	"failed to fetch board-2.bin or board.bin from %s\n"

	.comm	_ATH10K_DBG_BOOT,4,2            ## @ATH10K_DBG_BOOT
L_.str.4:                               ## @.str.4
	.asciz	"using board api %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_core_fetch_board_file   ; -- Begin function ath10k_core_fetch_board_file
	.p2align	2
_ath10k_core_fetch_board_file:          ; @ath10k_core_fetch_board_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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	x20, x1
	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]
Lloh3:
	adrp	x8, _ATH10K_BD_IE_BOARD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH10K_BD_IE_BOARD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.1:
	add	x1, sp, #116
	mov	x0, x19
	mov	w2, #100
	mov	w3, #1
	bl	_ath10k_core_create_board_name
	cbz	w0, LBB0_6
; %bb.2:
	mov	x21, x0
	str	x21, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_3:
Lloh8:
	adrp	x8, _ATH10K_BD_IE_BOARD_EXT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATH10K_BD_IE_BOARD_EXT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_8
; %bb.4:
	add	x1, sp, #116
	mov	x0, x19
	mov	w2, #100
	bl	_ath10k_core_create_eboard_name
	cbz	w0, LBB0_8
; %bb.5:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ath10k_err
	b	LBB0_9
LBB0_6:
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #100
	mov	w3, #0
	bl	_ath10k_core_create_board_name
	cbz	w0, LBB0_8
; %bb.7:
	mov	x21, x0
	str	x21, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_13
LBB0_8:
	mov	w8, #2
	str	w8, [x19]
Lloh15:
	adrp	x8, _ATH10K_BOARD_API2_FILE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ATH10K_BOARD_API2_FILE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	add	x1, sp, #116
	add	x2, sp, #16
	mov	x0, x19
	bl	_ath10k_core_fetch_board_data_api_n
	cbz	w0, LBB0_12
LBB0_9:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_ath10k_core_fetch_board_data_api_1
	cbz	w0, LBB0_12
; %bb.10:
	mov	x21, x0
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_ath10k_err
	b	LBB0_13
LBB0_12:
Lloh20:
	adrp	x8, _ATH10K_DBG_BOOT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ATH10K_DBG_BOOT@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w3, [x19]
Lloh23:
	adrp	x2, l_.str.4@PAGE
Lloh24:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	mov	w21, #0
LBB0_13:
	ldur	x8, [x29, #-40]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x21
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_BD_IE_BOARD,4,2         ; @ATH10K_BD_IE_BOARD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create board name: %d"

l_.str.1:                               ; @.str.1
	.asciz	"failed to create fallback board name: %d"

	.comm	_ATH10K_BD_IE_BOARD_EXT,4,2     ; @ATH10K_BD_IE_BOARD_EXT
l_.str.2:                               ; @.str.2
	.asciz	"fallback to eboard.bin since board id 0"

	.comm	_ATH10K_BOARD_API2_FILE,4,2     ; @ATH10K_BOARD_API2_FILE
l_.str.3:                               ; @.str.3
	.asciz	"failed to fetch board-2.bin or board.bin from %s\n"

	.comm	_ATH10K_DBG_BOOT,4,2            ; @ATH10K_DBG_BOOT
l_.str.4:                               ; @.str.4
	.asciz	"using board api %d\n"

.subsections_via_symbols
