	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_SHAKE_MonteCarlo
_test_SHAKE_MonteCarlo:                 ## @test_SHAKE_MonteCarlo
	.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	$552, %rsp                      ## imm = 0x228
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -576(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movl	%edi, -564(%rbp)                ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-304(%rbp), %rdi
	movq	%rcx, %rsi
	callq	_hextobin
	movq	%rbx, %r12
	movq	%r14, -592(%rbp)                ## 8-byte Spill
	subq	%r14, %r12
	incq	%r12
	xorl	%eax, %eax
	leaq	-560(%rbp), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$46, %edi
	callq	_putchar
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	-584(%rbp), %rax                ## 8-byte Reload
	incl	%eax
	cmpl	$100, %eax
	je	LBB0_9
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	%rax, -584(%rbp)                ## 8-byte Spill
	movl	$1000, %r13d                    ## imm = 0x3E8
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=2
	leaq	(%r15,%rbp), %rdi
	addq	$-306, %rdi                     ## imm = 0xFECE
	callq	_br_dec16be
	movq	%rax, %rcx
	orq	%r12, %rcx
	shrq	$32, %rcx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=2
	xorl	%edx, %edx
	divq	%r12
	movq	%rdx, %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=2
	addq	-592(%rbp), %rbx                ## 8-byte Folded Reload
	decl	%r13d
	je	LBB0_8
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %r15
	movq	%r14, %rdi
	movl	-564(%rbp), %esi                ## 4-byte Reload
	callq	_br_shake_init
	movq	%r14, %rdi
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_br_shake_inject
	movq	%r14, %rdi
	callq	_br_shake_flip
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_br_shake_produce
	cmpq	$15, %r15
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	leaq	(%r15,%rbp), %rdi
	addq	$-304, %rdi                     ## imm = 0xFED0
	movl	$16, %edx
	subl	%r15d, %edx
	xorl	%esi, %esi
	callq	_memset
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=2
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r12d
	movl	%edx, %ebx
	jmp	LBB0_7
LBB0_9:
	leaq	-560(%rbp), %rdi
	movq	-576(%rbp), %rsi                ## 8-byte Reload
	callq	_hextobin
	cmpq	%r15, %rax
	jne	LBB0_12
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	leaq	-304(%rbp), %rsi
	leaq	-560(%rbp), %rdx
	movq	%r15, %rcx
	callq	_check_equals
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.11:
	addq	$552, %rsp                      ## imm = 0x228
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_fprintf
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,4,2                     ## @stdout
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"MC: bad length (%u vs %u)\n"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.2:                               ## @.str.2
	.asciz	"KAT MC"

	.no_dead_strip	_test_SHAKE_MonteCarlo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_SHAKE_MonteCarlo
_test_SHAKE_MonteCarlo:                 ; @test_SHAKE_MonteCarlo
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #528
	str	x4, [sp]                        ; 8-byte Folded Spill
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	add	x24, sp, #262
	add	x0, sp, #262
	mov	x1, x3
	bl	_hextobin
	mov	w25, #0
	sub	x8, x23, x21
	add	x26, x8, #1
	mov	w27, #16
Lloh3:
	adrp	x28, _stdout@GOTPAGE
Lloh4:
	ldr	x28, [x28, _stdout@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #46
	bl	_putchar
	ldr	w0, [x28]
	bl	_fflush
	add	w25, w25, #1
	cmp	w25, #100
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	w19, #1000
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	add	x8, x24, x20
	sub	x0, x8, #2
	bl	_br_dec16be
	udiv	x8, x0, x26
	msub	x8, x8, x26, x0
	add	x23, x8, x21
	subs	w19, w19, #1
	b.eq	LBB0_1
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x20, x23
	add	x0, sp, #12
	mov	x1, x22
	bl	_br_shake_init
	add	x0, sp, #12
	add	x1, sp, #262
	mov	w2, #16
	bl	_br_shake_inject
	add	x0, sp, #12
	bl	_br_shake_flip
	add	x0, sp, #12
	add	x1, sp, #262
	mov	x2, x23
	bl	_br_shake_produce
	cmp	x23, #15
	b.hi	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x0, x24, x20
	sub	w2, w27, w20
	mov	w1, #0
	bl	_memset
	b	LBB0_3
LBB0_6:
	add	x0, sp, #12
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	bl	_hextobin
	cmp	x0, x20
	b.ne	LBB0_9
; %bb.7:
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #262
	add	x2, sp, #12
	mov	x3, x20
	bl	_check_equals
	ldur	x8, [x29, #-96]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.8:
	add	sp, sp, #528
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x3, x0
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_fprintf
Lloh15:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_exit
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,4,2                     ; @stdout
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"MC: bad length (%u vs %u)\n"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.2:                               ; @.str.2
	.asciz	"KAT MC"

	.no_dead_strip	_test_SHAKE_MonteCarlo
.subsections_via_symbols
