	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_aica_firmware
_load_aica_firmware:                    ## @load_aica_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_spu_reset
	movq	_pd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	leaq	-16(%rbp), %rdi
	callq	_request_firmware
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_spu_disable
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	xorl	%edi, %edi
	callq	_spu_memload
	xorl	%eax, %eax
	callq	_spu_enable
	movq	-16(%rbp), %rdi
	callq	_release_firmware
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aica_firmware.bin"

	.comm	_pd,8,3                         ## @pd
	.no_dead_strip	_load_aica_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_aica_firmware
_load_aica_firmware:                    ; @load_aica_firmware
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	bl	_spu_reset
Lloh0:
	adrp	x8, _pd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pd@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_request_firmware
	mov	x19, x0
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
	bl	_spu_disable
	ldr	x8, [sp, #8]
	ldp	w2, w1, [x8]
	mov	w0, #0
	bl	_spu_memload
	bl	_spu_enable
	ldr	x0, [sp, #8]
	bl	_release_firmware
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aica_firmware.bin"

	.comm	_pd,8,3                         ; @pd
	.no_dead_strip	_load_aica_firmware
.subsections_via_symbols
