	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_hfs_cmp_catkeys
_grub_hfs_cmp_catkeys:                  ## @grub_hfs_cmp_catkeys
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %r12d
	movl	(%rdi), %eax
	movl	16(%rdi), %edi
	cmpl	%r12d, %eax
	cmovll	%eax, %r12d
	callq	_grub_be_to_cpu32
	movl	%eax, %ebx
	movl	16(%r14), %edi
	callq	_grub_be_to_cpu32
	subl	%eax, %ebx
	jne	LBB0_6
## %bb.1:
	testl	%r12d, %r12d
	jle	LBB0_5
## %bb.2:
	movq	8(%r15), %r8
	movq	8(%r14), %rcx
	movl	%r12d, %edx
	xorl	%esi, %esi
	leaq	_grub_hfs_cmp_catkeys.hfs_charorder(%rip), %rdi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8,%rsi,8), %rbx
	movzbl	(%rbx,%rdi), %ebx
	movq	(%rcx,%rsi,8), %rax
	movzbl	(%rax,%rdi), %eax
	subl	%eax, %ebx
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_4
LBB0_5:
	movl	(%r15), %ebx
	subl	(%r14), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @grub_hfs_cmp_catkeys.hfs_charorder
_grub_hfs_cmp_catkeys.hfs_charorder:
	.ascii	"\000\001\002\003\004\005\006\007\b\t\n\013\f\r\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037 !\"'()*+./0123456789:;<=>?@ABCDEFGQRTUZ[\\]bcdefhqrstvw|}~\177\201\202\203\204\205\206MGQRTUZ[\\]bcdefhqrstvw|}~\177\201\207\210\211\212\213IKSVgixNHOIJKSVWXY^_`agmnoijyz{x\214\215\216\217\220\221\222u\223\224\225\226\227\230Lk\231\232\233\234\235\236\237\240\241\242\243Pp\244Lk\245\246\247\250\251\252\253%&\254 HJjll\255\256#$,-\257\260\200\261\262\263\264\265\266\267\270\271\272\273\274\275\276\277\300\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325\326\327"

	.no_dead_strip	_grub_hfs_cmp_catkeys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_hfs_cmp_catkeys
_grub_hfs_cmp_catkeys:                  ; @grub_hfs_cmp_catkeys
	.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	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	ldr	w9, [x1]
	cmp	w8, w9
	csel	w22, w8, w9, lt
	ldr	w0, [x0, #16]
	bl	_grub_be_to_cpu32
	mov	x21, x0
	ldr	w0, [x19, #16]
	bl	_grub_be_to_cpu32
	subs	w0, w21, w0
	b.ne	LBB0_6
; %bb.1:
	cmp	w22, #1
	b.lt	LBB0_5
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #8]
Lloh0:
	adrp	x10, _grub_hfs_cmp_catkeys.hfs_charorder@PAGE
Lloh1:
	add	x10, x10, _grub_hfs_cmp_catkeys.hfs_charorder@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8]
	ldrb	w11, [x10, x11]
	ldr	x12, [x9]
	ldrb	w12, [x10, x12]
	subs	w0, w11, w12
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #8
	add	x8, x8, #8
	subs	x22, x22, #1
	b.ne	LBB0_3
LBB0_5:
	ldr	w8, [x20]
	ldr	w9, [x19]
	sub	w0, w8, w9
LBB0_6:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_grub_hfs_cmp_catkeys.hfs_charorder:    ; @grub_hfs_cmp_catkeys.hfs_charorder
	.ascii	"\000\001\002\003\004\005\006\007\b\t\n\013\f\r\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037 !\"'()*+./0123456789:;<=>?@ABCDEFGQRTUZ[\\]bcdefhqrstvw|}~\177\201\202\203\204\205\206MGQRTUZ[\\]bcdefhqrstvw|}~\177\201\207\210\211\212\213IKSVgixNHOIJKSVWXY^_`agmnoijyz{x\214\215\216\217\220\221\222u\223\224\225\226\227\230Lk\231\232\233\234\235\236\237\240\241\242\243Pp\244Lk\245\246\247\250\251\252\253%&\254 HJjll\255\256#$,-\257\260\200\261\262\263\264\265\266\267\270\271\272\273\274\275\276\277\300\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325\326\327"

	.no_dead_strip	_grub_hfs_cmp_catkeys
.subsections_via_symbols
