	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function entropy_gather_internal
_entropy_gather_internal:               ## @entropy_gather_internal
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MBEDTLS_ENTROPY_MAX_GATHER@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	je	LBB0_13
## %bb.1:
	jle	LBB0_9
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	(%rax,%r13), %rcx
	movq	_MBEDTLS_ENTROPY_SOURCE_STRONG@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movl	$1, %ecx
	cmovel	%ecx, %r15d
	movq	$0, -56(%rbp)
	movl	24(%rax,%r13), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	leaq	-56(%rbp), %rcx
	callq	*8(%rax,%r13)
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%r14b, %esi
	movq	%rbx, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_entropy_update
	movq	-56(%rbp), %rax
	movq	8(%rbx), %rcx
	addq	%rax, 16(%rcx,%r13)
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	(%rbx), %rax
	cmpq	%rax, %r14
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MBEDTLS_ENTROPY_MAX_GATHER@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	addq	$32, %r13
	jmp	LBB0_3
LBB0_13:
	movq	_MBEDTLS_ERR_ENTROPY_NO_SOURCES_DEFINED@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	jne	LBB0_11
LBB0_9:
	movq	_MBEDTLS_ERR_ENTROPY_NO_STRONG_SOURCE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ENTROPY_MAX_GATHER,4,2 ## @MBEDTLS_ENTROPY_MAX_GATHER
	.comm	_MBEDTLS_ERR_ENTROPY_NO_SOURCES_DEFINED,4,2 ## @MBEDTLS_ERR_ENTROPY_NO_SOURCES_DEFINED
	.comm	_MBEDTLS_ENTROPY_SOURCE_STRONG,8,3 ## @MBEDTLS_ENTROPY_SOURCE_STRONG
	.comm	_MBEDTLS_ERR_ENTROPY_NO_STRONG_SOURCE,4,2 ## @MBEDTLS_ERR_ENTROPY_NO_STRONG_SOURCE
	.no_dead_strip	_entropy_gather_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function entropy_gather_internal
_entropy_gather_internal:               ; @entropy_gather_internal
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x21, _MBEDTLS_ENTROPY_MAX_GATHER@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MBEDTLS_ENTROPY_MAX_GATHER@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x9, x2
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	ldr	w8, [x0]
	cbz	w8, LBB0_8
; %bb.1:
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x23, #0
	mov	x24, #0
	mov	w22, #0
Lloh7:
	adrp	x25, _MBEDTLS_ENTROPY_SOURCE_STRONG@GOTPAGE
Lloh8:
	ldr	x25, [x25, _MBEDTLS_ENTROPY_SOURCE_STRONG@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x23
	ldr	x9, [x8]
	ldr	x10, [x25]
	cmp	x9, x10
	csinc	w22, w22, wzr, ne
	stur	xzr, [x29, #-80]
	ldr	x9, [x8, #8]
	ldr	w0, [x8, #24]
	sub	x3, x29, #80
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	blr	x9
	cbnz	w0, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x3, [x29, #-80]
	cbz	x3, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w1, w24, #0xff
	mov	x0, x19
	mov	x2, x20
	bl	_entropy_update
	ldur	x8, [x29, #-80]
	ldr	x9, [x19, #8]
	add	x9, x9, x23
	ldr	x10, [x9, #16]
	add	x8, x10, x8
	str	x8, [x9, #16]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19]
	cmp	x24, x8
	b.ge	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x21]
	add	x23, x23, #32
	b	LBB0_3
LBB0_8:
Lloh9:
	adrp	x8, _MBEDTLS_ERR_ENTROPY_NO_SOURCES_DEFINED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MBEDTLS_ERR_ENTROPY_NO_SOURCES_DEFINED@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	cbz	w22, LBB0_11
; %bb.10:
	mov	w0, #0
	b	LBB0_13
LBB0_11:
Lloh11:
	adrp	x8, _MBEDTLS_ERR_ENTROPY_NO_STRONG_SOURCE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MBEDTLS_ERR_ENTROPY_NO_STRONG_SOURCE@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ENTROPY_MAX_GATHER,4,2 ; @MBEDTLS_ENTROPY_MAX_GATHER
	.comm	_MBEDTLS_ERR_ENTROPY_NO_SOURCES_DEFINED,4,2 ; @MBEDTLS_ERR_ENTROPY_NO_SOURCES_DEFINED
	.comm	_MBEDTLS_ENTROPY_SOURCE_STRONG,8,3 ; @MBEDTLS_ENTROPY_SOURCE_STRONG
	.comm	_MBEDTLS_ERR_ENTROPY_NO_STRONG_SOURCE,4,2 ; @MBEDTLS_ERR_ENTROPY_NO_STRONG_SOURCE
	.no_dead_strip	_entropy_gather_internal
.subsections_via_symbols
