	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function choose_volume
_choose_volume:                         ## @choose_volume
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	32(%rsi), %r15
	cmpl	$0, 48(%rsi)
	je	LBB0_1
## %bb.2:
	cmpb	$0, (%rbx)
	movq	%r15, %r12
	je	LBB0_4
## %bb.3:
	movq	32(%rbx), %rax
	leaq	16(%rbx), %r12
	cmpq	16(%rbx), %rax
	cmovleq	%r15, %r12
	jmp	LBB0_4
LBB0_1:
	movb	$0, (%rbx)
	movq	%r15, %r12
LBB0_4:
	movq	_LOGICAL_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	(%r12), %esi
	movq	%r14, %rdi
	callq	___archive_read_consume
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_22
## %bb.5:
	movl	%eax, 4(%rbx)
	movl	8(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movb	(%rbx), %r13b
	movb	$0, (%rbx)
	movl	8(%r12), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_parse_file_info
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movb	%r13b, (%rbx)
	cmpq	%r15, %r12
	jne	LBB0_19
## %bb.10:
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.11:
	testb	%r13b, %r13b
	je	LBB0_13
## %bb.12:
	xorl	%r13d, %r13d
LBB0_18:
	movb	%r13b, (%rbx)
LBB0_19:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_add_entry
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.20:
	cmpq	$0, 8(%rbx)
	je	LBB0_22
## %bb.21:
	movq	_ARCHIVE_FORMAT_ISO9660_ROCKRIDGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r14)
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_22
LBB0_13:
	testq	%rcx, %rcx
	jne	LBB0_19
## %bb.14:
	testb	%r13b, %r13b
	je	LBB0_19
## %bb.15:
	movq	_LOGICAL_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	16(%rbx), %esi
	subl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	___archive_read_consume
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_22
## %bb.16:
	addl	%eax, 4(%rbx)
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_6
## %bb.17:
	movb	$0, (%rbx)
	movl	24(%rbx), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_parse_file_info
	testq	%rax, %rax
	jne	LBB0_18
	jmp	LBB0_8
LBB0_6:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_archive_set_error
LBB0_8:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_22:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOGICAL_BLOCK_SIZE,4,2         ## @LOGICAL_BLOCK_SIZE
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read full block when scanning ISO9660 directory list"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,8,3                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_FORMAT_ISO9660_ROCKRIDGE,4,2 ## @ARCHIVE_FORMAT_ISO9660_ROCKRIDGE
L_.str.1:                               ## @.str.1
	.asciz	"ISO9660 with Rockridge extensions"

	.no_dead_strip	_choose_volume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function choose_volume
_choose_volume:                         ; @choose_volume
	.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	x20, x1
	mov	x19, x0
	add	x22, x1, #32
	mov	x23, x22
	ldr	w8, [x1, #48]
	cbz	w8, LBB0_3
; %bb.1:
	ldrb	w8, [x20]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x8, x20
	ldr	x9, [x8, #16]!
	ldr	x10, [x8, #16]
	cmp	x10, x9
	csel	x23, x8, x22, gt
	b	LBB0_4
LBB0_3:
	strb	wzr, [x20]
LBB0_4:
Lloh0:
	adrp	x24, _LOGICAL_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _LOGICAL_BLOCK_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x23]
	mul	w1, w8, w9
	mov	x0, x19
	bl	___archive_read_consume
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_22
; %bb.5:
	str	w0, [x20, #4]
	ldr	w1, [x23, #8]
	mov	x0, x19
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_20
; %bb.6:
	mov	x2, x0
	ldrb	w21, [x20]
	strb	wzr, [x20]
	ldr	w3, [x23, #8]
	mov	x0, x19
	mov	x1, #0
	bl	_parse_file_info
	cbz	x0, LBB0_21
; %bb.7:
	mov	x2, x0
	strb	w21, [x20]
	cmp	x23, x22
	b.ne	LBB0_12
; %bb.8:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_15
; %bb.9:
	cbz	w21, LBB0_15
; %bb.10:
	mov	w21, #0
LBB0_11:
	strb	w21, [x20]
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_add_entry
Lloh2:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_21
; %bb.13:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_22
; %bb.14:
Lloh5:
	adrp	x8, _ARCHIVE_FORMAT_ISO9660_ROCKRIDGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARCHIVE_FORMAT_ISO9660_ROCKRIDGE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh8:
	adrp	x8, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x19]
	b	LBB0_22
LBB0_15:
	cbnz	x8, LBB0_12
; %bb.16:
	cbz	w21, LBB0_12
; %bb.17:
	ldr	w8, [x24]
	ldr	w9, [x20, #16]
	ldr	w10, [x20, #4]
	neg	w10, w10
	madd	w1, w8, w9, w10
	mov	x0, x19
	bl	___archive_read_consume
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_22
; %bb.18:
	ldr	w8, [x20, #4]
	add	w8, w8, w0
	str	w8, [x20, #4]
	ldr	w1, [x20, #24]
	mov	x0, x19
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_20
; %bb.19:
	mov	x2, x0
	strb	wzr, [x20]
	ldr	w3, [x20, #24]
	mov	x0, x19
	mov	x1, #0
	bl	_parse_file_info
	mov	x2, x0
	cbnz	x0, LBB0_11
	b	LBB0_21
LBB0_20:
Lloh10:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
LBB0_21:
Lloh15:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
LBB0_22:
                                        ; kill: def $w0 killed $w0 killed $x0
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LOGICAL_BLOCK_SIZE,4,2         ; @LOGICAL_BLOCK_SIZE
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read full block when scanning ISO9660 directory list"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,8,3                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_FORMAT_ISO9660_ROCKRIDGE,4,2 ; @ARCHIVE_FORMAT_ISO9660_ROCKRIDGE
l_.str.1:                               ; @.str.1
	.asciz	"ISO9660 with Rockridge extensions"

	.no_dead_strip	_choose_volume
.subsections_via_symbols
