	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_env_hashval
_grub_env_hashval:                      ## @grub_env_hashval
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movb	(%rdi), %cl
	testb	%cl, %cl
	je	LBB0_1
## %bb.2:
	incq	%rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%cl, %ecx
	leal	(%rcx,%rcx,4), %ecx
	addl	%ecx, %eax
	movzbl	(%rdi), %ecx
	incq	%rdi
	testb	%cl, %cl
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
LBB0_4:
	movq	_HASHSZ@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HASHSZ,4,2                     ## @HASHSZ
	.no_dead_strip	_grub_env_hashval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_env_hashval
_grub_env_hashval:                      ; @grub_env_hashval
	.cfi_startproc
; %bb.0:
	ldrb	w10, [x0]
	cbz	w10, LBB0_3
; %bb.1:
	mov	w8, #0
	add	x9, x0, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w11, w10
	add	w10, w11, w10, sxtb #2
	add	w8, w10, w8
	ldrb	w10, [x9], #1
	cbnz	w10, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w8, #0
LBB0_4:
Lloh0:
	adrp	x9, _HASHSZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HASHSZ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	udiv	w10, w8, w9
	msub	w0, w10, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HASHSZ,4,2                     ; @HASHSZ
	.no_dead_strip	_grub_env_hashval
.subsections_via_symbols
