	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function samplesource_allocate
_samplesource_allocate:                 ## @samplesource_allocate
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_RND_EVENTQSIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	shll	$2, %esi
	callq	_isc_mem_get
	movq	%rax, 8(%r14)
	movq	_ISC_R_NOMEMORY@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	(%rbx), %edi
	movl	(%r12), %esi
	shll	$2, %esi
	callq	_isc_mem_get
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	$0, (%r14)
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %r15
	jmp	LBB0_4
LBB0_2:
	movl	(%rbx), %edi
	movq	8(%r14), %rsi
	movl	(%r12), %edx
	shll	$2, %edx
	callq	_isc_mem_put
	movq	$0, 8(%r14)
LBB0_4:
	movl	(%r15), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RND_EVENTQSIZE,4,2             ## @RND_EVENTQSIZE
	.comm	_ISC_R_NOMEMORY,4,2             ## @ISC_R_NOMEMORY
	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
	.no_dead_strip	_samplesource_allocate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function samplesource_allocate
_samplesource_allocate:                 ; @samplesource_allocate
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x21, _RND_EVENTQSIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RND_EVENTQSIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w1, w8, #2
	bl	_isc_mem_get
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x20]
	ldr	w8, [x21]
	lsl	w1, w8, #2
	bl	_isc_mem_get
	str	x0, [x19, #16]
	cbz	x0, LBB0_3
; %bb.2:
	str	xzr, [x19]
Lloh2:
	adrp	x8, _ISC_R_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISC_R_SUCCESS@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	w0, [x20]
	ldr	x1, [x19, #8]
	ldr	w8, [x21]
	lsl	w2, w8, #2
	bl	_isc_mem_put
	str	xzr, [x19, #8]
LBB0_4:
Lloh4:
	adrp	x8, _ISC_R_NOMEMORY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ISC_R_NOMEMORY@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RND_EVENTQSIZE,4,2             ; @RND_EVENTQSIZE
	.comm	_ISC_R_NOMEMORY,4,2             ; @ISC_R_NOMEMORY
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
	.no_dead_strip	_samplesource_allocate
.subsections_via_symbols
