	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cd9660_setup_volume_descriptors
_cd9660_setup_volume_descriptors:       ## @cd9660_setup_volume_descriptors
	.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, %r15
	movl	$24, %edi
	callq	_emalloc
	movq	%rax, %rbx
	leaq	24(%r15), %rax
	movq	%rax, (%rbx)
	movq	_ISO_VOLUME_DESCRIPTOR_PVD@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, 24(%r15)
	movq	(%rbx), %rax
	movb	$1, 6(%rax)
	movl	$16, 8(%rbx)
	movq	(%rbx), %rdi
	incq	%rdi
	movq	_ISO_VOLUME_DESCRIPTOR_STANDARD_ID@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$5, %edx
	callq	_memcpy
	movq	%rbx, 16(%r15)
	cmpq	$0, 8(%r15)
	je	LBB0_1
## %bb.2:
	movl	$24, %edi
	callq	_emalloc
	movq	%rax, %r14
	movl	$1, %edi
	movl	$2048, %esi                     ## imm = 0x800
	callq	_ecalloc
	movq	%rax, (%r14)
	movq	%r14, 16(%rbx)
	movl	$17, 8(%r14)
	cmpq	$0, (%r15)
	jle	LBB0_4
## %bb.3:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_cd9660_setup_boot_volume_descriptor
	movl	$18, %r15d
	jmp	LBB0_5
LBB0_1:
	movl	$17, %r15d
	movq	%rbx, %r14
LBB0_5:
	movl	$24, %edi
	callq	_emalloc
	movq	%rax, %rbx
	movl	$1, %edi
	movl	$2048, %esi                     ## imm = 0x800
	callq	_ecalloc
	movq	%rax, (%rbx)
	movq	%rbx, 16(%r14)
	movq	_ISO_VOLUME_DESCRIPTOR_TERMINATOR@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movb	%cl, (%rax)
	movq	$0, 16(%rbx)
	movq	(%rbx), %rax
	movb	$1, 6(%rax)
	movl	%r15d, 8(%rbx)
	movq	(%rbx), %rdi
	incq	%rdi
	movl	(%r12), %esi
	movl	$5, %edx
	callq	_memcpy
	incl	%r15d
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISO_VOLUME_DESCRIPTOR_PVD,1,0  ## @ISO_VOLUME_DESCRIPTOR_PVD
	.comm	_ISO_VOLUME_DESCRIPTOR_STANDARD_ID,4,2 ## @ISO_VOLUME_DESCRIPTOR_STANDARD_ID
	.comm	_ISO_VOLUME_DESCRIPTOR_TERMINATOR,4,2 ## @ISO_VOLUME_DESCRIPTOR_TERMINATOR
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"Setting up boot volume descriptor"

	.no_dead_strip	_cd9660_setup_volume_descriptors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cd9660_setup_volume_descriptors
_cd9660_setup_volume_descriptors:       ; @cd9660_setup_volume_descriptors
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	w0, #24
	bl	_emalloc
	mov	x21, x0
	add	x8, x19, #24
	str	x8, [x0]
Lloh0:
	adrp	x8, _ISO_VOLUME_DESCRIPTOR_PVD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISO_VOLUME_DESCRIPTOR_PVD@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x19, #24]
	ldr	x8, [x0]
	mov	w22, #1
	strb	w22, [x8, #6]
	mov	w8, #16
	str	w8, [x0, #8]
	ldr	x8, [x0]
	add	x0, x8, #1
Lloh2:
	adrp	x23, _ISO_VOLUME_DESCRIPTOR_STANDARD_ID@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ISO_VOLUME_DESCRIPTOR_STANDARD_ID@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #5
	bl	_memcpy
	str	x21, [x19, #16]
	ldr	x8, [x19, #8]
	mov	w24, #17
	cbz	x8, LBB0_4
; %bb.1:
	mov	w0, #24
	bl	_emalloc
	mov	x20, x0
	mov	w0, #1
	mov	w1, #2048
	bl	_ecalloc
	str	x0, [x20]
	str	x20, [x21, #16]
	str	w24, [x20, #8]
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.2:
Lloh4:
	adrp	x0, l_str@PAGE
Lloh5:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_cd9660_setup_boot_volume_descriptor
	mov	w24, #18
	b	LBB0_5
LBB0_4:
	mov	x20, x21
LBB0_5:
	mov	w0, #24
	bl	_emalloc
	mov	x19, x0
	mov	w0, #1
	mov	w1, #2048
	bl	_ecalloc
	str	x0, [x19]
	str	x19, [x20, #16]
Lloh6:
	adrp	x8, _ISO_VOLUME_DESCRIPTOR_TERMINATOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ISO_VOLUME_DESCRIPTOR_TERMINATOR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	strb	w8, [x0]
	str	xzr, [x19, #16]
	ldr	x8, [x19]
	strb	w22, [x8, #6]
	str	w24, [x19, #8]
	ldr	x8, [x19]
	add	x0, x8, #1
	ldr	w1, [x23]
	mov	w2, #5
	bl	_memcpy
	add	w0, w24, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ISO_VOLUME_DESCRIPTOR_PVD,1,0  ; @ISO_VOLUME_DESCRIPTOR_PVD
	.comm	_ISO_VOLUME_DESCRIPTOR_STANDARD_ID,4,2 ; @ISO_VOLUME_DESCRIPTOR_STANDARD_ID
	.comm	_ISO_VOLUME_DESCRIPTOR_TERMINATOR,4,2 ; @ISO_VOLUME_DESCRIPTOR_TERMINATOR
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"Setting up boot volume descriptor"

	.no_dead_strip	_cd9660_setup_volume_descriptors
.subsections_via_symbols
