	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dump_eltorito
_dump_eltorito:                         ## @dump_eltorito
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ISO_DEFAULT_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rdi
	movl	$17, %esi
	movq	%r13, %rdx
	callq	_read_sector
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movl	16(%r13), %edi
	movq	_ISO_VOLUME_DESCRIPTOR_STANDARD_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$5, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_warnx
LBB0_4:
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	_ISO_VOLUME_DESCRIPTOR_BOOT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	callq	_warnx
LBB0_6:
	movl	12(%r13), %edi
	movq	_ET_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$23, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	callq	_warnx
LBB0_8:
	movl	8(%r13), %edi
	callq	_isonum_731
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_read_sector
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_10:
	movq	%r13, %rdi
	callq	_boot_catalog_valid
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rdi
	movq	%r12, %rsi
	callq	_warnx
LBB0_12:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	*%rax
LBB0_14:
	movq	_ET_BOOT_ENTRY_SIZE@GOTPCREL(%rip), %r14
	movq	(%r14), %r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%r15, %rbx
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r13, %rdx
	addq	%r15, %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	*%rax
	movq	(%r14), %rbx
LBB0_16:
	addq	%r15, %rbx
	movq	_ISO_DEFAULT_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jae	LBB0_21
## %bb.17:
	movq	_ET_SECTION_HEADER_MORE@GOTPCREL(%rip), %r15
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_dump_section
	cltq
	imulq	(%r14), %rax
	addq	%rax, %rbx
	movq	_ISO_DEFAULT_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jae	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movsbq	(%r13,%rbx), %rax
	cmpq	%rax, (%r15)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_ET_SECTION_HEADER_LAST@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_20
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ISO_DEFAULT_BLOCK_SIZE,4,2     ## @ISO_DEFAULT_BLOCK_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read from image"

	.comm	_ISO_VOLUME_DESCRIPTOR_STANDARD_ID,4,2 ## @ISO_VOLUME_DESCRIPTOR_STANDARD_ID
L_.str.1:                               ## @.str.1
	.asciz	"%s: not a valid ISO"

	.comm	_ISO_VOLUME_DESCRIPTOR_BOOT,8,3 ## @ISO_VOLUME_DESCRIPTOR_BOOT
L_.str.2:                               ## @.str.2
	.asciz	"%s: not an El Torito bootable ISO"

	.comm	_ET_ID,4,2                      ## @ET_ID
L_.str.3:                               ## @.str.3
	.asciz	"%s: boot catalog checksum is invalid"

	.comm	_ET_BOOT_ENTRY_SIZE,8,3         ## @ET_BOOT_ENTRY_SIZE
	.comm	_ET_SECTION_HEADER_MORE,8,3     ## @ET_SECTION_HEADER_MORE
	.comm	_ET_SECTION_HEADER_LAST,8,3     ## @ET_SECTION_HEADER_LAST
	.no_dead_strip	_dump_eltorito
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dump_eltorito
_dump_eltorito:                         ; @dump_eltorito
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x24, _ISO_DEFAULT_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ISO_DEFAULT_BLOCK_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	mov	w1, #17
	mov	x2, x22
	bl	_read_sector
	cbz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	ldr	w0, [x22, #16]
Lloh9:
	adrp	x8, _ISO_VOLUME_DESCRIPTOR_STANDARD_ID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ISO_VOLUME_DESCRIPTOR_STANDARD_ID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #5
	bl	_memcmp
	cbz	x0, LBB0_4
; %bb.3:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_warnx
LBB0_4:
	ldr	x8, [x22]
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _ISO_VOLUME_DESCRIPTOR_BOOT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ISO_VOLUME_DESCRIPTOR_BOOT@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_warnx
LBB0_6:
	ldr	w0, [x22, #12]
Lloh19:
	adrp	x8, _ET_ID@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ET_ID@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	w2, #23
	bl	_memcmp
	cbz	x0, LBB0_8
; %bb.7:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_warnx
LBB0_8:
	ldr	w0, [x22, #8]
	bl	_isonum_731
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_read_sector
	cbz	x0, LBB0_10
; %bb.9:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_10:
	mov	x0, x22
	bl	_boot_catalog_valid
	cbnz	w0, LBB0_12
; %bb.11:
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_warnx
LBB0_12:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	blr	x8
LBB0_14:
Lloh28:
	adrp	x25, _ET_BOOT_ENTRY_SIZE@GOTPAGE
Lloh29:
	ldr	x25, [x25, _ET_BOOT_ENTRY_SIZE@GOTPAGEOFF]
	ldr	x23, [x25]
	ldr	x8, [x19]
	cbz	x8, LBB0_16
; %bb.15:
	add	x2, x22, x23
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	mov	w4, #1
	blr	x8
	ldr	x8, [x25]
	b	LBB0_17
LBB0_16:
	mov	x8, x23
LBB0_17:
	ldrsw	x9, [x24]
	add	x23, x8, x23
	cmp	x23, x9
	b.hs	LBB0_21
; %bb.18:
Lloh30:
	adrp	x26, _ET_SECTION_HEADER_MORE@GOTPAGE
Lloh31:
	ldr	x26, [x26, _ET_SECTION_HEADER_MORE@GOTPAGEOFF]
Lloh32:
	adrp	x27, _ET_SECTION_HEADER_LAST@GOTPAGE
Lloh33:
	ldr	x27, [x27, _ET_SECTION_HEADER_LAST@GOTPAGEOFF]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	x8, [x22, x23]
	ldr	x9, [x26]
	ldr	x10, [x27]
	cmp	x9, x8
	ccmp	x10, x8, #4, ne
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	mov	x3, x21
	mov	x4, x19
	bl	_dump_section
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x9, [x25]
	madd	x23, x9, x8, x23
	ldrsw	x8, [x24]
	cmp	x23, x8
	b.lo	LBB0_19
LBB0_21:
	ldur	x8, [x29, #-88]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_ISO_DEFAULT_BLOCK_SIZE,4,2     ; @ISO_DEFAULT_BLOCK_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read from image"

	.comm	_ISO_VOLUME_DESCRIPTOR_STANDARD_ID,4,2 ; @ISO_VOLUME_DESCRIPTOR_STANDARD_ID
l_.str.1:                               ; @.str.1
	.asciz	"%s: not a valid ISO"

	.comm	_ISO_VOLUME_DESCRIPTOR_BOOT,8,3 ; @ISO_VOLUME_DESCRIPTOR_BOOT
l_.str.2:                               ; @.str.2
	.asciz	"%s: not an El Torito bootable ISO"

	.comm	_ET_ID,4,2                      ; @ET_ID
l_.str.3:                               ; @.str.3
	.asciz	"%s: boot catalog checksum is invalid"

	.comm	_ET_BOOT_ENTRY_SIZE,8,3         ; @ET_BOOT_ENTRY_SIZE
	.comm	_ET_SECTION_HEADER_MORE,8,3     ; @ET_SECTION_HEADER_MORE
	.comm	_ET_SECTION_HEADER_LAST,8,3     ; @ET_SECTION_HEADER_LAST
	.no_dead_strip	_dump_eltorito
.subsections_via_symbols
