	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LoadISO
_LoadISO:                               ## @LoadISO
	.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, %r12
	movq	_disc@GOTPCREL(%rip), %r15
	movl	$1, (%r15)
	movl	$4, %edi
	callq	_malloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movabsq	$4294967446, %rcx               ## imm = 0x100000096
	movq	%rcx, (%rax)
	movl	$48, %edi
	callq	_malloc
	movq	8(%r15), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	4(%rcx), %ecx
	shll	$4, %ecx
	leal	(%rcx,%rcx,2), %edx
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	8(%r15), %rax
	movq	16(%rax), %rbx
	movabsq	$644245094465, %rax             ## imm = 0x9600000041
	movq	%rax, (%rbx)
	movq	$0, 40(%rbx)
	movq	%r12, 32(%rbx)
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	%r12, %rdi
	callq	_ftell
	movl	%eax, 8(%rbx)
	movq	$0, 24(%rbx)
	testl	$2047, %eax                     ## imm = 0x7FF
	je	LBB0_6
## %bb.7:
	imull	$146087323, %eax, %ecx          ## imm = 0x8B51D9B
	addl	$14608720, %ecx                 ## imm = 0xDEE950
	rorl	$4, %ecx
	cmpl	$1826091, %ecx                  ## imm = 0x1BDD2B
	jb	LBB0_8
## %bb.11:
	movq	_YAB_ERR_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	movq	_YAB_ERR_MEMORYALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
LBB0_2:
	callq	_YabSetError
	movl	$-1, %r14d
	jmp	LBB0_10
LBB0_4:
	movq	_YAB_ERR_MEMORYALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_YabSetError
	movq	8(%r15), %rdi
	callq	_free
	movq	$0, 8(%r15)
	movl	$-1, %r14d
	jmp	LBB0_10
LBB0_6:
	movl	$2048, %ecx                     ## imm = 0x800
	jmp	LBB0_9
LBB0_8:
	movl	$2352, %ecx                     ## imm = 0x930
LBB0_9:
	movl	%ecx, 12(%rbx)
	movq	8(%r15), %rsi
	cltd
	idivl	%ecx
	addl	(%rsi), %eax
	movl	%eax, 16(%rbx)
	movl	%eax, 8(%rsi)
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_disc,16,3                      ## @disc
	.comm	_YAB_ERR_MEMORYALLOC,4,2        ## @YAB_ERR_MEMORYALLOC
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_YAB_ERR_OTHER,4,2              ## @YAB_ERR_OTHER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported CD image!\n"

	.no_dead_strip	_LoadISO
.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 LoadISO
lCPI0_0:
	.long	150                             ; 0x96
	.long	1                               ; 0x1
lCPI0_1:
	.long	65                              ; 0x41
	.long	150                             ; 0x96
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_LoadISO:                               ; @LoadISO
	.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
Lloh0:
	adrp	x20, _disc@GOTPAGE
Lloh1:
	ldr	x20, [x20, _disc@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x20]
	mov	w0, #4
	bl	_malloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0]
	mov	w0, #48
	bl	_malloc
	ldr	x8, [x20, #8]
	str	x0, [x8, #16]
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w8, [x8, #4]
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #4
	mov	w1, #0
	bl	_memset
	ldr	x8, [x20, #8]
	ldr	x21, [x8, #16]
Lloh4:
	adrp	x8, lCPI0_1@PAGE
Lloh5:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x21]
	stp	x19, xzr, [x21, #32]
Lloh6:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_fseek
	mov	x0, x19
	bl	_ftell
	str	w0, [x21, #8]
	str	xzr, [x21, #24]
	tst	w0, #0x7ff
	b.eq	LBB0_8
; %bb.3:
	mov	w8, #7579
	movk	w8, #2229, lsl #16
	mov	w9, #59728
	movk	w9, #222, lsl #16
	madd	w8, w0, w8, w9
	ror	w8, w8, #4
	mov	w9, #56619
	movk	w9, #27, lsl #16
	cmp	w8, w9
	b.lo	LBB0_9
; %bb.4:
Lloh9:
	adrp	x8, _YAB_ERR_OTHER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _YAB_ERR_OTHER@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _YAB_ERR_MEMORYALLOC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _YAB_ERR_MEMORYALLOC@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, #0
LBB0_6:
	bl	_YabSetError
	mov	w8, #-1
	b	LBB0_11
LBB0_7:
Lloh17:
	adrp	x8, _YAB_ERR_MEMORYALLOC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _YAB_ERR_MEMORYALLOC@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_YabSetError
	ldr	x0, [x20, #8]
	bl	_free
	str	xzr, [x20, #8]
	mov	w8, #-1
	b	LBB0_11
LBB0_8:
	mov	w9, #2048
	b	LBB0_10
LBB0_9:
	mov	w9, #2352
LBB0_10:
	mov	w8, #0
	ldr	x10, [x20, #8]
	ldr	w11, [x10]
	sdiv	w12, w0, w9
	add	w11, w12, w11
	stp	w9, w11, [x21, #12]
	str	w11, [x10, #8]
LBB0_11:
	mov	x0, x8
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdrp	Lloh4, Lloh6
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_disc,16,3                      ; @disc
	.comm	_YAB_ERR_MEMORYALLOC,4,2        ; @YAB_ERR_MEMORYALLOC
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_YAB_ERR_OTHER,4,2              ; @YAB_ERR_OTHER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported CD image!\n"

	.no_dead_strip	_LoadISO
.subsections_via_symbols
