	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_crngt
_test_crngt:                            ## @test_crngt
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_drgb_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_crngt_num_cases@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_OPENSSL_CTX_new
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movl	%r12d, %eax
	cltd
	idivl	%r14d
	cltq
	movl	(%rbx,%rax,8), %edx
	movl	4(%rbx,%rax,8), %esi
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_RAND_DRBG_new_ex
	movl	%r12d, -164(%rbp)               ## 4-byte Spill
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movl	(%r12), %eax
	movq	_CRNGT_BUFSIZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	decl	%eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	movl	-164(%rbp), %eax                ## 4-byte Reload
	cltd
	movq	_crngt_num_cases@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movslq	%edx, %rax
	movq	_crngt_case@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	movq	_crngt_idx@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_crngt_entropy_cb@GOTPCREL(%rip), %rax
	movq	_crngt_get_entropy@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_rand_crngt_get_entropy@GOTPCREL(%rip), %rsi
	movq	_rand_crngt_cleanup_entropy@GOTPCREL(%rip), %rdx
	movq	_rand_drbg_get_nonce@GOTPCREL(%rip), %rcx
	movq	_rand_drbg_cleanup_nonce@GOTPCREL(%rip), %r8
	movq	%r12, %rdi
	callq	_RAND_DRBG_set_callbacks
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	movslq	%ebx, %rdx
	movq	(%r13), %rax
	testq	%rax, %rax
	sete	%cl
	movq	%rdx, -176(%rbp)                ## 8-byte Spill
	cmpq	%rdx, %rax
	seta	%r14b
	orb	%cl, %r14b
	movzbl	%r14b, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_RAND_DRBG_instantiate
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movq	%r13, %rbx
	movl	$1, %r13d
	testb	%r14b, %r14b
	je	LBB0_10
## %bb.5:
	leaq	-160(%rbp), %rsi
	movq	%r12, %rdi
	movl	$100, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_RAND_DRBG_generate
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movq	(%rbx), %rax
	testq	%rax, %rax
	sete	%cl
	movq	-176(%rbp), %rdx                ## 8-byte Reload
	addq	%rdx, %rdx
	cmpq	%rdx, %rax
	seta	%bl
	orb	%cl, %bl
	movzbl	%bl, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_RAND_DRBG_reseed
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	testb	%bl, %bl
	je	LBB0_10
## %bb.8:
	leaq	-160(%rbp), %rsi
	movq	%r12, %rdi
	movl	$100, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_RAND_DRBG_generate
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	jne	LBB0_10
LBB0_9:
	movl	-164(%rbp), %eax                ## 4-byte Reload
	cltd
	movq	_crngt_num_cases@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movq	_crngt_case@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_crngt_idx@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TEST_note
	xorl	%r13d, %r13d
LBB0_10:
	movq	%r12, %rdi
	callq	_uninstantiate
	movq	%r12, %rdi
	callq	_RAND_DRBG_free
	movq	_rand_crngt_get_entropy_cb@GOTPCREL(%rip), %rax
	movq	_crngt_get_entropy@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	%r15, %rdi
	callq	_OPENSSL_CTX_free
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r13d, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_drgb_types,8,3                 ## @drgb_types
	.comm	_crngt_num_cases,4,2            ## @crngt_num_cases
	.comm	_CRNGT_BUFSIZ,4,2               ## @CRNGT_BUFSIZ
	.comm	_crngt_case,8,3                 ## @crngt_case
	.comm	_crngt_idx,8,3                  ## @crngt_idx
	.comm	_crngt_entropy_cb,4,2           ## @crngt_entropy_cb
	.comm	_crngt_get_entropy,8,3          ## @crngt_get_entropy
	.comm	_rand_crngt_get_entropy,4,2     ## @rand_crngt_get_entropy
	.comm	_rand_crngt_cleanup_entropy,4,2 ## @rand_crngt_cleanup_entropy
	.comm	_rand_drbg_get_nonce,4,2        ## @rand_drbg_get_nonce
	.comm	_rand_drbg_cleanup_nonce,4,2    ## @rand_drbg_cleanup_nonce
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DRBG %zd case %zd block %zd"

	.comm	_rand_crngt_get_entropy_cb,4,2  ## @rand_crngt_get_entropy_cb
	.no_dead_strip	_test_crngt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_crngt
_test_crngt:                            ; @test_crngt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _drgb_types@GOTPAGE
Lloh4:
	ldr	x8, [x8, _drgb_types@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
Lloh6:
	adrp	x24, _crngt_num_cases@GOTPAGE
Lloh7:
	ldr	x24, [x24, _crngt_num_cases@GOTPAGEOFF]
	ldr	w22, [x24]
	bl	_OPENSSL_CTX_new
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_12
; %bb.1:
	sdiv	w8, w21, w22
	add	x8, x20, w8, sxtw #3
	ldp	w2, w1, [x8]
	mov	x0, x19
	mov	x3, #0
	bl	_RAND_DRBG_new_ex
	mov	x20, x0
	bl	_TEST_ptr
Lloh8:
	adrp	x23, _crngt_get_entropy@GOTPAGE
Lloh9:
	ldr	x23, [x23, _crngt_get_entropy@GOTPAGEOFF]
Lloh10:
	adrp	x25, _crngt_case@GOTPAGE
Lloh11:
	ldr	x25, [x25, _crngt_case@GOTPAGEOFF]
Lloh12:
	adrp	x26, _crngt_idx@GOTPAGE
Lloh13:
	ldr	x26, [x26, _crngt_idx@GOTPAGEOFF]
	cbz	w0, LBB0_10
; %bb.2:
	ldr	w22, [x20]
Lloh14:
	adrp	x8, _CRNGT_BUFSIZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CRNGT_BUFSIZ@GOTPAGEOFF]
Lloh16:
	ldr	w27, [x8]
	ldr	w8, [x24]
	sdiv	w9, w21, w8
	msub	w8, w9, w8, w21
	sxtw	x8, w8
	str	x8, [x25]
	str	xzr, [x26]
Lloh17:
	adrp	x8, _crngt_entropy_cb@GOTPAGE
Lloh18:
	ldr	x8, [x8, _crngt_entropy_cb@GOTPAGEOFF]
	str	x8, [x23]
Lloh19:
	adrp	x1, _rand_crngt_get_entropy@GOTPAGE
Lloh20:
	ldr	x1, [x1, _rand_crngt_get_entropy@GOTPAGEOFF]
Lloh21:
	adrp	x2, _rand_crngt_cleanup_entropy@GOTPAGE
Lloh22:
	ldr	x2, [x2, _rand_crngt_cleanup_entropy@GOTPAGEOFF]
Lloh23:
	adrp	x3, _rand_drbg_get_nonce@GOTPAGE
Lloh24:
	ldr	x3, [x3, _rand_drbg_get_nonce@GOTPAGEOFF]
Lloh25:
	adrp	x4, _rand_drbg_cleanup_nonce@GOTPAGE
Lloh26:
	ldr	x4, [x4, _rand_drbg_cleanup_nonce@GOTPAGEOFF]
	mov	x0, x20
	bl	_RAND_DRBG_set_callbacks
	bl	_TEST_true
	cbz	w0, LBB0_10
; %bb.3:
	add	w8, w22, w27
	sub	w8, w8, #1
	sdiv	w8, w8, w27
	sxtw	x27, w8
	ldr	x8, [x25]
	cmp	x8, #0
	ccmp	x8, x27, #2, ne
	cset	w22, hi
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	bl	_RAND_DRBG_instantiate
	mov	x1, x22
	bl	_TEST_int_eq
	cbz	w0, LBB0_10
; %bb.4:
	cbz	w22, LBB0_9
; %bb.5:
	add	x1, sp, #4
	mov	x0, x20
	mov	w2, #100
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_RAND_DRBG_generate
	bl	_TEST_true
	cbz	w0, LBB0_10
; %bb.6:
	ldr	x8, [x25]
	cmp	x8, #0
	lsl	x9, x27, #1
	ccmp	x8, x9, #2, ne
	cset	w22, hi
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_RAND_DRBG_reseed
	mov	x1, x22
	bl	_TEST_int_eq
	cbz	w0, LBB0_10
; %bb.7:
	cbz	w22, LBB0_9
; %bb.8:
	add	x1, sp, #4
	mov	x0, x20
	mov	w2, #100
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_RAND_DRBG_generate
	bl	_TEST_true
	cbz	w0, LBB0_10
LBB0_9:
	mov	w21, #1
	b	LBB0_11
LBB0_10:
	ldr	w8, [x24]
	ldr	x2, [x25]
	ldr	x3, [x26]
	sdiv	w1, w21, w8
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TEST_note
	mov	w21, #0
LBB0_11:
	mov	x0, x20
	bl	_uninstantiate
	mov	x0, x20
	bl	_RAND_DRBG_free
Lloh29:
	adrp	x8, _rand_crngt_get_entropy_cb@GOTPAGE
Lloh30:
	ldr	x8, [x8, _rand_crngt_get_entropy_cb@GOTPAGEOFF]
	str	x8, [x23]
	mov	x0, x19
	bl	_OPENSSL_CTX_free
	b	LBB0_13
LBB0_12:
	mov	w21, #0
LBB0_13:
	ldur	x8, [x29, #-88]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x21
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_drgb_types,8,3                 ; @drgb_types
	.comm	_crngt_num_cases,4,2            ; @crngt_num_cases
	.comm	_CRNGT_BUFSIZ,4,2               ; @CRNGT_BUFSIZ
	.comm	_crngt_case,8,3                 ; @crngt_case
	.comm	_crngt_idx,8,3                  ; @crngt_idx
	.comm	_crngt_entropy_cb,4,2           ; @crngt_entropy_cb
	.comm	_crngt_get_entropy,8,3          ; @crngt_get_entropy
	.comm	_rand_crngt_get_entropy,4,2     ; @rand_crngt_get_entropy
	.comm	_rand_crngt_cleanup_entropy,4,2 ; @rand_crngt_cleanup_entropy
	.comm	_rand_drbg_get_nonce,4,2        ; @rand_drbg_get_nonce
	.comm	_rand_drbg_cleanup_nonce,4,2    ; @rand_drbg_cleanup_nonce
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DRBG %zd case %zd block %zd"

	.comm	_rand_crngt_get_entropy_cb,4,2  ; @rand_crngt_get_entropy_cb
	.no_dead_strip	_test_crngt
.subsections_via_symbols
