	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_iso9660_mount
_grub_iso9660_mount:                    ## @grub_iso9660_mount
	.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
	movl	%edi, %r15d
	movl	$16, %r14d
	movl	$16, %edi
	callq	_grub_zalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movl	%r15d, 12(%rax)
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	addq	$4, %r12
	leaq	-80(%rbp), %rbx
	leaq	L_.str.1(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$24, %edx
	callq	_grub_memcpy
	movq	-72(%rbp), %rax
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r14d
	movq	_GRUB_ISO9660_VOLDESC_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GRUB_ISO9660_LOG2_BLKSZ@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movl	%r14d, %esi
	shll	%cl, %esi
	movl	%r15d, %edi
	xorl	%edx, %edx
	movl	$24, %ecx
	movq	%rbx, %r8
	callq	_grub_disk_read
	testq	%rax, %rax
	jne	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdi
	movq	%r13, %rsi
	movl	$5, %edx
	callq	_grub_strncmp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rax
	movq	_GRUB_ISO9660_VOLDESC_PRIMARY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_GRUB_ISO9660_VOLDESC_SUPP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rcx
	cmpl	$37, (%rcx)
	jne	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$47, 4(%rcx)
	jne	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%rcx), %ecx
	addl	$-64, %ecx
	cmpl	$5, %ecx
	ja	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$41, %edx
	btl	%ecx, %edx
	jae	LBB0_3
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_2
LBB0_13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_grub_le_to_cpu32
	movq	_GRUB_ISO9660_LOG2_BLKSZ@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	leaq	-56(%rbp), %r8
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	$8, %ecx
	callq	_grub_disk_read
	testq	%rax, %rax
	je	LBB0_18
LBB0_14:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_grub_error
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_grub_free
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	-56(%rbp), %eax
	movl	-52(%rbp), %r13d
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	andl	$-2, %ecx
	movl	%eax, %edx
	subl	%ecx, %edx
	leal	(%rax,%rdx), %r12d
	addl	$7, %r12d
	subl	%r12d, %r13d
	leal	1024(%r13), %esi
	movl	$1, %edi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.19:
	movq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_grub_le_to_cpu32
	movq	_GRUB_ISO9660_LOG2_BLKSZ@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movq	%rbx, %r8
	callq	_grub_disk_read
	testq	%rax, %rax
	jne	LBB0_14
## %bb.20:
	movq	8(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edx
	callq	_grub_strncmp
	testq	%rax, %rax
	je	LBB0_22
LBB0_21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_22:
	movq	%rbx, %rdi
	callq	_ENTRY_DATA
	movl	8(%rax), %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 8(%rbx)
	movl	4(%rbx), %edi
	callq	_grub_le_to_cpu32
	movq	_GRUB_ISO9660_LOG2_BLKSZ@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_susp_iterate@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movq	%rbx, %r9
	callq	_grub_iso9660_susp_iterate
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_ISO9660_LOG2_BLKSZ,4,2    ## @GRUB_ISO9660_LOG2_BLKSZ
	.comm	_GRUB_ERR_BAD_FS,4,2            ## @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not a ISO9660 filesystem"

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

	.comm	_GRUB_ISO9660_VOLDESC_PRIMARY,8,3 ## @GRUB_ISO9660_VOLDESC_PRIMARY
	.comm	_GRUB_ISO9660_VOLDESC_SUPP,8,3  ## @GRUB_ISO9660_VOLDESC_SUPP
	.comm	_GRUB_ISO9660_VOLDESC_END,8,3   ## @GRUB_ISO9660_VOLDESC_END
L_.str.2:                               ## @.str.2
	.asciz	"SP"

	.comm	_susp_iterate,4,2               ## @susp_iterate
	.no_dead_strip	_grub_iso9660_mount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_iso9660_mount
_grub_iso9660_mount:                    ; @grub_iso9660_mount
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x0
	mov	w0, #16
	bl	_grub_zalloc
	mov	x19, x0
	cbz	x0, LBB0_15
; %bb.1:
	str	w20, [x19, #12]
	add	x21, x19, #4
	mov	w23, #16
Lloh0:
	adrp	x24, _GRUB_ISO9660_LOG2_BLKSZ@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GRUB_ISO9660_LOG2_BLKSZ@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh4:
	adrp	x25, _GRUB_ISO9660_VOLDESC_PRIMARY@GOTPAGE
Lloh5:
	ldr	x25, [x25, _GRUB_ISO9660_VOLDESC_PRIMARY@GOTPAGEOFF]
Lloh6:
	adrp	x26, _GRUB_ISO9660_VOLDESC_END@GOTPAGE
Lloh7:
	ldr	x26, [x26, _GRUB_ISO9660_VOLDESC_END@GOTPAGEOFF]
	mov	w27, #1
Lloh8:
	adrp	x28, _GRUB_ISO9660_VOLDESC_SUPP@GOTPAGE
Lloh9:
	ldr	x28, [x28, _GRUB_ISO9660_VOLDESC_SUPP@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w27, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, sp
	mov	x0, x21
	mov	w2, #24
	bl	_grub_memcpy
	ldr	x8, [sp, #8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w23, w23, #1
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	lsl	w1, w23, w8
	mov	x4, sp
	mov	x0, x20
	mov	w2, #0
	mov	w3, #24
	bl	_grub_disk_read
	cbnz	x0, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #16]
	mov	x1, x22
	mov	w2, #5
	bl	_grub_strncmp
	cbnz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [sp]
	ldr	w10, [x9]
	cmp	w10, #37
	b.ne	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x9, #4]
	cmp	w10, #47
	b.ne	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x9, #8]
	sub	w9, w9, #64
	cmp	w9, #5
	lsl	w9, w27, w9
	mov	w10, #41
	and	w9, w9, w10
	ccmp	w9, #0, #4, ls
	b.ne	LBB0_2
	b	LBB0_4
LBB0_12:
	ldr	w0, [x19, #4]
	bl	_grub_le_to_cpu32
	ldr	w8, [x24]
	lsl	w1, w0, w8
	add	x4, sp, #24
	mov	x0, x20
	mov	w2, #0
	mov	w3, #8
	bl	_grub_disk_read
	cbz	x0, LBB0_16
LBB0_13:
Lloh10:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_grub_error
LBB0_14:
	mov	x0, x19
	bl	_grub_free
	mov	x19, #0
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
	ldp	w8, w9, [sp, #24]
	and	w10, w8, #0x1
	cmp	w8, #0
	cneg	w10, w10, lt
	add	w8, w8, w10
	add	w22, w8, #7
	sub	w21, w9, w22
	add	w1, w21, #1024
	mov	w0, #1
	bl	_calloc
	cbz	x0, LBB0_14
; %bb.17:
	mov	x23, x0
	ldr	w0, [x19, #4]
	bl	_grub_le_to_cpu32
	ldr	w8, [x24]
	lsl	w1, w0, w8
	mov	x0, x20
	mov	x2, x22
	mov	x3, x21
	mov	x4, x23
	bl	_grub_disk_read
	cbnz	x0, LBB0_13
; %bb.18:
	ldr	x0, [x23, #8]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #2
	bl	_grub_strncmp
	cbnz	x0, LBB0_15
; %bb.19:
	mov	x0, x23
	bl	_ENTRY_DATA
	ldr	w8, [x0, #8]
	str	w8, [x19, #8]
	ldr	w0, [x19, #4]
	bl	_grub_le_to_cpu32
	ldr	w8, [x24]
	lsl	w1, w0, w8
Lloh17:
	adrp	x8, _susp_iterate@GOTPAGE
Lloh18:
	ldr	x8, [x8, _susp_iterate@GOTPAGEOFF]
Lloh19:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	mov	x5, x19
	bl	_grub_iso9660_susp_iterate
	cbnz	x0, LBB0_14
	b	LBB0_15
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_ISO9660_LOG2_BLKSZ,4,2    ; @GRUB_ISO9660_LOG2_BLKSZ
	.comm	_GRUB_ERR_BAD_FS,4,2            ; @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not a ISO9660 filesystem"

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

	.comm	_GRUB_ISO9660_VOLDESC_PRIMARY,8,3 ; @GRUB_ISO9660_VOLDESC_PRIMARY
	.comm	_GRUB_ISO9660_VOLDESC_SUPP,8,3  ; @GRUB_ISO9660_VOLDESC_SUPP
	.comm	_GRUB_ISO9660_VOLDESC_END,8,3   ; @GRUB_ISO9660_VOLDESC_END
l_.str.2:                               ; @.str.2
	.asciz	"SP"

	.comm	_susp_iterate,4,2               ; @susp_iterate
	.no_dead_strip	_grub_iso9660_mount
.subsections_via_symbols
