	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cd9660_readdir
_cd9660_readdir:                        ## @cd9660_readdir
	.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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r14
	movl	(%r14), %eax
	cmpl	4(%r14), %eax
	jge	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	leaq	-64(%rbp), %r12
	leaq	-72(%rbp), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_buf_read_file
	testl	%eax, %eax
	jne	LBB0_22
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rbx
	movl	8(%rbx), %edi
	callq	_isonum_711
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %eax
	movq	_ISO_DEFAULT_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cltd
	idivl	%ecx
	incl	%eax
	imull	%ecx, %eax
	movl	%eax, (%r14)
	cmpl	4(%r14), %eax
	jl	LBB0_2
LBB0_5:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_22
LBB0_6:
	movl	8(%r14), %eax
	movq	_F_RR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_13
## %bb.7:
	movq	_F_ROOTDIR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.8:
	cmpl	$0, (%r14)
	je	LBB0_9
LBB0_10:
	movl	12(%r14), %edx
	jmp	LBB0_11
LBB0_9:
	xorl	%edx, %edx
LBB0_11:
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_rrip_lookup_name
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rax, %r15
	movq	-48(%rbp), %rax
	jmp	LBB0_18
LBB0_13:
	movl	20(%rbx), %edi
	callq	_isonum_711
	cltq
	movq	%rax, -48(%rbp)
	movq	(%rbx), %r15
	cmpl	$1, %eax
	jne	LBB0_18
## %bb.14:
	movb	(%r15), %cl
	movl	$1, %eax
	testb	%cl, %cl
	je	LBB0_15
## %bb.16:
	cmpb	$1, %cl
	jne	LBB0_18
## %bb.17:
	movq	$2, -48(%rbp)
	leaq	L_.str.1(%rip), %r15
	movl	$2, %eax
	jmp	LBB0_18
LBB0_15:
	leaq	L_.str(%rip), %r15
LBB0_18:
	movq	_MAXNAMLEN@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	notq	%rcx
	leaq	(%rax,%rcx), %r12
	addq	$36, %r12
	andq	$-4, %r12
	movl	16(%rbx), %edi
	callq	_isonum_733
	movl	%eax, 28(%r13)
	movq	%r12, (%r13)
	movl	12(%rbx), %edi
	callq	_isonum_711
	testb	$2, %al
	jne	LBB0_19
## %bb.20:
	movq	_DT_REG@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_19:
	movq	_DT_DIR@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movq	-48(%rbp), %rdx
	movq	%rdx, 8(%r13)
	movq	16(%r13), %rdi
	movq	%r15, %rsi
	callq	_memmove
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	movq	$0, (%rcx,%rax,8)
	movl	8(%rbx), %edi
	callq	_isonum_711
	addl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ISO_DEFAULT_BLOCK_SIZE,4,2     ## @ISO_DEFAULT_BLOCK_SIZE
	.comm	_F_RR,4,2                       ## @F_RR
	.comm	_F_ROOTDIR,4,2                  ## @F_ROOTDIR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

L_.str.1:                               ## @.str.1
	.asciz	".."

	.comm	_MAXNAMLEN,4,2                  ## @MAXNAMLEN
	.comm	_DT_DIR,4,2                     ## @DT_DIR
	.comm	_DT_REG,4,2                     ## @DT_REG
	.no_dead_strip	_cd9660_readdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cd9660_readdir
_cd9660_readdir:                        ; @cd9660_readdir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x22, [x0]
	ldp	w8, w9, [x22]
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _ISO_DEFAULT_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ISO_DEFAULT_BLOCK_SIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	add	x2, sp, #24
	mov	x0, x21
	bl	_buf_read_file
	cbnz	w0, LBB0_20
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x20, [sp, #8]
	ldr	w0, [x20, #8]
	bl	_isonum_711
	cbnz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	ldp	w9, w10, [x22]
	sdiv	w9, w9, w8
	madd	w8, w8, w9, w8
	str	w8, [x22]
	cmp	w8, w10
	b.lt	LBB0_2
LBB0_5:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_20
LBB0_6:
	ldr	w8, [x22, #8]
Lloh5:
	adrp	x9, _F_RR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _F_RR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.7:
Lloh8:
	adrp	x9, _F_ROOTDIR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _F_ROOTDIR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x22]
	cbz	w8, LBB0_10
LBB0_9:
	ldr	w2, [x22, #12]
	b	LBB0_11
LBB0_10:
	mov	w2, #0
LBB0_11:
	add	x3, sp, #16
	mov	x0, x21
	mov	x1, x20
	bl	_rrip_lookup_name
	cbz	x0, LBB0_13
; %bb.12:
	mov	x21, x0
	ldr	x8, [sp, #16]
	b	LBB0_19
LBB0_13:
	ldr	w0, [x20, #20]
	bl	_isonum_711
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [sp, #16]
	ldr	x21, [x20]
	cmp	w0, #1
	b.ne	LBB0_19
; %bb.14:
	ldrb	w8, [x21]
	cbz	w8, LBB0_17
; %bb.15:
	cmp	w8, #1
	b.ne	LBB0_18
; %bb.16:
	mov	w8, #2
	str	x8, [sp, #16]
Lloh11:
	adrp	x21, l_.str.1@PAGE
Lloh12:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_17:
Lloh13:
	adrp	x21, l_.str@PAGE
Lloh14:
	add	x21, x21, l_.str@PAGEOFF
LBB0_18:
	mov	w8, #1
LBB0_19:
Lloh15:
	adrp	x9, _MAXNAMLEN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MAXNAMLEN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	mvn	w9, w9
	add	x8, x8, w9, sxtw
	add	x8, x8, #36
	and	x23, x8, #0xfffffffffffffffc
	ldr	w0, [x20, #16]
	bl	_isonum_733
	str	w0, [x19, #28]
	str	x23, [x19]
	ldr	w0, [x20, #12]
	bl	_isonum_711
Lloh18:
	adrp	x8, _DT_REG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DT_REG@GOTPAGEOFF]
Lloh20:
	adrp	x9, _DT_DIR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DT_DIR@GOTPAGEOFF]
	tst	w0, #0x2
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	x2, [sp, #16]
	str	x2, [x19, #8]
	ldr	x0, [x19, #16]
	mov	x1, x21
	bl	_memmove
	ldp	x9, x8, [x19, #8]
	str	xzr, [x8, x9, lsl #3]
	ldr	w0, [x20, #8]
	bl	_isonum_711
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x22]
	add	w8, w9, w8
	str	w8, [x22]
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ISO_DEFAULT_BLOCK_SIZE,4,2     ; @ISO_DEFAULT_BLOCK_SIZE
	.comm	_F_RR,4,2                       ; @F_RR
	.comm	_F_ROOTDIR,4,2                  ; @F_ROOTDIR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

l_.str.1:                               ; @.str.1
	.asciz	".."

	.comm	_MAXNAMLEN,4,2                  ; @MAXNAMLEN
	.comm	_DT_DIR,4,2                     ; @DT_DIR
	.comm	_DT_REG,4,2                     ; @DT_REG
	.no_dead_strip	_cd9660_readdir
.subsections_via_symbols
