	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IsoBufferDirectory
_IsoBufferDirectory:                    ## @IsoBufferDirectory
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r14d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_SECTORSIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_ROUND_UP
	cltd
	idivl	(%r15)
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_TAG_ISO_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_FrLdrTempAlloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r13
	imull	(%r15), %r14d
	movq	$0, -64(%rbp)
	movl	%r14d, -72(%rbp)
	movq	_SeekAbsolute@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_ArcSeek
	movq	_ESUCCESS@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_6
## %bb.2:
	movl	(%r15), %edx
	imull	%r12d, %edx
	leaq	-48(%rbp), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	callq	_ArcRead
	cmpq	(%r14), %rax
	jne	LBB0_7
## %bb.3:
	imull	(%r15), %r12d
	cmpl	%r12d, -48(%rbp)
	jne	LBB0_7
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	movq	(%r14), %rbx
	jmp	LBB0_9
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	%rax, %rbx
	movq	_TAG_ISO_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_FrLdrTempFree
	jmp	LBB0_9
LBB0_7:
	movq	_TAG_ISO_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_FrLdrTempFree
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rbx
LBB0_9:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IsoBufferDirectory() DirectoryStartSector = %d DirectoryLength = %d\n"

	.comm	_SECTORSIZE,4,2                 ## @SECTORSIZE
L_.str.1:                               ## @.str.1
	.asciz	"Trying to read (DirectoryCount) %d sectors.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Trying to allocate (DirectoryLength) %d bytes.\n"

	.comm	_TAG_ISO_BUFFER,4,2             ## @TAG_ISO_BUFFER
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_SeekAbsolute,4,2               ## @SeekAbsolute
	.comm	_ESUCCESS,8,3                   ## @ESUCCESS
	.comm	_EIO,8,3                        ## @EIO
	.no_dead_strip	_IsoBufferDirectory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IsoBufferDirectory
_IsoBufferDirectory:                    ; @IsoBufferDirectory
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	str	x22, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh2:
	adrp	x24, _SECTORSIZE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SECTORSIZE@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x22
	bl	_ROUND_UP
	ldr	w8, [x24]
	sdiv	w21, w0, w8
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_TRACE
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	bl	_TRACE
Lloh8:
	adrp	x25, _TAG_ISO_BUFFER@GOTPAGE
Lloh9:
	ldr	x25, [x25, _TAG_ISO_BUFFER@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x22
	bl	_FrLdrTempAlloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	str	xzr, [sp, #24]
	ldr	w8, [x24]
	mul	w8, w8, w23
	str	w8, [sp, #16]
Lloh10:
	adrp	x8, _SeekAbsolute@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SeekAbsolute@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	add	x1, sp, #16
	mov	x0, x20
	bl	_ArcSeek
Lloh13:
	adrp	x26, _ESUCCESS@GOTPAGE
Lloh14:
	ldr	x26, [x26, _ESUCCESS@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x24]
	mul	w2, w8, w21
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x22
	bl	_ArcRead
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	mul	w9, w9, w21
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.4:
	str	x22, [x19]
	ldr	x23, [x26]
	b	LBB0_9
LBB0_5:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x23, x0
	ldr	w1, [x25]
	mov	x0, x22
	bl	_FrLdrTempFree
	b	LBB0_9
LBB0_7:
	ldr	w1, [x25]
	mov	x0, x22
	bl	_FrLdrTempFree
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_8:
	ldr	x23, [x8]
LBB0_9:
	mov	x0, x23
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IsoBufferDirectory() DirectoryStartSector = %d DirectoryLength = %d\n"

	.comm	_SECTORSIZE,4,2                 ; @SECTORSIZE
l_.str.1:                               ; @.str.1
	.asciz	"Trying to read (DirectoryCount) %d sectors.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Trying to allocate (DirectoryLength) %d bytes.\n"

	.comm	_TAG_ISO_BUFFER,4,2             ; @TAG_ISO_BUFFER
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_SeekAbsolute,4,2               ; @SeekAbsolute
	.comm	_ESUCCESS,8,3                   ; @ESUCCESS
	.comm	_EIO,8,3                        ; @EIO
	.no_dead_strip	_IsoBufferDirectory
.subsections_via_symbols
