	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_hfsplus_find_block
_grub_hfsplus_find_block:               ## @grub_hfsplus_find_block
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %ebx
	movl	(%rdi), %edi
	callq	_grub_be_to_cpu32
	cmpl	%eax, %ebx
	jge	LBB0_3
## %bb.1:
	xorl	%ecx, %ecx
	jmp	LBB0_2
LBB0_3:
	movl	(%r15), %edi
	callq	_grub_be_to_cpu32
	subl	%eax, %ebx
	movl	8(%r15), %edi
	callq	_grub_be_to_cpu32
	movl	$1, %ecx
	cmpl	%eax, %ebx
	jl	LBB0_2
## %bb.4:
	movl	8(%r15), %edi
	callq	_grub_be_to_cpu32
	subl	%eax, %ebx
	movl	16(%r15), %edi
	callq	_grub_be_to_cpu32
	movl	$2, %ecx
	cmpl	%eax, %ebx
	jl	LBB0_2
## %bb.5:
	movl	16(%r15), %edi
	callq	_grub_be_to_cpu32
	subl	%eax, %ebx
	movl	24(%r15), %edi
	callq	_grub_be_to_cpu32
	movl	$3, %ecx
	cmpl	%eax, %ebx
	jl	LBB0_2
## %bb.6:
	movl	24(%r15), %edi
	callq	_grub_be_to_cpu32
	subl	%eax, %ebx
	movl	32(%r15), %edi
	callq	_grub_be_to_cpu32
	movl	$4, %ecx
	cmpl	%eax, %ebx
	jl	LBB0_2
## %bb.7:
	movl	32(%r15), %edi
	callq	_grub_be_to_cpu32
	subl	%eax, %ebx
	movl	40(%r15), %edi
	callq	_grub_be_to_cpu32
	movl	$5, %ecx
	cmpl	%eax, %ebx
	jl	LBB0_2
## %bb.8:
	movl	40(%r15), %edi
	callq	_grub_be_to_cpu32
	subl	%eax, %ebx
	movl	48(%r15), %edi
	callq	_grub_be_to_cpu32
	movl	$6, %ecx
	cmpl	%eax, %ebx
	jl	LBB0_2
## %bb.9:
	movl	48(%r15), %edi
	callq	_grub_be_to_cpu32
	subl	%eax, %ebx
	movl	56(%r15), %edi
	callq	_grub_be_to_cpu32
	movl	$7, %ecx
	cmpl	%eax, %ebx
	jge	LBB0_10
LBB0_2:
	movl	4(%r15,%rcx,8), %edi
	callq	_grub_be_to_cpu32
	addl	%ebx, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	56(%r15), %edi
	callq	_grub_be_to_cpu32
	subl	%eax, %ebx
	movl	%ebx, (%r14)
	movl	$-1, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_grub_hfsplus_find_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_hfsplus_find_block
_grub_hfsplus_find_block:               ; @grub_hfsplus_find_block
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w21, [x1]
	ldr	w0, [x0]
	bl	_grub_be_to_cpu32
	cmp	w21, w0
	b.ge	LBB0_2
; %bb.1:
	mov	x8, #0
	b	LBB0_16
LBB0_2:
	ldr	w0, [x19]
	bl	_grub_be_to_cpu32
	sub	w21, w21, w0
	ldr	w0, [x19, #8]
	bl	_grub_be_to_cpu32
	cmp	w21, w0
	b.ge	LBB0_4
; %bb.3:
	mov	w8, #1
	b	LBB0_16
LBB0_4:
	ldr	w0, [x19, #8]
	bl	_grub_be_to_cpu32
	sub	w21, w21, w0
	ldr	w0, [x19, #16]
	bl	_grub_be_to_cpu32
	cmp	w21, w0
	b.ge	LBB0_6
; %bb.5:
	mov	w8, #2
	b	LBB0_16
LBB0_6:
	ldr	w0, [x19, #16]
	bl	_grub_be_to_cpu32
	sub	w21, w21, w0
	ldr	w0, [x19, #24]
	bl	_grub_be_to_cpu32
	cmp	w21, w0
	b.ge	LBB0_8
; %bb.7:
	mov	w8, #3
	b	LBB0_16
LBB0_8:
	ldr	w0, [x19, #24]
	bl	_grub_be_to_cpu32
	sub	w21, w21, w0
	ldr	w0, [x19, #32]
	bl	_grub_be_to_cpu32
	cmp	w21, w0
	b.ge	LBB0_10
; %bb.9:
	mov	w8, #4
	b	LBB0_16
LBB0_10:
	ldr	w0, [x19, #32]
	bl	_grub_be_to_cpu32
	sub	w21, w21, w0
	ldr	w0, [x19, #40]
	bl	_grub_be_to_cpu32
	cmp	w21, w0
	b.ge	LBB0_12
; %bb.11:
	mov	w8, #5
	b	LBB0_16
LBB0_12:
	ldr	w0, [x19, #40]
	bl	_grub_be_to_cpu32
	sub	w21, w21, w0
	ldr	w0, [x19, #48]
	bl	_grub_be_to_cpu32
	cmp	w21, w0
	b.ge	LBB0_14
; %bb.13:
	mov	w8, #6
	b	LBB0_16
LBB0_14:
	ldr	w0, [x19, #48]
	bl	_grub_be_to_cpu32
	sub	w21, w21, w0
	ldr	w0, [x19, #56]
	bl	_grub_be_to_cpu32
	cmp	w21, w0
	b.ge	LBB0_18
; %bb.15:
	mov	w8, #7
LBB0_16:
	add	x8, x19, x8, lsl #3
	ldr	w0, [x8, #4]
	bl	_grub_be_to_cpu32
	add	w0, w0, w21
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_18:
	ldr	w0, [x19, #56]
	bl	_grub_be_to_cpu32
	sub	w8, w21, w0
	str	w8, [x20]
	mov	w0, #-1
	b	LBB0_17
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_grub_hfsplus_find_block
.subsections_via_symbols
