	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_fetch_board_file
_ath6kl_fetch_board_file:               ## @ath6kl_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	cmpq	$0, 8(%rdi)
	jne	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	8(%rbx), %r15
	movq	16(%rbx), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_ath6kl_get_fw
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_check_device_tree
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%r12, %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_ath6kl_warn
	movq	24(%rbx), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_ath6kl_get_fw
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_ath6kl_err
	movl	%ebx, %r14d
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_ath6kl_warn
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_ath6kl_warn
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get board file %s (%d), trying to find default board file.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to get default board file %s: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"WARNING! No proper board file was not found, instead using a default board file.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Most likely your hardware won't work as specified. Install correct board file!\n"

	.no_dead_strip	_ath6kl_fetch_board_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_board_file
_ath6kl_fetch_board_file:               ; @ath6kl_fetch_board_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x8, [x20, #8]!
	cbz	x8, LBB0_2
LBB0_1:
	mov	w19, #0
	b	LBB0_4
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	x21, [x19, #16]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_ath6kl_get_fw
	cbz	w0, LBB0_1
; %bb.6:
	mov	x22, x0
	mov	x0, x19
	bl	_check_device_tree
	cbnz	x0, LBB0_1
; %bb.7:
	stp	x21, x22, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ath6kl_warn
	ldr	x21, [x19, #24]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_ath6kl_get_fw
	mov	x19, x0
	cbz	w0, LBB0_9
; %bb.8:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x19
	bl	_ath6kl_err
	b	LBB0_4
LBB0_9:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ath6kl_warn
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ath6kl_warn
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get board file %s (%d), trying to find default board file.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to get default board file %s: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"WARNING! No proper board file was not found, instead using a default board file.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Most likely your hardware won't work as specified. Install correct board file!\n"

	.no_dead_strip	_ath6kl_fetch_board_file
.subsections_via_symbols
