	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s2255_create_sys_buffers
_s2255_create_sys_buffers:              ## @s2255_create_sys_buffers
	.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	%rdi, %r14
	movq	_SYS_FRAMES@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, 16(%rdi)
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	_SYS_FRAMES_MAXSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_vmalloc
	movq	24(%r14), %rcx
	movq	%rax, 24(%rcx,%rbx)
	movq	%r12, (%rcx,%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	(%r15), %rax
	addq	$32, %rbx
	cmpq	%rax, %r13
	jb	LBB0_2
## %bb.5:
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	%r13, 16(%r14)
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_8
LBB0_6:
	movq	24(%r14), %rax
	addq	$8, %rax
	xorl	%ecx, %ecx
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rcx
	movups	%xmm0, (%rax)
	addq	$32, %rax
	cmpq	(%r15), %rcx
	jb	LBB0_7
LBB0_8:
	movq	$0, 8(%r14)
	movl	$-1, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_FRAMES,8,3                 ## @SYS_FRAMES
	.comm	_SYS_FRAMES_MAXSIZE,8,3         ## @SYS_FRAMES_MAXSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory.  using less frames\n"

	.no_dead_strip	_s2255_create_sys_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s2255_create_sys_buffers
_s2255_create_sys_buffers:              ; @s2255_create_sys_buffers
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _SYS_FRAMES@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SYS_FRAMES@GOTPAGEOFF]
	ldr	x8, [x21]
	str	x8, [x0, #16]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x23, #0
	mov	x22, #0
Lloh2:
	adrp	x8, _SYS_FRAMES_MAXSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SYS_FRAMES_MAXSIZE@GOTPAGEOFF]
Lloh4:
	ldr	x20, [x8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_vmalloc
	ldr	x8, [x19, #24]
	add	x8, x8, x23
	str	x0, [x8, #24]
	str	x20, [x8]
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldr	x8, [x21]
	add	x23, x23, #32
	cmp	x22, x8
	b.lo	LBB0_2
; %bb.4:
	cbnz	x8, LBB0_6
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	str	x22, [x19, #16]
	ldr	x8, [x21]
	cbz	x8, LBB0_8
LBB0_6:
	mov	x8, #0
	ldr	x9, [x19, #24]
	add	x9, x9, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, #1
	stp	xzr, xzr, [x9], #32
	ldr	x10, [x21]
	cmp	x8, x10
	b.lo	LBB0_7
LBB0_8:
	str	xzr, [x19, #8]
	mov	w8, #-1
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_FRAMES,8,3                 ; @SYS_FRAMES
	.comm	_SYS_FRAMES_MAXSIZE,8,3         ; @SYS_FRAMES_MAXSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory.  using less frames\n"

	.no_dead_strip	_s2255_create_sys_buffers
.subsections_via_symbols
