	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ptable_iso9660read
_ptable_iso9660read:                    ## @ptable_iso9660read
	.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	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	movl	$16, %edi
	callq	_cdb2devb
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	movl	%eax, %ecx
	callq	*%r12
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_DPRINTF
	movq	%r15, %rdi
	callq	_ptable_close
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_3:
	movl	(%r14), %edi
	movq	_ISO_STANDARD_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_bcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	$0, 16(%rax)
	movl	12(%r15), %ecx
	movl	%ecx, 12(%rax)
	movq	_PART_ISO9660@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	$0, (%rax)
	leaq	8(%r15), %rdi
	movq	%rax, %rsi
	movq	%rax, %rdx
	callq	_STAILQ_INSERT_TAIL
	movq	_PTABLE_ISO9660@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
LBB0_6:
	movq	%r14, %rdi
	callq	_free
LBB0_7:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read failed"

	.comm	_ISO_STANDARD_ID,4,2            ## @ISO_STANDARD_ID
	.comm	_PART_ISO9660,4,2               ## @PART_ISO9660
	.comm	_PTABLE_ISO9660,4,2             ## @PTABLE_ISO9660
	.no_dead_strip	_ptable_iso9660read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ptable_iso9660read
_ptable_iso9660read:                    ; @ptable_iso9660read
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_malloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	mov	w0, #16
	bl	_cdb2devb
	mov	x3, x0
	mov	x0, x22
	mov	x1, x20
	mov	w2, #1
	blr	x21
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTF
	mov	x0, x19
	bl	_ptable_close
	mov	x19, #0
	b	LBB0_6
LBB0_3:
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _ISO_STANDARD_ID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISO_STANDARD_ID@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_bcmp
	cbnz	x0, LBB0_6
; %bb.4:
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.5:
	mov	x1, x0
	str	xzr, [x0, #16]
Lloh5:
	adrp	x8, _PART_ISO9660@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PART_ISO9660@GOTPAGEOFF]
	ldr	w9, [x19, #12]
Lloh7:
	ldr	w8, [x8]
	stp	w8, w9, [x0, #8]
	str	xzr, [x0]
	add	x0, x19, #8
	mov	x2, x1
	bl	_STAILQ_INSERT_TAIL
Lloh8:
	adrp	x8, _PTABLE_ISO9660@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PTABLE_ISO9660@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_6:
	mov	x0, x20
	bl	_free
LBB0_7:
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read failed"

	.comm	_ISO_STANDARD_ID,4,2            ; @ISO_STANDARD_ID
	.comm	_PART_ISO9660,4,2               ; @PART_ISO9660
	.comm	_PTABLE_ISO9660,4,2             ; @PTABLE_ISO9660
	.no_dead_strip	_ptable_iso9660read
.subsections_via_symbols
