	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_fshelp_log2blksize        ## -- Begin function grub_fshelp_log2blksize
	.p2align	4, 0x90
_grub_fshelp_log2blksize:               ## @grub_fshelp_log2blksize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	cmpl	$2, %edi
	jb	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %dil
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edi, %ecx
	shrl	%ecx
	incl	%eax
	cmpl	$3, %edi
	movl	%ecx, %edi
	ja	LBB0_2
LBB0_4:
	movl	%eax, (%rsi)
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, (%rsi)
	movq	_GRUB_ERR_BAD_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbp
	jmp	_grub_error                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_ERR_BAD_NUMBER,4,2        ## @GRUB_ERR_BAD_NUMBER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"the blocksize is not a power of two"

	.comm	_GRUB_ERR_NONE,4,2              ## @GRUB_ERR_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_fshelp_log2blksize        ; -- Begin function grub_fshelp_log2blksize
	.p2align	2
_grub_fshelp_log2blksize:               ; @grub_fshelp_log2blksize
	.cfi_startproc
; %bb.0:
	cmp	w0, #2
	b.lo	LBB0_4
; %bb.1:
	mov	w8, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	tbnz	w0, #0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	w9, w0, #1
	add	w8, w8, #1
	cmp	w0, #3
	mov	x0, x9
	b.hi	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w8, #0
LBB0_5:
	str	w8, [x1]
Lloh0:
	adrp	x8, _GRUB_ERR_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRUB_ERR_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
LBB0_6:
Lloh3:
	adrp	x9, _GRUB_ERR_BAD_NUMBER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GRUB_ERR_BAD_NUMBER@GOTPAGEOFF]
	str	w8, [x1]
Lloh5:
	ldr	w0, [x9]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	_grub_error
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_ERR_BAD_NUMBER,4,2        ; @GRUB_ERR_BAD_NUMBER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"the blocksize is not a power of two"

	.comm	_GRUB_ERR_NONE,4,2              ; @GRUB_ERR_NONE
.subsections_via_symbols
