	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_page
_alloc_page:                            ## @alloc_page
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	callq	_OBJECTS_PER_PAGE
	movq	%rax, %r13
	leaq	1(%rax), %rdi
	callq	_BITMAP_SIZE
	movq	%rax, %r14
	addq	$-4, %r14
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_OBJECT_SIZE
	movq	%rax, %r15
	imulq	%r13, %r15
	movq	_G@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	48(%rcx), %rbx
	cmpq	%rax, %r15
	cmovbeq	%rax, %r15
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	cmpq	%r15, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_G@GOTPCREL(%rip), %rax
	addq	$48, %rax
	jmp	LBB0_8
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_4:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rax
	movq	64(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%r15, (%rbx)
	jne	LBB0_6
## %bb.7:
	addq	$64, %rax
LBB0_8:
	movq	64(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	8(%rbx), %r12
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 16(%rbx)
	jne	LBB0_9
## %bb.17:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_memset
	jmp	LBB0_11
LBB0_9:
	movq	%rbx, %rdi
	callq	_free
LBB0_10:
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_xcalloc
	movq	%rax, %rbx
LBB0_11:
	movq	_G@GOTPCREL(%rip), %r14
	movq	%r15, (%rbx)
	movq	%r12, 8(%rbx)
	movq	24(%r14), %rcx
	movq	%rcx, 24(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rbx)
	movq	%r13, 32(%rbx)
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	movl	$1, 40(%rbx)
	orq	%rax, 32(%r14)
	movq	_HOST_BITS_PER_LONG@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r13, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_12
## %bb.13:
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rcx
	jmp	LBB0_14
LBB0_12:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_14:
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rdx
	movq	48(%rbx), %rcx
	movq	%rdx, (%rcx,%rax,8)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_set_page_table_entry
	movq	_GGC_DEBUG_LEVEL@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_16
## %bb.15:
	movl	40(%r14), %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_OBJECT_SIZE
	leaq	(%r12,%r15), %r9
	decq	%r9
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	movq	%r12, %r8
	callq	_fprintf
LBB0_16:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_G,64,3                         ## @G
	.comm	_HOST_BITS_PER_LONG,8,3         ## @HOST_BITS_PER_LONG
	.comm	_GGC_DEBUG_LEVEL,4,2            ## @GGC_DEBUG_LEVEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Allocating page at %p, object size=%lu, data %p-%p\n"

	.comm	_GGC_QUIRE_SIZE,4,2             ## @GGC_QUIRE_SIZE
	.no_dead_strip	_alloc_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_page
_alloc_page:                            ; @alloc_page
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_OBJECTS_PER_PAGE
	mov	x20, x0
	add	x0, x0, #1
	bl	_BITMAP_SIZE
	sub	x23, x0, #4
	mov	x0, x19
	bl	_OBJECT_SIZE
	mul	x8, x0, x20
Lloh0:
	adrp	x25, _G@GOTPAGE
Lloh1:
	ldr	x25, [x25, _G@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	csel	x24, x8, x9, hi
	ldr	x21, [x25, #48]
	cbz	x21, LBB0_8
; %bb.1:
	ldr	x8, [x21]
	cmp	x8, x24
	b.ne	LBB0_3
; %bb.2:
	add	x8, x25, #48
	b	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x21
	ldr	x21, [x21, #64]
	cbz	x21, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x21]
	cmp	x9, x24
	b.ne	LBB0_3
; %bb.5:
	add	x8, x8, #64
LBB0_6:
	ldr	x9, [x21, #64]
	str	x9, [x8]
	ldr	x22, [x21, #8]
	ldr	w8, [x21, #16]
	cmp	w8, w19
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x21
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	b	LBB0_11
LBB0_8:
	mov	x22, #0
	b	LBB0_10
LBB0_9:
	mov	x0, x21
	bl	_free
LBB0_10:
	mov	w0, #1
	mov	x1, x23
	bl	_xcalloc
	mov	x21, x0
LBB0_11:
	stp	x24, x22, [x21]
	str	w19, [x21, #16]
	ldp	x8, x9, [x25, #24]
	stp	x8, x20, [x21, #24]
	mov	w10, #1
	str	w10, [x21, #40]
	lsl	x8, x10, x8
	orr	x8, x9, x8
	str	x8, [x25, #32]
Lloh2:
	adrp	x8, _HOST_BITS_PER_LONG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HOST_BITS_PER_LONG@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	udiv	x9, x20, x8
	msub	x8, x9, x8, x20
	lsl	x8, x10, x8
	ldr	x10, [x21, #48]
	str	x8, [x10, x9, lsl #3]
	mov	x0, x22
	mov	x1, x21
	bl	_set_page_table_entry
Lloh5:
	adrp	x8, _GGC_DEBUG_LEVEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GGC_DEBUG_LEVEL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_13
; %bb.12:
	ldr	w20, [x25, #40]
	mov	x0, x19
	bl	_OBJECT_SIZE
	mov	x3, x0
	add	x8, x22, x24
	sub	x5, x8, #1
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	mov	x4, x22
	bl	_fprintf
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_G,64,3                         ; @G
	.comm	_HOST_BITS_PER_LONG,8,3         ; @HOST_BITS_PER_LONG
	.comm	_GGC_DEBUG_LEVEL,4,2            ; @GGC_DEBUG_LEVEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Allocating page at %p, object size=%lu, data %p-%p\n"

	.comm	_GGC_QUIRE_SIZE,4,2             ; @GGC_QUIRE_SIZE
	.no_dead_strip	_alloc_page
.subsections_via_symbols
