	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_falcon_load_firmware           ## -- Begin function falcon_load_firmware
	.p2align	4, 0x90
_falcon_load_firmware:                  ## @falcon_load_firmware
	.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	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	24(%rdi), %rax
	movl	(%r14), %esi
	movl	%esi, 8(%rdi)
	leaq	4(%rdi), %rdx
	callq	*8(%rax)
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movl	32(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_falcon_copy_firmware_image
	movq	%rbx, %rdi
	callq	_falcon_parse_firmware_image
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_release_firmware
	movq	$0, 16(%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_4
LBB0_2:
	movl	%eax, %r15d
	movl	32(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	24(%rbx), %rax
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	callq	*(%rax)
LBB0_4:
	movl	%r15d, %eax
	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	"DMA memory mapping failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to parse firmware image\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_falcon_load_firmware           ; -- Begin function falcon_load_firmware
	.p2align	2
_falcon_load_firmware:                  ; @falcon_load_firmware
	.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	x19, x0
	ldp	x20, x8, [x0, #16]
	ldr	w1, [x20]
	str	w1, [x0, #8]
	ldr	x8, [x8, #8]
	add	x2, x0, #4
	blr	x8
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #32]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	w0, [x19]
	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
	b	_PTR_ERR
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_falcon_copy_firmware_image
	mov	x0, x19
	bl	_falcon_parse_firmware_image
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_release_firmware
	mov	w21, #0
	str	xzr, [x19, #16]
	b	LBB0_5
LBB0_4:
	mov	x21, x0
	ldr	w0, [x19, #32]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldp	w2, w1, [x19, #4]
	ldr	w3, [x19]
	mov	x0, x19
	blr	x8
LBB0_5:
	mov	x0, x21
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA memory mapping failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to parse firmware image\n"

.subsections_via_symbols
