	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReadSect                       ## -- Begin function ReadSect
	.p2align	4, 0x90
_ReadSect:                              ## @ReadSect
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %ebx
	movq	_cdReadMode@GOTPCREL(%rip), %rax
	movabsq	$4294967328, %rcx               ## imm = 0x100000020
	movq	%rcx, (%rax)
	xorl	%eax, %eax
	callq	_isValidDisc
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	xorl	%edi, %edi
	callq	_sceCdDiskReady
	movl	%ebx, %edi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_sceCdRead
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_2
## %bb.7:
	xorl	%edi, %edi
	callq	_sceCdSync
LBB0_8:
	movq	_cdReadMode@GOTPCREL(%rip), %rax
	movabsq	$4294967328, %rcx               ## imm = 0x100000020
	movq	%rcx, (%rax)
LBB0_9:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_2:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$31, %r13d
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_sceCdGetError
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	cmpl	$8, %r13d
	setb	%al
	movq	_cdReadMode@GOTPCREL(%rip), %rcx
	movl	%eax, 4(%rcx)
	xorl	%eax, %eax
	callq	_isValidDisc
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%r13d
	xorl	%edi, %edi
	callq	_sceCdDiskReady
	movl	%ebx, %edi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_sceCdRead
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.10:
	xorl	%edi, %edi
	callq	_sceCdSync
	movq	_cdReadMode@GOTPCREL(%rip), %rax
	movabsq	$4294967328, %rcx               ## imm = 0x100000020
	movq	%rcx, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_11:
	shll	$11, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
LBB0_12:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cdReadMode,8,2                 ## @cdReadMode
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,8,3                       ## @TRUE
.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 ReadSect
lCPI0_0:
	.long	32                              ; 0x20
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ReadSect
	.p2align	2
_ReadSect:                              ; @ReadSect
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
Lloh2:
	adrp	x24, _cdReadMode@GOTPAGE
Lloh3:
	ldr	x24, [x24, _cdReadMode@GOTPAGEOFF]
	str	d8, [x24]
	bl	_isValidDisc
	cbz	w0, LBB0_12
; %bb.1:
	mov	w0, #0
	bl	_sceCdDiskReady
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	mov	x3, x21
	bl	_sceCdRead
Lloh4:
	adrp	x25, _TRUE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
	ldr	x26, [x25]
	cmp	x0, x26
	b.ne	LBB0_5
; %bb.2:
	mov	w0, #0
	bl	_sceCdSync
LBB0_3:
	str	d8, [x24]
LBB0_4:
	ldr	w0, [x25]
	b	LBB0_13
LBB0_5:
	mov	x23, x0
	mov	w27, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w27, #31
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_sceCdGetError
	cbz	w0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w27, #8
	cset	w8, lo
	str	w8, [x24, #4]
	bl	_isValidDisc
	cbz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w27, w27, #1
	mov	w0, #0
	bl	_sceCdDiskReady
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	mov	x3, x21
	bl	_sceCdRead
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.10:
	mov	w0, #0
	bl	_sceCdSync
	str	d8, [x24]
	cmp	x23, x26
	b.eq	LBB0_4
LBB0_11:
	lsl	w2, w20, #11
	mov	x0, x19
	mov	w1, #0
	bl	_memset
LBB0_12:
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_cdReadMode,8,2                 ; @cdReadMode
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,8,3                       ; @TRUE
.subsections_via_symbols
