	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ISOCDReadSectorFAD
_ISOCDReadSectorFAD:                    ## @ISOCDReadSectorFAD
	.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
	subq	$304, %rsp                      ## imm = 0x130
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_disc@GOTPCREL(%rip), %r12
	movq	8(%r12), %rdi
	callq	_assert
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$2448, %edx                     ## imm = 0x990
	callq	_memset
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	movq	8(%r12), %rcx
	xorl	%edx, %edx
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rax, %rdx
	je	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rdx, %rdi
	shlq	$4, %rdi
	movl	(%rcx,%rdi), %esi
	testl	%esi, %esi
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rcx,%rdi), %rdi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	addq	$56, %rdi
	decq	%rsi
	je	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rbx, (%rdi)
	jg	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpq	%rbx, 8(%rdi)
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, %r12
	jmp	LBB0_8
LBB0_9:
	testq	%r12, %r12
	je	LBB0_10
## %bb.11:
	movq	32(%r12), %rdi
	movl	(%r12), %eax
	movl	%ebx, %esi
	subl	%eax, %esi
	imull	24(%r12), %esi
	addl	16(%r12), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_fseek
	movq	40(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	subl	(%r12), %ebx
	leal	(%rbx,%rbx,2), %esi
	shll	$5, %esi
	addl	16(%r12), %esi
	movl	(%r14), %edx
	callq	_fseek
LBB0_13:
	movq	24(%r12), %rax
	cmpq	$2048, %rax                     ## imm = 0x800
	je	LBB0_24
## %bb.14:
	cmpq	$2352, %rax                     ## imm = 0x930
	je	LBB0_23
## %bb.15:
	movl	$1, %r14d
	cmpq	$2448, %rax                     ## imm = 0x990
	jne	LBB0_26
## %bb.16:
	cmpl	$0, 48(%r12)
	je	LBB0_17
## %bb.20:
	movq	32(%r12), %rcx
	movq	%r15, %rdi
	movl	$2352, %esi                     ## imm = 0x930
	movl	$1, %edx
	callq	_fread
	movq	32(%r12), %rcx
	leaq	-336(%rbp), %rdi
	movl	$96, %esi
	movl	$1, %edx
	callq	_fread
	movq	32(%r12), %rdi
	movq	_SEEK_CUR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$2352, %esi                     ## imm = 0x930
	callq	_fseek
	leaq	-240(%rbp), %rdi
	movq	32(%r12), %rcx
	movl	$96, %esi
	movl	$1, %edx
	callq	_fread
	movq	32(%r12), %rdi
	movl	(%rbx), %edx
	movl	$2352, %esi                     ## imm = 0x930
	callq	_fseek
	leaq	-144(%rbp), %rdi
	movq	32(%r12), %rcx
	movl	$96, %esi
	movl	$1, %edx
	callq	_fread
	xorl	%eax, %eax
	leaq	l___const.ISOCDReadSectorFAD.deint_offsets(%rip), %rcx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rcx,%rax,4), %rdx
	movzbl	-336(%rbp,%rdx), %edx
	movb	%dl, 2352(%r15,%rax)
	movslq	4(%rcx,%rax,4), %rdx
	movzbl	-336(%rbp,%rdx), %edx
	movb	%dl, 2353(%r15,%rax)
	movslq	8(%rcx,%rax,4), %rdx
	movzbl	-336(%rbp,%rdx), %edx
	movb	%dl, 2354(%r15,%rax)
	addq	$3, %rax
	cmpq	$96, %rax
	jne	LBB0_21
## %bb.22:
	movl	$1, %r14d
	jmp	LBB0_26
LBB0_10:
	leaq	L_.str(%rip), %rdi
	callq	_CDLOG
	jmp	LBB0_26
LBB0_24:
	movq	_syncHdr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$12, %edx
	callq	_memcpy
	addq	$16, %r15
	movq	32(%r12), %rcx
	movl	$1, %r14d
	movq	%r15, %rdi
	movl	$2048, %esi                     ## imm = 0x800
	jmp	LBB0_25
LBB0_23:
	movq	32(%r12), %rcx
	movl	$1, %r14d
	movq	%r15, %rdi
	movl	$2352, %esi                     ## imm = 0x930
LBB0_25:
	movl	$1, %edx
	callq	_fread
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	movl	%r14d, %eax
	addq	$304, %rsp                      ## imm = 0x130
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	cmpq	$0, 40(%r12)
	movq	32(%r12), %rcx
	movl	$1, %r14d
	je	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	movl	$2352, %esi                     ## imm = 0x930
	movl	$1, %edx
	callq	_fread
	addq	$2352, %r15                     ## imm = 0x930
	movq	40(%r12), %rcx
	movq	%r15, %rdi
	movl	$96, %esi
	jmp	LBB0_25
LBB0_19:
	movq	%r15, %rdi
	movl	$2448, %esi                     ## imm = 0x990
	jmp	LBB0_25
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_disc,16,3                      ## @disc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Warning: Sector not found in track list"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.section	__TEXT,__const
	.p2align	4                               ## @__const.ISOCDReadSectorFAD.deint_offsets
l___const.ISOCDReadSectorFAD.deint_offsets:
	.long	0                               ## 0x0
	.long	66                              ## 0x42
	.long	125                             ## 0x7d
	.long	191                             ## 0xbf
	.long	100                             ## 0x64
	.long	50                              ## 0x32
	.long	150                             ## 0x96
	.long	175                             ## 0xaf
	.long	8                               ## 0x8
	.long	33                              ## 0x21
	.long	58                              ## 0x3a
	.long	83                              ## 0x53
	.long	108                             ## 0x6c
	.long	133                             ## 0x85
	.long	158                             ## 0x9e
	.long	183                             ## 0xb7
	.long	16                              ## 0x10
	.long	41                              ## 0x29
	.long	25                              ## 0x19
	.long	91                              ## 0x5b
	.long	116                             ## 0x74
	.long	141                             ## 0x8d
	.long	166                             ## 0xa6
	.long	75                              ## 0x4b
	.long	24                              ## 0x18
	.long	90                              ## 0x5a
	.long	149                             ## 0x95
	.long	215                             ## 0xd7
	.long	124                             ## 0x7c
	.long	74                              ## 0x4a
	.long	174                             ## 0xae
	.long	199                             ## 0xc7
	.long	32                              ## 0x20
	.long	57                              ## 0x39
	.long	82                              ## 0x52
	.long	107                             ## 0x6b
	.long	132                             ## 0x84
	.long	157                             ## 0x9d
	.long	182                             ## 0xb6
	.long	207                             ## 0xcf
	.long	40                              ## 0x28
	.long	65                              ## 0x41
	.long	49                              ## 0x31
	.long	115                             ## 0x73
	.long	140                             ## 0x8c
	.long	165                             ## 0xa5
	.long	190                             ## 0xbe
	.long	99                              ## 0x63
	.long	48                              ## 0x30
	.long	114                             ## 0x72
	.long	173                             ## 0xad
	.long	239                             ## 0xef
	.long	148                             ## 0x94
	.long	98                              ## 0x62
	.long	198                             ## 0xc6
	.long	223                             ## 0xdf
	.long	56                              ## 0x38
	.long	81                              ## 0x51
	.long	106                             ## 0x6a
	.long	131                             ## 0x83
	.long	156                             ## 0x9c
	.long	181                             ## 0xb5
	.long	206                             ## 0xce
	.long	231                             ## 0xe7
	.long	64                              ## 0x40
	.long	89                              ## 0x59
	.long	73                              ## 0x49
	.long	139                             ## 0x8b
	.long	164                             ## 0xa4
	.long	189                             ## 0xbd
	.long	214                             ## 0xd6
	.long	123                             ## 0x7b
	.long	72                              ## 0x48
	.long	138                             ## 0x8a
	.long	197                             ## 0xc5
	.long	263                             ## 0x107
	.long	172                             ## 0xac
	.long	122                             ## 0x7a
	.long	222                             ## 0xde
	.long	247                             ## 0xf7
	.long	80                              ## 0x50
	.long	105                             ## 0x69
	.long	130                             ## 0x82
	.long	155                             ## 0x9b
	.long	180                             ## 0xb4
	.long	205                             ## 0xcd
	.long	230                             ## 0xe6
	.long	255                             ## 0xff
	.long	88                              ## 0x58
	.long	113                             ## 0x71
	.long	97                              ## 0x61
	.long	163                             ## 0xa3
	.long	188                             ## 0xbc
	.long	213                             ## 0xd5
	.long	238                             ## 0xee
	.long	147                             ## 0x93

	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_syncHdr,4,2                    ## @syncHdr
	.no_dead_strip	_ISOCDReadSectorFAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ISOCDReadSectorFAD
_ISOCDReadSectorFAD:                    ; @ISOCDReadSectorFAD
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x28, x27, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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 w27, -56
	.cfi_offset w28, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x22, _disc@GOTPAGE
Lloh4:
	ldr	x22, [x22, _disc@GOTPAGEOFF]
	ldr	x0, [x22, #8]
	bl	_assert
	mov	x0, x19
	mov	w1, #0
	mov	w2, #2448
	bl	_memset
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x9, #0
	mov	x21, #0
	ldr	x10, [x22, #8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	lsl	x11, x9, #4
	ldr	w11, [x10, x11]
	cmp	w11, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x12, x10, x9, lsl #4
	ldr	x12, [x12, #8]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x12, x12, #56
	subs	x11, x11, #1
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x12]
	cmp	x13, x20
	b.gt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x13, [x12, #8]
	cmp	x13, x20
	b.lt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x12
	b	LBB0_2
LBB0_9:
	cbz	x21, LBB0_19
; %bb.10:
	ldr	x0, [x21, #32]
	ldr	w8, [x21, #16]
	ldr	w9, [x21]
	sub	w9, w20, w9
	ldr	w10, [x21, #24]
	madd	w1, w9, w10, w8
Lloh5:
	adrp	x22, _SEEK_SET@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_fseek
	ldr	x0, [x21, #40]
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w8, [x21, #16]
	ldr	w9, [x21]
	sub	w9, w20, w9
	mov	w10, #96
	madd	w1, w9, w10, w8
	ldr	w2, [x22]
	bl	_fseek
LBB0_12:
	ldr	x8, [x21, #24]
	cmp	x8, #2048
	b.eq	LBB0_20
; %bb.13:
	cmp	x8, #2352
	b.eq	LBB0_21
; %bb.14:
	cmp	x8, #2448
	b.ne	LBB0_18
; %bb.15:
	ldr	w8, [x21, #48]
	cbz	w8, LBB0_25
; %bb.16:
	ldr	x3, [x21, #32]
	mov	x0, x19
	mov	w1, #2352
	mov	w2, #1
	bl	_fread
	ldr	x3, [x21, #32]
	add	x20, sp, #8
	add	x0, sp, #8
	mov	w1, #96
	mov	w2, #1
	bl	_fread
	ldr	x0, [x21, #32]
Lloh7:
	adrp	x22, _SEEK_CUR@GOTPAGE
Lloh8:
	ldr	x22, [x22, _SEEK_CUR@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #2352
	bl	_fseek
	add	x0, x20, #96
	ldr	x3, [x21, #32]
	mov	w1, #96
	mov	w2, #1
	bl	_fread
	ldr	x0, [x21, #32]
	ldr	w2, [x22]
	mov	w1, #2352
	bl	_fseek
	add	x0, x20, #192
	ldr	x3, [x21, #32]
	mov	w1, #96
	mov	w2, #1
	bl	_fread
	mov	x8, #0
	add	x9, x19, #2352
Lloh9:
	adrp	x10, l___const.ISOCDReadSectorFAD.deint_offsets@PAGE
Lloh10:
	add	x10, x10, l___const.ISOCDReadSectorFAD.deint_offsets@PAGEOFF
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x11, [x10, x8, lsl #2]
	ldrb	w11, [x20, x11]
	strb	w11, [x9, x8]
	add	x8, x8, #1
	cmp	x8, #96
	b.ne	LBB0_17
LBB0_18:
	mov	w20, #1
	b	LBB0_23
LBB0_19:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CDLOG
	mov	w20, #0
	b	LBB0_23
LBB0_20:
Lloh13:
	adrp	x8, _syncHdr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _syncHdr@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #12
	bl	_memcpy
	add	x0, x19, #16
	ldr	x3, [x21, #32]
	mov	w20, #1
	mov	w1, #2048
	b	LBB0_22
LBB0_21:
	ldr	x3, [x21, #32]
	mov	w20, #1
	mov	x0, x19
	mov	w1, #2352
LBB0_22:
	mov	w2, #1
	bl	_fread
LBB0_23:
	ldur	x8, [x29, #-56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.24:
	mov	x0, x20
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_25:
	ldp	x3, x8, [x21, #32]
	mov	w20, #1
	cbz	x8, LBB0_27
; %bb.26:
	mov	x0, x19
	mov	w1, #2352
	mov	w2, #1
	bl	_fread
	add	x0, x19, #2352
	ldr	x3, [x21, #40]
	mov	w1, #96
	b	LBB0_22
LBB0_27:
	mov	x0, x19
	mov	w1, #2448
	b	LBB0_22
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_disc,16,3                      ; @disc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Warning: Sector not found in track list"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.section	__TEXT,__const
	.p2align	2                               ; @__const.ISOCDReadSectorFAD.deint_offsets
l___const.ISOCDReadSectorFAD.deint_offsets:
	.long	0                               ; 0x0
	.long	66                              ; 0x42
	.long	125                             ; 0x7d
	.long	191                             ; 0xbf
	.long	100                             ; 0x64
	.long	50                              ; 0x32
	.long	150                             ; 0x96
	.long	175                             ; 0xaf
	.long	8                               ; 0x8
	.long	33                              ; 0x21
	.long	58                              ; 0x3a
	.long	83                              ; 0x53
	.long	108                             ; 0x6c
	.long	133                             ; 0x85
	.long	158                             ; 0x9e
	.long	183                             ; 0xb7
	.long	16                              ; 0x10
	.long	41                              ; 0x29
	.long	25                              ; 0x19
	.long	91                              ; 0x5b
	.long	116                             ; 0x74
	.long	141                             ; 0x8d
	.long	166                             ; 0xa6
	.long	75                              ; 0x4b
	.long	24                              ; 0x18
	.long	90                              ; 0x5a
	.long	149                             ; 0x95
	.long	215                             ; 0xd7
	.long	124                             ; 0x7c
	.long	74                              ; 0x4a
	.long	174                             ; 0xae
	.long	199                             ; 0xc7
	.long	32                              ; 0x20
	.long	57                              ; 0x39
	.long	82                              ; 0x52
	.long	107                             ; 0x6b
	.long	132                             ; 0x84
	.long	157                             ; 0x9d
	.long	182                             ; 0xb6
	.long	207                             ; 0xcf
	.long	40                              ; 0x28
	.long	65                              ; 0x41
	.long	49                              ; 0x31
	.long	115                             ; 0x73
	.long	140                             ; 0x8c
	.long	165                             ; 0xa5
	.long	190                             ; 0xbe
	.long	99                              ; 0x63
	.long	48                              ; 0x30
	.long	114                             ; 0x72
	.long	173                             ; 0xad
	.long	239                             ; 0xef
	.long	148                             ; 0x94
	.long	98                              ; 0x62
	.long	198                             ; 0xc6
	.long	223                             ; 0xdf
	.long	56                              ; 0x38
	.long	81                              ; 0x51
	.long	106                             ; 0x6a
	.long	131                             ; 0x83
	.long	156                             ; 0x9c
	.long	181                             ; 0xb5
	.long	206                             ; 0xce
	.long	231                             ; 0xe7
	.long	64                              ; 0x40
	.long	89                              ; 0x59
	.long	73                              ; 0x49
	.long	139                             ; 0x8b
	.long	164                             ; 0xa4
	.long	189                             ; 0xbd
	.long	214                             ; 0xd6
	.long	123                             ; 0x7b
	.long	72                              ; 0x48
	.long	138                             ; 0x8a
	.long	197                             ; 0xc5
	.long	263                             ; 0x107
	.long	172                             ; 0xac
	.long	122                             ; 0x7a
	.long	222                             ; 0xde
	.long	247                             ; 0xf7
	.long	80                              ; 0x50
	.long	105                             ; 0x69
	.long	130                             ; 0x82
	.long	155                             ; 0x9b
	.long	180                             ; 0xb4
	.long	205                             ; 0xcd
	.long	230                             ; 0xe6
	.long	255                             ; 0xff
	.long	88                              ; 0x58
	.long	113                             ; 0x71
	.long	97                              ; 0x61
	.long	163                             ; 0xa3
	.long	188                             ; 0xbc
	.long	213                             ; 0xd5
	.long	238                             ; 0xee
	.long	147                             ; 0x93

	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_syncHdr,4,2                    ; @syncHdr
	.no_dead_strip	_ISOCDReadSectorFAD
.subsections_via_symbols
