	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_loadModules                    ## -- Begin function loadModules
	.p2align	4, 0x90
_loadModules:                           ## @loadModules
	.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
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SifLoadModule
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_Log_print
	xorl	%eax, %eax
	callq	_SleepThread
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SifLoadModule
	leaq	L_.str.3(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SifLoadModule
	leaq	L_.str.4(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SifLoadModule
	movl	%eax, -12(%rbp)
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_Log_print
	xorl	%eax, %eax
	callq	_SleepThread
LBB0_4:
	movq	_MC_TYPE_MC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mcInit
	xorl	%edi, %edi
	callq	_SifInitRpc
	movq	_usbd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_size_usbd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rbx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_SifExecModuleBuffer
	movq	_ps2kbd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_size_ps2kbd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_SifExecModuleBuffer
	xorl	%eax, %eax
	callq	_PS2KbdInit
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_print
LBB0_6:
	movq	_PS2KBD_READMODE_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PS2KbdSetReadmode
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rom0:SIO2MAN"

L_.str.1:                               ## @.str.1
	.asciz	"Sio2man loading failed: %d"

L_.str.2:                               ## @.str.2
	.asciz	"rom0:MCMAN"

L_.str.3:                               ## @.str.3
	.asciz	"rom0:MCSERV"

L_.str.4:                               ## @.str.4
	.asciz	"rom0:PADMAN"

L_.str.5:                               ## @.str.5
	.asciz	"Padman loading failed: %d"

	.comm	_MC_TYPE_MC,4,2                 ## @MC_TYPE_MC
	.comm	_usbd,4,2                       ## @usbd
	.comm	_size_usbd,4,2                  ## @size_usbd
	.comm	_ps2kbd,4,2                     ## @ps2kbd
	.comm	_size_ps2kbd,4,2                ## @size_ps2kbd
L_.str.6:                               ## @.str.6
	.asciz	"Failed to Init Keyboard."

	.comm	_PS2KBD_READMODE_RAW,4,2        ## @PS2KBD_READMODE_RAW
	.comm	_audsrv,4,2                     ## @audsrv
	.comm	_size_audsrv,4,2                ## @size_audsrv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_loadModules                    ; -- Begin function loadModules
	.p2align	2
_loadModules:                           ; @loadModules
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	mov	x2, #0
	bl	_SifLoadModule
                                        ; kill: def $w0 killed $w0 def $x0
	tbz	w0, #31, LBB0_2
; %bb.1:
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Log_print
	bl	_SleepThread
LBB0_2:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #0
	mov	x2, #0
	bl	_SifLoadModule
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w1, #0
	mov	x2, #0
	bl	_SifLoadModule
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	w1, #0
	mov	x2, #0
	bl	_SifLoadModule
                                        ; kill: def $w0 killed $w0 def $x0
	stur	w0, [x29, #-4]
	tbz	w0, #31, LBB0_4
; %bb.3:
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_Log_print
	bl	_SleepThread
LBB0_4:
Lloh12:
	adrp	x8, _MC_TYPE_MC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MC_TYPE_MC@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_mcInit
	mov	w0, #0
	bl	_SifInitRpc
Lloh15:
	adrp	x8, _usbd@GOTPAGE
Lloh16:
	ldr	x8, [x8, _usbd@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _size_usbd@GOTPAGE
Lloh19:
	ldr	x8, [x8, _size_usbd@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	sub	x4, x29, #4
	mov	w2, #0
	mov	x3, #0
	bl	_SifExecModuleBuffer
Lloh21:
	adrp	x8, _ps2kbd@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ps2kbd@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _size_ps2kbd@GOTPAGE
Lloh25:
	ldr	x8, [x8, _size_ps2kbd@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	sub	x4, x29, #4
	mov	w2, #0
	mov	x3, #0
	bl	_SifExecModuleBuffer
	bl	_PS2KbdInit
	cbnz	x0, LBB0_6
; %bb.5:
Lloh27:
	adrp	x0, l_.str.6@PAGE
Lloh28:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_Log_print
LBB0_6:
Lloh29:
	adrp	x8, _PS2KBD_READMODE_RAW@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PS2KBD_READMODE_RAW@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_PS2KbdSetReadmode
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rom0:SIO2MAN"

l_.str.1:                               ; @.str.1
	.asciz	"Sio2man loading failed: %d"

l_.str.2:                               ; @.str.2
	.asciz	"rom0:MCMAN"

l_.str.3:                               ; @.str.3
	.asciz	"rom0:MCSERV"

l_.str.4:                               ; @.str.4
	.asciz	"rom0:PADMAN"

l_.str.5:                               ; @.str.5
	.asciz	"Padman loading failed: %d"

	.comm	_MC_TYPE_MC,4,2                 ; @MC_TYPE_MC
	.comm	_usbd,4,2                       ; @usbd
	.comm	_size_usbd,4,2                  ; @size_usbd
	.comm	_ps2kbd,4,2                     ; @ps2kbd
	.comm	_size_ps2kbd,4,2                ; @size_ps2kbd
l_.str.6:                               ; @.str.6
	.asciz	"Failed to Init Keyboard."

	.comm	_PS2KBD_READMODE_RAW,4,2        ; @PS2KBD_READMODE_RAW
	.comm	_audsrv,4,2                     ; @audsrv
	.comm	_size_audsrv,4,2                ; @size_audsrv
.subsections_via_symbols
