	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psp_v11_0_bootloader_load_sysdrv
_psp_v11_0_bootloader_load_sysdrv:      ## @psp_v11_0_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	24(%rdi), %r12
	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
	movl	(%r15), %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_mmMP0_SMN_C2PMSG_58@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movq	%rax, 16(%r14)
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	callq	_dev_info
	jmp	LBB0_3
LBB0_2:
	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_4
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	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_58,4,2        ## @mmMP0_SMN_C2PMSG_58
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sos fw version = 0x%x.\n"

	.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_v11_0_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_v11_0_bootloader_load_sysdrv
_psp_v11_0_bootloader_load_sysdrv:      ; @psp_v11_0_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
	ldr	x21, [x0, #24]
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
	ldr	w0, [x20]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _mmMP0_SMN_C2PMSG_58@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmMP0_SMN_C2PMSG_58@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_RREG32_SOC15
	mov	x2, x0
	str	x0, [x19, #16]
	ldr	w0, [x21]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x21, _mmMP0_SMN_C2PMSG_35@GOTPAGE
Lloh11:
	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_4
LBB0_3:
	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_4:
	ldr	w0, [x19, #12]
Lloh12:
	adrp	x8, _PSP_1_MEG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PSP_1_MEG@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	ldp	w1, w0, [x19, #8]
	ldr	w2, [x19, #4]
	bl	_memcpy
	ldr	w0, [x20]
Lloh15:
	adrp	x8, _mmMP0_SMN_C2PMSG_36@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mmMP0_SMN_C2PMSG_36@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	ldr	w8, [x19]
	sbfx	x3, x8, #20, #12
	mov	w1, #0
	bl	_WREG32_SOC15
Lloh18:
	adrp	x8, _PSP_BL__LOAD_SYSDRV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PSP_BL__LOAD_SYSDRV@GOTPAGEOFF]
Lloh20:
	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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MP0,4,2                        ; @MP0
	.comm	_mmMP0_SMN_C2PMSG_81,4,2        ; @mmMP0_SMN_C2PMSG_81
	.comm	_mmMP0_SMN_C2PMSG_58,4,2        ; @mmMP0_SMN_C2PMSG_58
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sos fw version = 0x%x.\n"

	.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_v11_0_bootloader_load_sysdrv
.subsections_via_symbols
