	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_udf_mount
_grub_udf_mount:                        ## @grub_udf_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	movq	_sblocklist@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	$96, %edi
	callq	_grub_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, 88(%rax)
	movq	_GRUB_UDF_LOG2_BLKSZ@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$16, %esi
	shll	%cl, %esi
	leaq	-96(%rbp), %r8
	movl	%r12d, %edi
	xorl	%edx, %edx
	movl	$48, %ecx
	callq	_grub_disk_read
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_3:
	callq	_grub_error
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_4:
	movq	%rbx, %rdi
	callq	_grub_free
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$17, %ebx
	movq	_GRUB_UDF_STD_IDENT_NSR03@GOTPCREL(%rip), %r14
	leaq	-96(%rbp), %r15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	_GRUB_UDF_LOG2_BLKSZ@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movl	%ebx, %esi
	shll	%cl, %esi
	movl	%r12d, %edi
	xorl	%edx, %edx
	movl	$48, %ecx
	movq	%r15, %r8
	callq	_grub_disk_read
	incl	%ebx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	-52(%rbp), %edi
	movl	(%r14), %esi
	movl	$5, %edx
	callq	_grub_memcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-52(%rbp), %edi
	movq	_GRUB_UDF_STD_IDENT_NSR02@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$5, %edx
	callq	_grub_memcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-52(%rbp), %edi
	movq	_GRUB_UDF_STD_IDENT_BEA01@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$5, %edx
	callq	_grub_memcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-52(%rbp), %edi
	movq	_GRUB_UDF_STD_IDENT_BOOT2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$5, %edx
	callq	_grub_memcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-52(%rbp), %edi
	movq	_GRUB_UDF_STD_IDENT_CD001@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$5, %edx
	callq	_grub_memcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-52(%rbp), %edi
	movq	_GRUB_UDF_STD_IDENT_CDW02@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$5, %edx
	callq	_grub_memcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-52(%rbp), %edi
	movq	_GRUB_UDF_STD_IDENT_TEA01@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$5, %edx
	callq	_grub_memcmp
	testq	%rax, %rax
	je	LBB0_8
	jmp	LBB0_2
LBB0_16:
	movl	(%r13), %esi
	movq	_GRUB_UDF_LOG2_BLKSZ@GOTPCREL(%rip), %r14
	movb	(%r14), %cl
	shll	%cl, %esi
	leaq	-96(%rbp), %r8
	movl	%r12d, %edi
	xorl	%edx, %edx
	movl	$48, %ecx
	callq	_grub_disk_read
	testq	%rax, %rax
	jne	LBB0_2
## %bb.17:
	addq	$4, %r13
	movq	_GRUB_UDF_TAG_IDENT_AVDP@GOTPCREL(%rip), %rbx
	leaq	-96(%rbp), %r15
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rdi
	callq	_U16
	cmpq	(%rbx), %rax
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	$0, (%r13)
	je	LBB0_2
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r13), %esi
	movzbl	(%r14), %ecx
	shll	%cl, %esi
	movl	%r12d, %edi
	xorl	%edx, %edx
	movl	$48, %ecx
	movq	%r15, %r8
	callq	_grub_disk_read
	addq	$4, %r13
	testq	%rax, %rax
	je	LBB0_18
	jmp	LBB0_2
LBB0_21:
	movl	-56(%rbp), %edi
	callq	_U32
	movl	%eax, %r15d
	xorps	%xmm0, %xmm0
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movups	%xmm0, (%rbx)
	movb	(%r14), %cl
	movl	%eax, %esi
	shll	%cl, %esi
	leaq	-96(%rbp), %r8
	movl	%r12d, %edi
	xorl	%edx, %edx
	movl	$48, %ecx
	callq	_grub_disk_read
	leaq	L_.str(%rip), %rsi
	testq	%rax, %rax
	jne	LBB0_59
## %bb.22:
	leaq	24(%rbx), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rax
	addq	$60, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_GRUB_UDF_PARTMAP_TYPE_1@GOTPCREL(%rip), %r14
	jmp	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_25 Depth=1
	incq	(%rbx)
LBB0_24:                                ##   in Loop: Header=BB0_25 Depth=1
	incl	%r15d
	movq	_GRUB_UDF_LOG2_BLKSZ@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r15d, %esi
	shll	%cl, %esi
	movl	%r12d, %edi
	xorl	%edx, %edx
	movl	$48, %ecx
	leaq	-96(%rbp), %r8
	callq	_grub_disk_read
	testq	%rax, %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_55
LBB0_25:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_33 Depth 2
	movq	-96(%rbp), %rdi
	callq	_U16
	movq	%rax, -96(%rbp)
	movq	_GRUB_UDF_TAG_IDENT_PD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	(%rbx), %rax
	movq	_GRUB_UDF_MAX_PDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_54
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	_GRUB_UDF_LOG2_BLKSZ@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%r15d, %esi
	shll	%cl, %esi
	leaq	(%rax,%rax,2), %r8
	shlq	$4, %r8
	addq	80(%rbx), %r8
	movl	%r12d, %edi
	xorl	%edx, %edx
	movl	$4, %ecx
	callq	_grub_disk_read
	testq	%rax, %rax
	je	LBB0_23
	jmp	LBB0_55
LBB0_28:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	_GRUB_UDF_TAG_IDENT_LVD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_35
## %bb.29:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	_GRUB_UDF_LOG2_BLKSZ@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r15d, %esi
	shll	%cl, %esi
	movl	%r12d, %edi
	xorl	%edx, %edx
	movl	$4, %ecx
	movq	-112(%rbp), %r8                 ## 8-byte Reload
	callq	_grub_disk_read
	testq	%rax, %rax
	jne	LBB0_55
## %bb.30:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	8(%rbx), %r13
	movl	56(%rbx), %edi
	callq	_U32
	cltq
	addq	%r13, %rax
	movq	_GRUB_UDF_MAX_PMS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	ja	LBB0_58
## %bb.31:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	56(%rbx), %edi
	callq	_U32
	testl	%eax, %eax
	jle	LBB0_24
## %bb.32:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	%eax, %r13d
	incl	%r13d
	movq	-104(%rbp), %rbx                ## 8-byte Reload
LBB0_33:                                ##   Parent Loop BB0_25 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_52
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=2
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %rax
	movq	72(%rsi), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rsi)
	movq	%rbx, (%rcx,%rax,8)
	movl	12(%rbx), %edi
	callq	_U32
	cltq
	addq	%rax, %rbx
	decl	%r13d
	cmpl	$1, %r13d
	jg	LBB0_33
	jmp	LBB0_24
LBB0_35:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	_GRUB_UDF_TAG_IDENT_TD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_57
## %bb.36:                              ##   in Loop: Header=BB0_25 Depth=1
	jne	LBB0_24
## %bb.37:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %r8
	testq	%r8, %r8
	je	LBB0_49
## %bb.38:
	movq	(%rbx), %rcx
	xorl	%edx, %edx
LBB0_39:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_41 Depth 2
	testq	%rcx, %rcx
	je	LBB0_44
## %bb.40:                              ##   in Loop: Header=BB0_39 Depth=1
	movq	72(%rbx), %rax
	movq	80(%rbx), %rbx
	movq	(%rax,%rdx,8), %rdi
	movl	8(%rdi), %eax
	addq	$8, %rbx
	xorl	%esi, %esi
LBB0_41:                                ##   Parent Loop BB0_39 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	(%rbx), %eax
	je	LBB0_45
## %bb.42:                              ##   in Loop: Header=BB0_41 Depth=2
	incq	%rsi
	addq	$48, %rbx
	cmpq	%rsi, %rcx
	jne	LBB0_41
## %bb.43:                              ##   in Loop: Header=BB0_39 Depth=1
	movq	%rcx, %rsi
	jmp	LBB0_46
LBB0_44:                                ##   in Loop: Header=BB0_39 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_47
LBB0_45:                                ##   in Loop: Header=BB0_39 Depth=1
	movl	%esi, 8(%rdi)
LBB0_46:                                ##   in Loop: Header=BB0_39 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_47:                                ##   in Loop: Header=BB0_39 Depth=1
	movl	%esi, %eax
	cmpq	%rax, %rcx
	je	LBB0_61
## %bb.48:                              ##   in Loop: Header=BB0_39 Depth=1
	incq	%rdx
	cmpq	%r8, %rdx
	jne	LBB0_39
LBB0_49:
	movl	48(%rbx), %edx
	movl	52(%rbx), %esi
	movq	%rbx, %rdi
	callq	_grub_udf_get_block
	movq	_grub_errno@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_4
## %bb.50:
	movq	_GRUB_UDF_LOG2_BLKSZ@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	leaq	-96(%rbp), %r8
	movl	%r12d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	$48, %ecx
	callq	_grub_disk_read
	testq	%rax, %rax
	je	LBB0_62
## %bb.51:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_60
LBB0_52:
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_59
LBB0_55:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_59
LBB0_54:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_59
LBB0_57:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_59
LBB0_58:
	leaq	L_.str.2(%rip), %rsi
LBB0_59:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_60:
	callq	_grub_error
	jmp	LBB0_4
LBB0_61:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_60
LBB0_62:
	movq	-80(%rbp), %rdi
	callq	_U16
	movq	_GRUB_UDF_TAG_IDENT_FSD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_64
## %bb.63:
	movl	-84(%rbp), %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, 16(%rax)
	jmp	LBB0_6
LBB0_64:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_sblocklist,8,3                 ## @sblocklist
	.comm	_GRUB_UDF_LOG2_BLKSZ,4,2        ## @GRUB_UDF_LOG2_BLKSZ
	.comm	_GRUB_ERR_BAD_FS,4,2            ## @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not an UDF filesystem"

	.comm	_GRUB_UDF_STD_IDENT_NSR03,4,2   ## @GRUB_UDF_STD_IDENT_NSR03
	.comm	_GRUB_UDF_STD_IDENT_NSR02,4,2   ## @GRUB_UDF_STD_IDENT_NSR02
	.comm	_GRUB_UDF_STD_IDENT_BEA01,4,2   ## @GRUB_UDF_STD_IDENT_BEA01
	.comm	_GRUB_UDF_STD_IDENT_BOOT2,4,2   ## @GRUB_UDF_STD_IDENT_BOOT2
	.comm	_GRUB_UDF_STD_IDENT_CD001,4,2   ## @GRUB_UDF_STD_IDENT_CD001
	.comm	_GRUB_UDF_STD_IDENT_CDW02,4,2   ## @GRUB_UDF_STD_IDENT_CDW02
	.comm	_GRUB_UDF_STD_IDENT_TEA01,4,2   ## @GRUB_UDF_STD_IDENT_TEA01
	.comm	_GRUB_UDF_TAG_IDENT_AVDP,8,3    ## @GRUB_UDF_TAG_IDENT_AVDP
	.comm	_GRUB_UDF_TAG_IDENT_PD,8,3      ## @GRUB_UDF_TAG_IDENT_PD
	.comm	_GRUB_UDF_MAX_PDS,8,3           ## @GRUB_UDF_MAX_PDS
L_.str.1:                               ## @.str.1
	.asciz	"too many PDs"

	.comm	_GRUB_UDF_TAG_IDENT_LVD,8,3     ## @GRUB_UDF_TAG_IDENT_LVD
	.comm	_GRUB_UDF_MAX_PMS,8,3           ## @GRUB_UDF_MAX_PMS
L_.str.2:                               ## @.str.2
	.asciz	"too many partition maps"

	.comm	_GRUB_UDF_PARTMAP_TYPE_1,8,3    ## @GRUB_UDF_PARTMAP_TYPE_1
L_.str.3:                               ## @.str.3
	.asciz	"partmap type not supported"

	.comm	_GRUB_UDF_TAG_IDENT_TD,8,3      ## @GRUB_UDF_TAG_IDENT_TD
L_.str.4:                               ## @.str.4
	.asciz	"invalid tag ident"

L_.str.5:                               ## @.str.5
	.asciz	"can't find PD"

	.comm	_grub_errno,8,3                 ## @grub_errno
	.comm	_GRUB_UDF_TAG_IDENT_FSD,8,3     ## @GRUB_UDF_TAG_IDENT_FSD
L_.str.6:                               ## @.str.6
	.asciz	"invalid fileset descriptor"

	.no_dead_strip	_grub_udf_mount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_udf_mount
_grub_udf_mount:                        ; @grub_udf_mount
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, _sblocklist@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sblocklist@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	mov	w0, #96
	bl	_grub_malloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	str	w20, [x19, #88]
Lloh3:
	adrp	x24, _GRUB_UDF_LOG2_BLKSZ@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GRUB_UDF_LOG2_BLKSZ@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	w9, #16
	lsl	w1, w9, w8
	add	x4, sp, #16
	mov	x0, x20
	mov	w2, #0
	mov	w3, #48
	bl	_grub_disk_read
	cbz	x0, LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	bl	_grub_error
LBB0_4:
	mov	x0, x19
	bl	_grub_free
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_6:
	mov	w22, #17
Lloh10:
	adrp	x23, _GRUB_UDF_STD_IDENT_NSR03@GOTPAGE
Lloh11:
	ldr	x23, [x23, _GRUB_UDF_STD_IDENT_NSR03@GOTPAGEOFF]
Lloh12:
	adrp	x25, _GRUB_UDF_STD_IDENT_NSR02@GOTPAGE
Lloh13:
	ldr	x25, [x25, _GRUB_UDF_STD_IDENT_NSR02@GOTPAGEOFF]
Lloh14:
	adrp	x26, _GRUB_UDF_STD_IDENT_BEA01@GOTPAGE
Lloh15:
	ldr	x26, [x26, _GRUB_UDF_STD_IDENT_BEA01@GOTPAGEOFF]
Lloh16:
	adrp	x27, _GRUB_UDF_STD_IDENT_BOOT2@GOTPAGE
Lloh17:
	ldr	x27, [x27, _GRUB_UDF_STD_IDENT_BOOT2@GOTPAGEOFF]
Lloh18:
	adrp	x28, _GRUB_UDF_STD_IDENT_CD001@GOTPAGE
Lloh19:
	ldr	x28, [x28, _GRUB_UDF_STD_IDENT_CD001@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x24]
	lsl	w1, w22, w8
	add	x4, sp, #16
	mov	x0, x20
	mov	w2, #0
	mov	w3, #48
	bl	_grub_disk_read
	add	w22, w22, #1
	cbnz	x0, LBB0_2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #60]
	ldr	w1, [x23]
	mov	w2, #5
	bl	_grub_memcmp
	cbz	x0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [sp, #60]
	ldr	w1, [x25]
	mov	w2, #5
	bl	_grub_memcmp
	cbz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [sp, #60]
	ldr	w1, [x26]
	mov	w2, #5
	bl	_grub_memcmp
	cbz	x0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [sp, #60]
	ldr	w1, [x27]
	mov	w2, #5
	bl	_grub_memcmp
	cbz	x0, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [sp, #60]
	ldr	w1, [x28]
	mov	w2, #5
	bl	_grub_memcmp
	cbz	x0, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [sp, #60]
Lloh20:
	adrp	x8, _GRUB_UDF_STD_IDENT_CDW02@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GRUB_UDF_STD_IDENT_CDW02@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	w2, #5
	bl	_grub_memcmp
	cbz	x0, LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [sp, #60]
Lloh23:
	adrp	x8, _GRUB_UDF_STD_IDENT_TEA01@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GRUB_UDF_STD_IDENT_TEA01@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	w2, #5
	bl	_grub_memcmp
	cbz	x0, LBB0_7
	b	LBB0_2
LBB0_15:
	ldr	w8, [x21]
	ldr	w9, [x24]
	lsl	w1, w8, w9
	add	x4, sp, #16
	mov	x0, x20
	mov	w2, #0
	mov	w3, #48
	bl	_grub_disk_read
	cbnz	x0, LBB0_2
; %bb.16:
	add	x21, x21, #4
Lloh26:
	adrp	x22, _GRUB_UDF_TAG_IDENT_AVDP@GOTPAGE
Lloh27:
	ldr	x22, [x22, _GRUB_UDF_TAG_IDENT_AVDP@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #32]
	bl	_U16
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x21]
	cbz	w8, LBB0_2
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x21], #4
	ldr	w9, [x24]
	lsl	w1, w8, w9
	add	x4, sp, #16
	mov	x0, x20
	mov	w2, #0
	mov	w3, #48
	bl	_grub_disk_read
	cbz	x0, LBB0_17
	b	LBB0_2
LBB0_20:
	ldr	w0, [sp, #56]
	bl	_U32
	mov	x21, x0
	stp	xzr, xzr, [x19]
	ldr	w8, [x24]
	lsl	w1, w0, w8
	add	x4, sp, #16
	mov	x0, x20
	mov	w2, #0
	mov	w3, #48
	bl	_grub_disk_read
	cbz	x0, LBB0_23
LBB0_21:
Lloh28:
	adrp	x22, l_.str@PAGE
Lloh29:
	add	x22, x22, l_.str@PAGEOFF
LBB0_22:
Lloh30:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	x1, x22
	b	LBB0_3
LBB0_23:
	add	x23, x19, #24
Lloh33:
	adrp	x26, _GRUB_UDF_TAG_IDENT_PD@GOTPAGE
Lloh34:
	ldr	x26, [x26, _GRUB_UDF_TAG_IDENT_PD@GOTPAGEOFF]
Lloh35:
	adrp	x22, l_.str.1@PAGE
Lloh36:
	add	x22, x22, l_.str.1@PAGEOFF
	add	x8, x19, #60
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh37:
	adrp	x25, _GRUB_UDF_PARTMAP_TYPE_1@GOTPAGE
Lloh38:
	ldr	x25, [x25, _GRUB_UDF_PARTMAP_TYPE_1@GOTPAGEOFF]
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	add	w21, w21, #1
	ldr	w8, [x24]
	lsl	w1, w21, w8
	add	x4, sp, #16
	mov	x0, x20
	mov	w2, #0
	mov	w3, #48
	bl	_grub_disk_read
	cbnz	x0, LBB0_21
LBB0_26:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_34 Depth 2
	ldr	x0, [sp, #16]
	bl	_U16
	str	x0, [sp, #16]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_29
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x8, [x19]
Lloh39:
	adrp	x9, _GRUB_UDF_MAX_PDS@GOTPAGE
Lloh40:
	ldr	x9, [x9, _GRUB_UDF_MAX_PDS@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_22
; %bb.28:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	w9, [x24]
	lsl	w1, w21, w9
	ldr	x9, [x19, #80]
	mov	w10, #48
	madd	x4, x8, x10, x9
	mov	x0, x20
	mov	w2, #0
	mov	w3, #4
	bl	_grub_disk_read
	cbz	x0, LBB0_24
	b	LBB0_21
LBB0_29:                                ;   in Loop: Header=BB0_26 Depth=1
Lloh42:
	adrp	x8, _GRUB_UDF_TAG_IDENT_LVD@GOTPAGE
Lloh43:
	ldr	x8, [x8, _GRUB_UDF_TAG_IDENT_LVD@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_36
; %bb.30:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	w8, [x24]
	lsl	w1, w21, w8
	mov	x0, x20
	mov	w2, #0
	mov	w3, #4
	mov	x4, x23
	bl	_grub_disk_read
	cbnz	x0, LBB0_21
; %bb.31:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x27, [x19, #8]
	ldr	w0, [x19, #56]
	bl	_U32
	add	x8, x27, w0, sxtw
Lloh45:
	adrp	x9, _GRUB_UDF_MAX_PMS@GOTPAGE
Lloh46:
	ldr	x9, [x9, _GRUB_UDF_MAX_PMS@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hi	LBB0_54
; %bb.32:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	w0, [x19, #56]
	bl	_U32
	cmp	w0, #1
	b.lt	LBB0_25
; %bb.33:                               ;   in Loop: Header=BB0_26 Depth=1
	add	w27, w0, #1
	ldr	x28, [sp, #8]                   ; 8-byte Folded Reload
LBB0_34:                                ;   Parent Loop BB0_26 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x28]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_52
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=2
	ldr	x8, [x19, #72]
	ldr	x9, [x19, #8]
	add	x10, x9, #1
	str	x10, [x19, #8]
	str	x28, [x8, x9, lsl #3]
	ldr	w0, [x28, #12]
	bl	_U32
	add	x28, x28, w0, sxtw
	sub	w27, w27, #1
	cmp	w27, #1
	b.gt	LBB0_34
	b	LBB0_25
LBB0_36:                                ;   in Loop: Header=BB0_26 Depth=1
Lloh48:
	adrp	x8, _GRUB_UDF_TAG_IDENT_TD@GOTPAGE
Lloh49:
	ldr	x8, [x8, _GRUB_UDF_TAG_IDENT_TD@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_53
; %bb.37:                               ;   in Loop: Header=BB0_26 Depth=1
	b.ne	LBB0_25
; %bb.38:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_48
; %bb.39:
	mov	x9, #0
	ldr	x10, [x19]
LBB0_40:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_42 Depth 2
	mov	x11, #0
	cbz	x10, LBB0_46
; %bb.41:                               ;   in Loop: Header=BB0_40 Depth=1
	ldp	x12, x14, [x19, #72]
	ldr	x12, [x12, x9, lsl #3]
	ldr	w13, [x12, #8]
	add	x14, x14, #8
LBB0_42:                                ;   Parent Loop BB0_40 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w15, [x14]
	cmp	w13, w15
	b.eq	LBB0_45
; %bb.43:                               ;   in Loop: Header=BB0_42 Depth=2
	add	x11, x11, #1
	add	x14, x14, #48
	cmp	x10, x11
	b.ne	LBB0_42
; %bb.44:                               ;   in Loop: Header=BB0_40 Depth=1
	mov	x11, x10
	b	LBB0_46
LBB0_45:                                ;   in Loop: Header=BB0_40 Depth=1
	str	w11, [x12, #8]
LBB0_46:                                ;   in Loop: Header=BB0_40 Depth=1
	cmp	x10, w11, uxtw
	b.eq	LBB0_55
; %bb.47:                               ;   in Loop: Header=BB0_40 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.ne	LBB0_40
LBB0_48:
	ldp	w2, w1, [x19, #48]
	mov	x0, x19
	bl	_grub_udf_get_block
Lloh51:
	adrp	x8, _grub_errno@GOTPAGE
Lloh52:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	cbnz	x8, LBB0_4
; %bb.49:
	ldr	w8, [x24]
	lsl	w1, w0, w8
	add	x4, sp, #16
	mov	x0, x20
	mov	w2, #0
	mov	w3, #48
	bl	_grub_disk_read
	cbnz	x0, LBB0_2
; %bb.50:
	ldr	x0, [sp, #32]
	bl	_U16
Lloh54:
	adrp	x8, _GRUB_UDF_TAG_IDENT_FSD@GOTPAGE
Lloh55:
	ldr	x8, [x8, _GRUB_UDF_TAG_IDENT_FSD@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_56
; %bb.51:
	ldr	w8, [sp, #28]
	str	w8, [x19, #16]
	b	LBB0_5
LBB0_52:
Lloh57:
	adrp	x22, l_.str.3@PAGE
Lloh58:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_22
LBB0_53:
Lloh59:
	adrp	x22, l_.str.4@PAGE
Lloh60:
	add	x22, x22, l_.str.4@PAGEOFF
	b	LBB0_22
LBB0_54:
Lloh61:
	adrp	x22, l_.str.2@PAGE
Lloh62:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_22
LBB0_55:
Lloh63:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh64:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x8]
Lloh66:
	adrp	x1, l_.str.5@PAGE
Lloh67:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_3
LBB0_56:
Lloh68:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh69:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
Lloh71:
	adrp	x1, l_.str.6@PAGE
Lloh72:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.cfi_endproc
                                        ; -- End function
	.comm	_sblocklist,8,3                 ; @sblocklist
	.comm	_GRUB_UDF_LOG2_BLKSZ,4,2        ; @GRUB_UDF_LOG2_BLKSZ
	.comm	_GRUB_ERR_BAD_FS,4,2            ; @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not an UDF filesystem"

	.comm	_GRUB_UDF_STD_IDENT_NSR03,4,2   ; @GRUB_UDF_STD_IDENT_NSR03
	.comm	_GRUB_UDF_STD_IDENT_NSR02,4,2   ; @GRUB_UDF_STD_IDENT_NSR02
	.comm	_GRUB_UDF_STD_IDENT_BEA01,4,2   ; @GRUB_UDF_STD_IDENT_BEA01
	.comm	_GRUB_UDF_STD_IDENT_BOOT2,4,2   ; @GRUB_UDF_STD_IDENT_BOOT2
	.comm	_GRUB_UDF_STD_IDENT_CD001,4,2   ; @GRUB_UDF_STD_IDENT_CD001
	.comm	_GRUB_UDF_STD_IDENT_CDW02,4,2   ; @GRUB_UDF_STD_IDENT_CDW02
	.comm	_GRUB_UDF_STD_IDENT_TEA01,4,2   ; @GRUB_UDF_STD_IDENT_TEA01
	.comm	_GRUB_UDF_TAG_IDENT_AVDP,8,3    ; @GRUB_UDF_TAG_IDENT_AVDP
	.comm	_GRUB_UDF_TAG_IDENT_PD,8,3      ; @GRUB_UDF_TAG_IDENT_PD
	.comm	_GRUB_UDF_MAX_PDS,8,3           ; @GRUB_UDF_MAX_PDS
l_.str.1:                               ; @.str.1
	.asciz	"too many PDs"

	.comm	_GRUB_UDF_TAG_IDENT_LVD,8,3     ; @GRUB_UDF_TAG_IDENT_LVD
	.comm	_GRUB_UDF_MAX_PMS,8,3           ; @GRUB_UDF_MAX_PMS
l_.str.2:                               ; @.str.2
	.asciz	"too many partition maps"

	.comm	_GRUB_UDF_PARTMAP_TYPE_1,8,3    ; @GRUB_UDF_PARTMAP_TYPE_1
l_.str.3:                               ; @.str.3
	.asciz	"partmap type not supported"

	.comm	_GRUB_UDF_TAG_IDENT_TD,8,3      ; @GRUB_UDF_TAG_IDENT_TD
l_.str.4:                               ; @.str.4
	.asciz	"invalid tag ident"

l_.str.5:                               ; @.str.5
	.asciz	"can't find PD"

	.comm	_grub_errno,8,3                 ; @grub_errno
	.comm	_GRUB_UDF_TAG_IDENT_FSD,8,3     ; @GRUB_UDF_TAG_IDENT_FSD
l_.str.6:                               ; @.str.6
	.asciz	"invalid fileset descriptor"

	.no_dead_strip	_grub_udf_mount
.subsections_via_symbols
