	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_entropy_createsamplesource ## -- Begin function isc_entropy_createsamplesource
	.p2align	4, 0x90
_isc_entropy_createsamplesource:        ## @isc_entropy_createsamplesource
	.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, %r14
	movq	%rdi, %r15
	callq	_VALID_ENTROPY
	movl	%eax, %edi
	callq	_REQUIRE
	xorl	%edi, %edi
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%r14)
	sete	%dil
LBB0_2:
	callq	_REQUIRE
	movq	%r15, %rdi
	callq	_LOCK
	movl	4(%r15), %edi
	movl	$40, %esi
	callq	_isc_mem_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rsi
	addq	$32, %rsi
	movq	%r15, %rdi
	callq	_samplesource_allocate
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_6
## %bb.5:
	movq	_SOURCE_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_ENTROPY_SOURCETYPE_SAMPLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r15, 16(%rbx)
	movq	$0, 8(%rbx)
	movl	(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_link@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_ISC_LINK_INIT
	movl	12(%r15), %edi
	movl	(%r12), %edx
	movq	%rbx, %rsi
	callq	_ISC_LIST_APPEND
	incl	8(%r15)
	movq	%rbx, (%r14)
	movq	%r15, %rdi
	callq	_UNLOCK
	movq	(%r13), %r12
	jmp	LBB0_8
LBB0_3:
	movq	_ISC_R_NOMEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_7
LBB0_6:
	movq	%rax, %r12
	movl	4(%r15), %edi
	movq	%rbx, %rsi
	movl	$40, %edx
	callq	_isc_mem_put
LBB0_7:
	movq	%r15, %rdi
	callq	_UNLOCK
LBB0_8:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_R_NOMEMORY,8,3             ## @ISC_R_NOMEMORY
	.comm	_ISC_R_SUCCESS,8,3              ## @ISC_R_SUCCESS
	.comm	_SOURCE_MAGIC,4,2               ## @SOURCE_MAGIC
	.comm	_ENTROPY_SOURCETYPE_SAMPLE,4,2  ## @ENTROPY_SOURCETYPE_SAMPLE
	.comm	_link,4,2                       ## @link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_entropy_createsamplesource ; -- Begin function isc_entropy_createsamplesource
	.p2align	2
_isc_entropy_createsamplesource:        ; @isc_entropy_createsamplesource
	.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	x20, x1
	mov	x19, x0
	bl	_VALID_ENTROPY
	bl	_REQUIRE
	cbz	x20, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_REQUIRE
	mov	x0, x19
	bl	_LOCK
	ldr	w0, [x19, #4]
	mov	w1, #40
	bl	_isc_mem_get
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, x0
	add	x1, x0, #32
	mov	x0, x19
	bl	_samplesource_allocate
Lloh0:
	adrp	x23, _ISC_R_SUCCESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ISC_R_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
Lloh2:
	adrp	x8, _SOURCE_MAGIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOURCE_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ENTROPY_SOURCETYPE_SAMPLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ENTROPY_SOURCETYPE_SAMPLE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #24]
	stp	xzr, x19, [x21, #8]
	ldr	w0, [x21]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh8:
	adrp	x22, _link@GOTPAGE
Lloh9:
	ldr	x22, [x22, _link@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_ISC_LINK_INIT
	ldr	w0, [x19, #12]
	ldr	w2, [x22]
	mov	x1, x21
	bl	_ISC_LIST_APPEND
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	str	x21, [x20]
	mov	x0, x19
	bl	_UNLOCK
	ldr	x22, [x23]
	b	LBB0_9
LBB0_6:
Lloh10:
	adrp	x8, _ISC_R_NOMEMORY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ISC_R_NOMEMORY@GOTPAGEOFF]
Lloh12:
	ldr	x22, [x8]
	b	LBB0_8
LBB0_7:
	mov	x22, x0
	ldr	w0, [x19, #4]
	mov	x1, x21
	mov	w2, #40
	bl	_isc_mem_put
LBB0_8:
	mov	x0, x19
	bl	_UNLOCK
LBB0_9:
	mov	x0, x22
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_R_NOMEMORY,8,3             ; @ISC_R_NOMEMORY
	.comm	_ISC_R_SUCCESS,8,3              ; @ISC_R_SUCCESS
	.comm	_SOURCE_MAGIC,4,2               ; @SOURCE_MAGIC
	.comm	_ENTROPY_SOURCETYPE_SAMPLE,4,2  ; @ENTROPY_SOURCETYPE_SAMPLE
	.comm	_link,4,2                       ; @link
.subsections_via_symbols
