	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getblk
_getblk:                                ## @getblk
	.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	$4088, %rsp                     ## imm = 0xFF8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	callq	_grub_le_to_cpu16
	movq	%rax, %rcx
	movl	$-1, %eax
	cmpq	$3, %rcx
	jl	LBB0_12
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	addq	$12, %rbx
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %r13
	movl	(%rbx), %edi
	callq	_grub_le_to_cpu32
	cmpq	%rax, %r13
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmovgel	%r14d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movl	4(%r12), %edi
	callq	_grub_le_to_cpu16
	addq	$-2, %rax
	addq	$16, %rbx
	cmpq	%r14, %rax
	jle	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GRUB_JFS_TREE_LEAF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	callq	_grub_le_to_cpu32
	cmpq	(%r15), %rax
	jg	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-4(%rbx), %edi
	callq	_grub_le_to_cpu16
	movl	-12(%rbx), %ecx
	movl	(%rbx), %edi
	shll	$8, %ecx
	movslq	%ecx, %r13
	addq	%rax, %r13
	callq	_grub_le_to_cpu32
	addq	%r13, %rax
	movq	(%r15), %r13
	cmpq	%r13, %rax
	jle	LBB0_7
## %bb.5:
	movl	%r14d, %r14d
	movl	(%rbx), %edi
	callq	_grub_le_to_cpu32
	subl	%eax, %r13d
	shlq	$4, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax,%r14), %edi
	callq	_grub_le_to_cpu32
	addl	%r13d, %eax
	jmp	LBB0_12
LBB0_8:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$-1, %ecx
	je	LBB0_9
## %bb.10:
	movq	8(%r15), %rax
	movl	4(%rax), %r12d
	movslq	%ecx, %rax
	shlq	$4, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx,%rax), %edi
	callq	_grub_le_to_cpu32
	movq	%rax, %rbx
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_grub_le_to_cpu16
	movq	_GRUB_DISK_SECTOR_BITS@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movl	%eax, %ecx
	shlq	%cl, %rbx
	leaq	-4128(%rbp), %r8
	movl	%r12d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	$4072, %ecx                     ## imm = 0xFE8
	callq	_grub_disk_read
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_12
## %bb.11:
	leaq	-4120(%rbp), %rsi
	leaq	-4128(%rbp), %rdi
	movq	%r15, %rdx
	callq	_getblk
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_12
LBB0_9:
	movl	$-1, %eax
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$4088, %rsp                     ## imm = 0xFF8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_JFS_TREE_LEAF,4,2         ## @GRUB_JFS_TREE_LEAF
	.comm	_GRUB_DISK_SECTOR_BITS,4,2      ## @GRUB_DISK_SECTOR_BITS
	.no_dead_strip	_getblk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getblk
_getblk:                                ; @getblk
	.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, #4080
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_grub_le_to_cpu16
	cmp	x0, #3
	b.lt	LBB0_10
; %bb.1:
	mov	x22, #0
	add	x24, x20, #12
	mov	w23, #-1
Lloh0:
	adrp	x25, _GRUB_JFS_TREE_LEAF@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GRUB_JFS_TREE_LEAF@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x26, [x19]
	ldr	w0, [x24]
	bl	_grub_le_to_cpu32
	cmp	x26, x0
	csel	w23, w23, w22, lt
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldr	w0, [x21, #4]
	bl	_grub_le_to_cpu16
	sub	x8, x0, #2
	add	x24, x24, #16
	cmp	x8, x22
	b.le	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	bl	_grub_le_to_cpu32
	ldr	x8, [x19]
	cmp	x0, x8
	b.gt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w0, [x24, #-4]
	bl	_grub_le_to_cpu16
	ldur	w8, [x24, #-12]
	lsl	w8, w8, #8
	add	x27, x0, w8, sxtw
	ldr	w0, [x24]
	bl	_grub_le_to_cpu32
	ldr	x26, [x19]
	add	x8, x27, x0
	cmp	x8, x26
	b.le	LBB0_3
; %bb.7:
	ldr	w0, [x24]
	bl	_grub_le_to_cpu32
	sub	w19, w26, w0
	add	x8, x20, w22, uxtw #4
	ldr	w0, [x8, #4]
	bl	_grub_le_to_cpu32
	add	w0, w19, w0
	b	LBB0_11
LBB0_8:
	cmn	w23, #1
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	w21, [x8, #4]
	add	x8, x20, w23, sxtw #4
	ldr	w0, [x8, #4]
	bl	_grub_le_to_cpu32
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_grub_le_to_cpu16
Lloh2:
	adrp	x8, _GRUB_DISK_SECTOR_BITS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GRUB_DISK_SECTOR_BITS@GOTPAGEOFF]
Lloh4:
	ldrsw	x8, [x8]
	sub	x8, x0, x8
	lsl	x1, x20, x8
	add	x20, sp, #8
	add	x4, sp, #8
	mov	x0, x21
	mov	w2, #0
	mov	w3, #4072
	bl	_grub_disk_read
	cbz	x0, LBB0_12
LBB0_10:
	mov	w0, #-1
LBB0_11:
	add	sp, sp, #4080
	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_12:
	add	x1, x20, #8
	add	x0, sp, #8
	mov	x2, x19
	bl	_getblk
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_JFS_TREE_LEAF,4,2         ; @GRUB_JFS_TREE_LEAF
	.comm	_GRUB_DISK_SECTOR_BITS,4,2      ; @GRUB_DISK_SECTOR_BITS
	.no_dead_strip	_getblk
.subsections_via_symbols
