	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compact_palloc0
_compact_palloc0:                       ## @compact_palloc0
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%edi, %edi
	cmpq	$0, 16(%r15)
	setne	%dil
	callq	_Assert
	movq	_COMPACT_MAX_REQ@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jae	LBB0_1
## %bb.5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_palloc0                        ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	callq	_MAXALIGN
	movq	%rax, %r14
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	jbe	LBB0_2
## %bb.3:
	movq	_COMPACT_ALLOC_CHUNK@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_palloc0
	movq	(%rbx), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	8(%r15), %rax
LBB0_4:
	leaq	(%rax,%r14), %rdx
	movq	%rdx, 8(%r15)
	subq	%r14, %rcx
	movq	%rcx, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMPACT_MAX_REQ,8,3            ## @COMPACT_MAX_REQ
	.comm	_COMPACT_ALLOC_CHUNK,8,3        ## @COMPACT_ALLOC_CHUNK
	.no_dead_strip	_compact_palloc0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compact_palloc0
_compact_palloc0:                       ; @compact_palloc0
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
Lloh0:
	adrp	x8, _COMPACT_MAX_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMPACT_MAX_REQ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	x0, x20
	cmp	x8, x20
	b.hs	LBB0_2
; %bb.1:
	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
	b	_palloc0
LBB0_2:
	bl	_MAXALIGN
	mov	x20, x0
	ldr	x8, [x19]
	cmp	x0, x8
	b.ls	LBB0_4
; %bb.3:
Lloh3:
	adrp	x21, _COMPACT_ALLOC_CHUNK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _COMPACT_ALLOC_CHUNK@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_palloc0
	ldr	x8, [x21]
	b	LBB0_5
LBB0_4:
	ldr	x0, [x19, #8]
LBB0_5:
	add	x9, x0, x20
	sub	x8, x8, x20
	stp	x8, x9, [x19]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_COMPACT_MAX_REQ,8,3            ; @COMPACT_MAX_REQ
	.comm	_COMPACT_ALLOC_CHUNK,8,3        ; @COMPACT_ALLOC_CHUNK
	.no_dead_strip	_compact_palloc0
.subsections_via_symbols
