	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__start                         ## -- Begin function _start
	.p2align	4, 0x90
__start:                                ## @_start
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	_CachedDirInfo@GOTPCREL(%rip), %rbx
	movl	52(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movups	%xmm0, 24(%rbx)
	movq	$0, 40(%rbx)
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_MAX_DIR_CACHE_SECTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$11, %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_AllocSysMemory
	movq	%rax, (%rbx)
LBB0_2:
	movq	_cdReadMode@GOTPCREL(%rip), %rax
	movq	$0, 8(%rax)
	movq	_SCECdSpinStm@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_SCECdSecS2048@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	leaq	L_.str.1(%rip), %rdi
	movq	_file_driver@GOTPCREL(%rip), %rbx
	movq	%rdi, (%rbx)
	movq	_IOP_DT_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	$1, 8(%rbx)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_filedriver_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	callq	_DelDrv
	movq	%rbx, %rdi
	callq	_AddDrv
	movq	_TH_C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movq	_CDVD_Thread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movabsq	$140737488355368, %rax          ## imm = 0x800000000028
	movq	%rax, -40(%rbp)
	movq	$0, -32(%rbp)
	leaq	-40(%rbp), %rdi
	callq	_CreateThread
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_StartThread
	movq	_MODULE_RESIDENT_END@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_MODULE_NO_RESIDENT_END@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CachedDirInfo,56,3             ## @CachedDirInfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_MAX_DIR_CACHE_SECTORS,4,2      ## @MAX_DIR_CACHE_SECTORS
	.comm	_cdReadMode,16,3                ## @cdReadMode
	.comm	_SCECdSpinStm,4,2               ## @SCECdSpinStm
	.comm	_SCECdSecS2048,4,2              ## @SCECdSecS2048
L_.str.1:                               ## @.str.1
	.asciz	"cdfs"

	.comm	_file_driver,40,3               ## @file_driver
	.comm	_IOP_DT_FS,4,2                  ## @IOP_DT_FS
L_.str.2:                               ## @.str.2
	.asciz	"CDVD Filedriver"

	.comm	_filedriver_ops,4,2             ## @filedriver_ops
	.comm	_TH_C,4,2                       ## @TH_C
	.comm	_CDVD_Thread,8,3                ## @CDVD_Thread
	.comm	_MODULE_RESIDENT_END,4,2        ## @MODULE_RESIDENT_END
	.comm	_MODULE_NO_RESIDENT_END,4,2     ## @MODULE_NO_RESIDENT_END
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function _start
lCPI0_0:
	.long	40                              ; 0x28
	.long	32768                           ; 0x8000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	__start
	.p2align	2
__start:                                ; @_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _CachedDirInfo@GOTPAGE
Lloh1:
	ldr	x19, [x19, _CachedDirInfo@GOTPAGEOFF]
	ldr	w0, [x19, #52]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
Lloh4:
	adrp	x8, _FALSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #8]
	stur	q0, [x19, #24]
	str	xzr, [x19, #40]
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _MAX_DIR_CACHE_SECTORS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX_DIR_CACHE_SECTORS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	lsl	w1, w8, #11
	mov	w0, #0
	mov	x2, #0
	bl	_AllocSysMemory
	str	x0, [x19]
LBB0_2:
Lloh10:
	adrp	x8, _cdReadMode@GOTPAGE
Lloh11:
	ldr	x8, [x8, _cdReadMode@GOTPAGEOFF]
Lloh12:
	adrp	x9, _SCECdSpinStm@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SCECdSpinStm@GOTPAGEOFF]
	str	xzr, [x8, #8]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _SCECdSecS2048@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SCECdSecS2048@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
Lloh18:
	adrp	x19, _file_driver@GOTPAGE
Lloh19:
	ldr	x19, [x19, _file_driver@GOTPAGEOFF]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	str	x0, [x19]
Lloh22:
	adrp	x8, _IOP_DT_FS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IOP_DT_FS@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	mov	w8, #1
	str	w8, [x19, #8]
Lloh25:
	adrp	x8, l_.str.2@PAGE
Lloh26:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh27:
	adrp	x9, _filedriver_ops@GOTPAGE
Lloh28:
	ldr	x9, [x9, _filedriver_ops@GOTPAGEOFF]
	stp	x8, x9, [x19, #16]
	bl	_DelDrv
	mov	x0, x19
	bl	_AddDrv
Lloh29:
	adrp	x8, _TH_C@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TH_C@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh32:
	adrp	x8, _CDVD_Thread@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CDVD_Thread@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
Lloh35:
	adrp	x9, lCPI0_0@PAGE
Lloh36:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [sp]
	stp	xzr, x8, [sp, #8]
	mov	x0, sp
	bl	_CreateThread
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.3:
	mov	x1, #0
	bl	_StartThread
Lloh37:
	adrp	x8, _MODULE_RESIDENT_END@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MODULE_RESIDENT_END@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh39:
	adrp	x8, _MODULE_NO_RESIDENT_END@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MODULE_NO_RESIDENT_END@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_CachedDirInfo,56,3             ; @CachedDirInfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_MAX_DIR_CACHE_SECTORS,4,2      ; @MAX_DIR_CACHE_SECTORS
	.comm	_cdReadMode,16,3                ; @cdReadMode
	.comm	_SCECdSpinStm,4,2               ; @SCECdSpinStm
	.comm	_SCECdSecS2048,4,2              ; @SCECdSecS2048
l_.str.1:                               ; @.str.1
	.asciz	"cdfs"

	.comm	_file_driver,40,3               ; @file_driver
	.comm	_IOP_DT_FS,4,2                  ; @IOP_DT_FS
l_.str.2:                               ; @.str.2
	.asciz	"CDVD Filedriver"

	.comm	_filedriver_ops,4,2             ; @filedriver_ops
	.comm	_TH_C,4,2                       ; @TH_C
	.comm	_CDVD_Thread,8,3                ; @CDVD_Thread
	.comm	_MODULE_RESIDENT_END,4,2        ; @MODULE_RESIDENT_END
	.comm	_MODULE_NO_RESIDENT_END,4,2     ; @MODULE_NO_RESIDENT_END
.subsections_via_symbols
