	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psp_v3_1_bootloader_load_sysdrv
_psp_v3_1_bootloader_load_sysdrv:       ## @psp_v3_1_bootloader_load_sysdrv
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_MP0@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_mmMP0_SMN_C2PMSG_81@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	movq	_mmMP0_SMN_C2PMSG_35@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$-2147483648, %edx              ## imm = 0x80000000
	movl	$-2147483648, %ecx              ## imm = 0x80000000
	xorl	%r8d, %r8d
	callq	_psp_wait_for
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	12(%r14), %edi
	movq	_PSP_1_MEG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movl	12(%r14), %edi
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	callq	_memcpy
	movl	(%r15), %edi
	movq	_mmMP0_SMN_C2PMSG_36@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %eax
	sarl	$20, %eax
	movslq	%eax, %rcx
	xorl	%esi, %esi
	callq	_WREG32_SOC15
	movq	_PSP_BL__LOAD_SYSDRV@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%r15), %edi
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_WREG32_SOC15
	movl	$20, %edi
	callq	_mdelay
	movl	(%r15), %edi
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$-2147483648, %edx              ## imm = 0x80000000
	movl	$-2147483648, %ecx              ## imm = 0x80000000
	xorl	%r8d, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_psp_wait_for                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MP0,4,2                        ## @MP0
	.comm	_mmMP0_SMN_C2PMSG_81,4,2        ## @mmMP0_SMN_C2PMSG_81
	.comm	_mmMP0_SMN_C2PMSG_35,4,2        ## @mmMP0_SMN_C2PMSG_35
	.comm	_PSP_1_MEG,4,2                  ## @PSP_1_MEG
	.comm	_mmMP0_SMN_C2PMSG_36,4,2        ## @mmMP0_SMN_C2PMSG_36
	.comm	_PSP_BL__LOAD_SYSDRV,8,3        ## @PSP_BL__LOAD_SYSDRV
	.no_dead_strip	_psp_v3_1_bootloader_load_sysdrv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psp_v3_1_bootloader_load_sysdrv
_psp_v3_1_bootloader_load_sysdrv:       ; @psp_v3_1_bootloader_load_sysdrv
	.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
Lloh0:
	adrp	x20, _MP0@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MP0@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _mmMP0_SMN_C2PMSG_81@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmMP0_SMN_C2PMSG_81@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_RREG32_SOC15
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh5:
	adrp	x21, _mmMP0_SMN_C2PMSG_35@GOTPAGE
Lloh6:
	ldr	x21, [x21, _mmMP0_SMN_C2PMSG_35@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-2147483648
	mov	w3, #-2147483648
	mov	w4, #0
	bl	_psp_wait_for
	cbz	w0, LBB0_3
LBB0_2:
	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
LBB0_3:
	ldr	w0, [x19, #12]
Lloh7:
	adrp	x8, _PSP_1_MEG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PSP_1_MEG@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	ldp	w1, w0, [x19, #8]
	ldr	w2, [x19, #4]
	bl	_memcpy
	ldr	w0, [x20]
Lloh10:
	adrp	x8, _mmMP0_SMN_C2PMSG_36@GOTPAGE
Lloh11:
	ldr	x8, [x8, _mmMP0_SMN_C2PMSG_36@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	ldr	w8, [x19]
	sbfx	x3, x8, #20, #12
	mov	w1, #0
	bl	_WREG32_SOC15
Lloh13:
	adrp	x8, _PSP_BL__LOAD_SYSDRV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PSP_BL__LOAD_SYSDRV@GOTPAGEOFF]
Lloh15:
	ldr	x3, [x8]
	ldr	w0, [x20]
	ldr	w2, [x21]
	mov	w1, #0
	bl	_WREG32_SOC15
	mov	w0, #20
	bl	_mdelay
	ldr	w0, [x20]
	ldr	w2, [x21]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-2147483648
	mov	w3, #-2147483648
	mov	w4, #0
	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	_psp_wait_for
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MP0,4,2                        ; @MP0
	.comm	_mmMP0_SMN_C2PMSG_81,4,2        ; @mmMP0_SMN_C2PMSG_81
	.comm	_mmMP0_SMN_C2PMSG_35,4,2        ; @mmMP0_SMN_C2PMSG_35
	.comm	_PSP_1_MEG,4,2                  ; @PSP_1_MEG
	.comm	_mmMP0_SMN_C2PMSG_36,4,2        ; @mmMP0_SMN_C2PMSG_36
	.comm	_PSP_BL__LOAD_SYSDRV,8,3        ; @PSP_BL__LOAD_SYSDRV
	.no_dead_strip	_psp_v3_1_bootloader_load_sysdrv
.subsections_via_symbols
