	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_mm_init_region            ## -- Begin function grub_mm_init_region
	.p2align	4, 0x90
_grub_mm_init_region:                   ## @grub_mm_init_region
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_GRUB_MM_ALIGN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_ALIGN_UP
	subl	%eax, %ebx
	leal	(%r14,%rbx), %edx
	addl	$-32, %edx
	movslq	(%r15), %rsi
	cmpl	%esi, %edx
	jl	LBB0_9
## %bb.1:
	movq	%rax, %rdi
	addq	%rsi, %rdi
	movq	%rdi, 8(%rax,%rsi)
	movq	_GRUB_MM_FREE_MAGIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax,%rsi)
	movq	_GRUB_MM_ALIGN_LOG2@GOTPCREL(%rip), %rbx
	movb	(%rbx), %cl
	sarl	%cl, %edx
	movl	%edx, (%rax,%rsi)
	movq	%rdi, 24(%rax)
	movq	%rdi, (%rax)
	movb	(%rbx), %cl
	shll	%cl, %edx
	movl	%edx, 8(%rax)
	movq	_base@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	cmpl	%edx, 8(%rcx)
	jg	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rsi
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%edx, 8(%rcx)
	jle	LBB0_5
	jmp	LBB0_7
LBB0_2:
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_6:
	xorl	%ecx, %ecx
LBB0_7:
	addq	$16, %rsi
LBB0_8:
	movq	%rax, (%rsi)
	movq	%rcx, 16(%rax)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_MM_ALIGN,4,2              ## @GRUB_MM_ALIGN
	.comm	_GRUB_MM_FREE_MAGIC,4,2         ## @GRUB_MM_FREE_MAGIC
	.comm	_GRUB_MM_ALIGN_LOG2,4,2         ## @GRUB_MM_ALIGN_LOG2
	.comm	_base,8,3                       ## @base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_mm_init_region            ; -- Begin function grub_mm_init_region
	.p2align	2
_grub_mm_init_region:                   ; @grub_mm_init_region
	.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
Lloh0:
	adrp	x21, _GRUB_MM_ALIGN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GRUB_MM_ALIGN@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_ALIGN_UP
	sub	w8, w20, w0
	add	w8, w19, w8
	sub	w8, w8, #32
	ldrsw	x9, [x21]
	cmp	w8, w9
	b.lt	LBB0_8
; %bb.1:
	add	x9, x0, x9
	str	x9, [x9, #8]
Lloh2:
	adrp	x10, _GRUB_MM_FREE_MAGIC@GOTPAGE
Lloh3:
	ldr	x10, [x10, _GRUB_MM_FREE_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
Lloh5:
	adrp	x11, _GRUB_MM_ALIGN_LOG2@GOTPAGE
Lloh6:
	ldr	x11, [x11, _GRUB_MM_ALIGN_LOG2@GOTPAGEOFF]
	str	w10, [x9, #4]
	ldr	w10, [x11]
	asr	w8, w8, w10
	str	w8, [x9]
	str	x9, [x0, #24]
	str	x9, [x0]
	ldr	w9, [x11]
	lsl	w9, w8, w9
	str	w9, [x0, #8]
Lloh7:
	adrp	x10, _base@GOTPAGE
Lloh8:
	ldr	x10, [x10, _base@GOTPAGEOFF]
	ldr	x8, [x10]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	w10, [x8, #8]
	cmp	w10, w9
	b.le	LBB0_4
; %bb.3:
Lloh9:
	adrp	x10, _base@GOTPAGE
Lloh10:
	ldr	x10, [x10, _base@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x8
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x8, #8]
	cmp	w11, w9
	b.le	LBB0_4
LBB0_6:
	add	x10, x10, #16
LBB0_7:
	str	x0, [x10]
	str	x8, [x0, #16]
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_MM_ALIGN,4,2              ; @GRUB_MM_ALIGN
	.comm	_GRUB_MM_FREE_MAGIC,4,2         ; @GRUB_MM_FREE_MAGIC
	.comm	_GRUB_MM_ALIGN_LOG2,4,2         ; @GRUB_MM_ALIGN_LOG2
	.comm	_base,8,3                       ; @base
.subsections_via_symbols
