	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_firmware_cb
_load_firmware_cb:                      ## @load_firmware_cb
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %r15
	testq	%rdi, %rdi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_tuner_dbg
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_load_all_firmwares
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_release_firmware
	testl	%r14d, %r14d
	js	LBB0_5
## %bb.3:
	movq	_XC2028_ACTIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movl	4(%r15), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_tuner_err
	movq	_XC2028_NODEV@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"request_firmware_nowait(): %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"OK"

L_.str.2:                               ## @.str.2
	.asciz	"error"

L_.str.3:                               ## @.str.3
	.asciz	"Could not load firmware %s.\n"

	.comm	_XC2028_NODEV,4,2               ## @XC2028_NODEV
	.comm	_XC2028_ACTIVE,4,2              ## @XC2028_ACTIVE
	.no_dead_strip	_load_firmware_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_firmware_cb
_load_firmware_cb:                      ; @load_firmware_cb
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x21, [x1]
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x1, x9, x8, eq
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_tuner_dbg
	cbz	x19, LBB0_3
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_load_all_firmwares
	mov	x20, x0
	mov	x0, x19
	bl	_release_firmware
	tbnz	w20, #31, LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _XC2028_ACTIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XC2028_ACTIVE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w1, [x21, #4]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_tuner_err
Lloh10:
	adrp	x8, _XC2028_NODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XC2028_NODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"request_firmware_nowait(): %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"OK"

l_.str.2:                               ; @.str.2
	.asciz	"error"

l_.str.3:                               ; @.str.3
	.asciz	"Could not load firmware %s.\n"

	.comm	_XC2028_NODEV,4,2               ; @XC2028_NODEV
	.comm	_XC2028_ACTIVE,4,2              ; @XC2028_ACTIVE
	.no_dead_strip	_load_firmware_cb
.subsections_via_symbols
