	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scsp_alloc_bufs
_scsp_alloc_bufs:                       ## @scsp_alloc_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_scspchannel@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_free
	movq	(%rbx), %rax
LBB0_2:
	movq	$0, (%rax)
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_free
	movq	(%rbx), %rax
LBB0_4:
	movq	$0, 8(%rax)
	movq	_scspsoundbufsize@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	$4, %esi
	callq	_calloc
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.6:
	movl	(%r14), %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, %rcx
	movq	(%rbx), %rax
	movq	%rcx, 8(%rax)
	xorl	%eax, %eax
	cmpq	$1, %rcx
	sbbl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movl	$-1, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scspchannel,8,3                ## @scspchannel
	.comm	_scspsoundbufsize,4,2           ## @scspsoundbufsize
	.no_dead_strip	_scsp_alloc_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scsp_alloc_bufs
_scsp_alloc_bufs:                       ; @scsp_alloc_bufs
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _scspchannel@GOTPAGE
Lloh1:
	ldr	x19, [x19, _scspchannel@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_free
	ldr	x8, [x19]
LBB0_2:
	str	xzr, [x8]
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_free
	ldr	x8, [x19]
LBB0_4:
	str	xzr, [x8, #8]
Lloh2:
	adrp	x20, _scspsoundbufsize@GOTPAGE
Lloh3:
	ldr	x20, [x20, _scspsoundbufsize@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #4
	bl	_calloc
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x20]
	mov	w1, #4
	bl	_calloc
	ldr	x8, [x19]
	str	x0, [x8, #8]
	cmp	x0, #0
	csetm	w0, eq
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_scspchannel,8,3                ; @scspchannel
	.comm	_scspsoundbufsize,4,2           ; @scspsoundbufsize
	.no_dead_strip	_scsp_alloc_bufs
.subsections_via_symbols
