	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function newchunk
_newchunk:                              ## @newchunk
	.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
	movq	%rsi, %r15
	addq	$7, %r15
	andq	$-8, %r15
	movq	(%rdi), %r12
	movq	8(%rdi), %rax
	movq	%r12, %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %r13
	movq	(%rax,%rcx), %rbx
	cmpq	%rbx, %r15
	jbe	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	addq	$16, %r13
	incq	%r12
	movq	%r12, (%rdi)
	movq	_NCHUNKS@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jg	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_bpf_error
LBB0_3:
	movq	_CHUNK0SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	movslq	%eax, %rbx
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_bpf_error
	movq	8(%r13), %rax
LBB0_5:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_memset
	movq	%rbx, (%r13)
	cmpq	%rbx, %r15
	jbe	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_bpf_error
	movq	(%r13), %rbx
LBB0_7:
	subq	%r15, %rbx
	movq	%rbx, (%r13)
	addq	8(%r13), %rbx
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NCHUNKS,4,2                    ## @NCHUNKS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.comm	_CHUNK0SIZE,4,2                 ## @CHUNK0SIZE
	.no_dead_strip	_newchunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function newchunk
_newchunk:                              ; @newchunk
	.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
	add	x8, x1, #7
	and	x21, x8, #0xfffffffffffffff8
	ldp	x8, x9, [x0]
	add	x22, x9, x8, lsl #4
	ldr	x20, [x22]
	cmp	x21, x20
	b.ls	LBB0_7
; %bb.1:
	mov	x19, x0
	add	x22, x22, #16
	add	x20, x8, #1
	str	x20, [x0]
Lloh0:
	adrp	x8, _NCHUNKS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NCHUNKS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.gt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_bpf_error
LBB0_3:
Lloh5:
	adrp	x8, _CHUNK0SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CHUNK0SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	lsl	w8, w8, w20
	sxtw	x20, w8
	mov	x0, x20
	bl	_malloc
	str	x0, [x22, #8]
	cbnz	x0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_bpf_error
	ldr	x0, [x22, #8]
LBB0_5:
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	str	x20, [x22]
	cmp	x21, x20
	b.ls	LBB0_7
; %bb.6:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_bpf_error
	ldr	x20, [x22]
LBB0_7:
	ldr	x8, [x22, #8]
	sub	x9, x20, x21
	add	x0, x8, x9
	str	x9, [x22]
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NCHUNKS,4,2                    ; @NCHUNKS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

	.comm	_CHUNK0SIZE,4,2                 ; @CHUNK0SIZE
	.no_dead_strip	_newchunk
.subsections_via_symbols
