	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_frame_bufs
_alloc_frame_bufs:                      ## @alloc_frame_bufs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.1:
	movq	(%rdi), %r8
	movq	8(%rdi), %rax
	movq	(%r8), %r8
	movl	%ecx, %r9d
	movq	(%r8), %rdi
	cmpl	$1, %ecx
	jne	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_3:
	movl	%r9d, %r10d
	andl	$-2, %r10d
	xorl	%ecx, %ecx
	movq	_SCABUFSIZE@GOTPCREL(%rip), %r11
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rdi,%rax), %rbx
	movq	%rbx, (%rdx,%rcx,8)
	movq	(%r11), %rbx
	addq	%rdi, %rbx
	movq	%rbx, (%r8)
	movw	%di, (%rsi,%rcx,4)
	shrq	$16, %rdi
	movb	%dil, 2(%rsi,%rcx,4)
	leaq	(%rbx,%rax), %rdi
	movq	%rdi, 8(%rdx,%rcx,8)
	movq	(%r11), %rdi
	addq	%rbx, %rdi
	movq	%rdi, (%r8)
	movw	%bx, 4(%rsi,%rcx,4)
	shrq	$16, %rbx
	movb	%bl, 6(%rsi,%rcx,4)
	addq	$2, %rcx
	cmpq	%rcx, %r10
	jne	LBB0_4
LBB0_5:
	testb	$1, %r9b
	je	LBB0_7
## %bb.6:
	addq	%rdi, %rax
	movq	%rax, (%rdx,%rcx,8)
	movq	_SCABUFSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rdi, %rax
	movq	%rax, (%r8)
	movw	%di, (%rsi,%rcx,4)
	shrq	$16, %rdi
	movb	%dil, 2(%rsi,%rcx,4)
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCABUFSIZE,8,3                 ## @SCABUFSIZE
	.no_dead_strip	_alloc_frame_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_frame_bufs
_alloc_frame_bufs:                      ; @alloc_frame_bufs
	.cfi_startproc
; %bb.0:
	cmp	w3, #1
	b.lt	LBB0_3
; %bb.1:
	ldp	x9, x8, [x0]
	ldr	x9, [x9]
	mov	w10, w3
	ldr	x13, [x9]
	add	x11, x1, #2
Lloh0:
	adrp	x12, _SCABUFSIZE@GOTPAGE
Lloh1:
	ldr	x12, [x12, _SCABUFSIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x14, x13, x8
	str	x14, [x2], #8
	ldr	x14, [x12]
	sturh	w13, [x11, #-2]
	lsr	x15, x13, #16
	add	x13, x14, x13
	str	x13, [x9]
	strb	w15, [x11], #4
	subs	x10, x10, #1
	b.ne	LBB0_2
LBB0_3:
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SCABUFSIZE,8,3                 ; @SCABUFSIZE
	.no_dead_strip	_alloc_frame_bufs
.subsections_via_symbols
