	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_udf_read_icb
_grub_udf_read_icb:                     ## @grub_udf_read_icb
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rsi), %esi
	movl	4(%rbx), %edx
	callq	_grub_udf_get_block
	movq	_grub_errno@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.1:
	movl	(%r15), %edi
	movq	_GRUB_UDF_LOG2_BLKSZ@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	leaq	12(%r14), %r12
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	$4, %ecx
	movq	%r12, %r8
	callq	_grub_disk_read
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r13), %rcx
	jmp	LBB0_6
LBB0_3:
	movl	(%r12), %edi
	callq	_U16
	movq	_GRUB_UDF_TAG_IDENT_FE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movl	(%r12), %edi
	callq	_U16
	movq	_GRUB_UDF_TAG_IDENT_EFE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_5:
	movl	(%rbx), %eax
	movl	%eax, 8(%r14)
	movq	%r15, (%r14)
	xorl	%ecx, %ecx
LBB0_6:
	movq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_grub_error                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_grub_errno,8,3                 ## @grub_errno
	.comm	_GRUB_UDF_LOG2_BLKSZ,4,2        ## @GRUB_UDF_LOG2_BLKSZ
	.comm	_GRUB_UDF_TAG_IDENT_FE,8,3      ## @GRUB_UDF_TAG_IDENT_FE
	.comm	_GRUB_UDF_TAG_IDENT_EFE,8,3     ## @GRUB_UDF_TAG_IDENT_EFE
	.comm	_GRUB_ERR_BAD_FS,4,2            ## @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid fe/efe descriptor"

	.no_dead_strip	_grub_udf_read_icb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_udf_read_icb
_grub_udf_read_icb:                     ; @grub_udf_read_icb
	.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, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w1, [x1]
	ldr	w2, [x21, #4]
	bl	_grub_udf_get_block
	mov	x8, x0
Lloh0:
	adrp	x23, _grub_errno@GOTPAGE
Lloh1:
	ldr	x23, [x23, _grub_errno@GOTPAGEOFF]
	ldr	x0, [x23]
	cbnz	x0, LBB0_6
; %bb.1:
	ldr	w0, [x20]
Lloh2:
	adrp	x9, _GRUB_UDF_LOG2_BLKSZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GRUB_UDF_LOG2_BLKSZ@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	lsl	w1, w8, w9
	add	x22, x19, #12
	mov	w2, #0
	mov	w3, #4
	mov	x4, x22
	bl	_grub_disk_read
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x23]
	b	LBB0_6
LBB0_3:
	ldr	w0, [x22]
	bl	_U16
Lloh5:
	adrp	x8, _GRUB_UDF_TAG_IDENT_FE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GRUB_UDF_TAG_IDENT_FE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x22]
	bl	_U16
Lloh8:
	adrp	x8, _GRUB_UDF_TAG_IDENT_EFE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GRUB_UDF_TAG_IDENT_EFE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
LBB0_5:
	mov	x0, #0
	ldr	w8, [x21]
	str	w8, [x19, #8]
	str	x20, [x19]
LBB0_6:
	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
LBB0_7:
Lloh11:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_grub_error
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_grub_errno,8,3                 ; @grub_errno
	.comm	_GRUB_UDF_LOG2_BLKSZ,4,2        ; @GRUB_UDF_LOG2_BLKSZ
	.comm	_GRUB_UDF_TAG_IDENT_FE,8,3      ; @GRUB_UDF_TAG_IDENT_FE
	.comm	_GRUB_UDF_TAG_IDENT_EFE,8,3     ; @GRUB_UDF_TAG_IDENT_EFE
	.comm	_GRUB_ERR_BAD_FS,4,2            ; @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid fe/efe descriptor"

	.no_dead_strip	_grub_udf_read_icb
.subsections_via_symbols
