	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_SHAKE_KAT
_test_SHAKE_KAT:                        ## @test_SHAKE_KAT
	.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	$824, %rsp                      ## imm = 0x338
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.1:
	movl	%edi, %r12d
	xorl	%ebx, %ebx
	leaq	-852(%rbp), %r13
	movq	%r14, -840(%rbp)                ## 8-byte Spill
	movl	%edi, -824(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$46, %edi
	callq	_putchar
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	-840(%rbp), %r14                ## 8-byte Reload
	movq	-848(%rbp), %rbx                ## 8-byte Reload
	movq	16(%r14,%rbx,8), %rsi
	addq	$2, %rbx
	testq	%rsi, %rsi
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_7 Depth 2
	leaq	-304(%rbp), %rdi
	callq	_hextobin
	movq	%rax, %r15
	movq	%rbx, -848(%rbp)                ## 8-byte Spill
	leaq	(,%rbx,8), %rax
	orq	$8, %rax
	movq	(%r14,%rax), %rsi
	leaq	-816(%rbp), %rdi
	callq	_hextobin
	movq	%rax, %r14
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_br_shake_init
	movq	%r13, %rdi
	leaq	-304(%rbp), %rsi
	movq	%r15, %rdx
	callq	_br_shake_inject
	movq	%r13, %rdi
	callq	_br_shake_flip
	movq	%r13, %rdi
	leaq	-560(%rbp), %rbx
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_br_shake_produce
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	leaq	-816(%rbp), %rdx
	movq	%r14, %rcx
	callq	_check_equals
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_br_shake_init
	movq	%r15, -832(%rbp)                ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-304(%rbp), %rbx
	movq	-832(%rbp), %r12                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$1, %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_br_shake_inject
	incq	%rbx
	decq	%r12
	jne	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_br_shake_flip
	movq	%r13, %rdi
	leaq	-560(%rbp), %rbx
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_br_shake_produce
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	leaq	-816(%rbp), %rdx
	movq	%r14, %rcx
	callq	_check_equals
	movq	%r13, %rdi
	movl	-824(%rbp), %r12d               ## 4-byte Reload
	movl	%r12d, %esi
	callq	_br_shake_init
	movq	%r13, %rdi
	leaq	-304(%rbp), %rsi
	movq	-832(%rbp), %rdx                ## 8-byte Reload
	callq	_br_shake_inject
	movq	%r13, %rdi
	callq	_br_shake_flip
	testq	%r14, %r14
	leaq	-817(%rbp), %r15
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_br_shake_produce
	movzbl	-817(%rbp), %eax
	cmpb	-816(%rbp,%rbx), %al
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_7
	jmp	LBB0_9
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.11:
	addq	$824, %rsp                      ## imm = 0x338
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	callq	_fprintf
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"KAT 1"

L_.str.1:                               ## @.str.1
	.asciz	"KAT 2"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"KAT 3 (byte %u)\n"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_stdout,4,2                     ## @stdout
	.no_dead_strip	_test_SHAKE_KAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_SHAKE_KAT
_test_SHAKE_KAT:                        ; @test_SHAKE_KAT
	.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, #784
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x1, [x1]
	cbz	x1, LBB0_10
; %bb.1:
	mov	x20, x0
	mov	x26, #0
	add	x27, sp, #18
Lloh3:
	adrp	x28, _stdout@GOTPAGE
Lloh4:
	ldr	x28, [x28, _stdout@GOTPAGEOFF]
Lloh5:
	adrp	x22, l_.str.1@PAGE
Lloh6:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #46
	bl	_putchar
	ldr	w0, [x28]
	bl	_fflush
	add	x26, x26, #2
	ldr	x1, [x19, x26, lsl #3]
	cbz	x1, LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
	add	x0, sp, #518
	bl	_hextobin
	mov	x21, x0
	lsl	x8, x26, #3
	orr	x8, x8, #0x8
	ldr	x1, [x19, x8]
	add	x0, sp, #18
	bl	_hextobin
	mov	x23, x0
	add	x0, sp, #12
	mov	x1, x20
	bl	_br_shake_init
	add	x0, sp, #12
	add	x1, sp, #518
	mov	x2, x21
	bl	_br_shake_inject
	add	x0, sp, #12
	bl	_br_shake_flip
	add	x0, sp, #12
	add	x1, sp, #268
	mov	x2, x23
	bl	_br_shake_produce
	add	x1, sp, #268
	add	x2, sp, #18
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x23
	bl	_check_equals
	add	x0, sp, #12
	mov	x1, x20
	bl	_br_shake_init
	cbz	x21, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x25, sp, #518
	mov	x24, x21
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #12
	mov	x1, x25
	mov	w2, #1
	bl	_br_shake_inject
	add	x25, x25, #1
	subs	x24, x24, #1
	b.ne	LBB0_5
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #12
	bl	_br_shake_flip
	add	x0, sp, #12
	add	x1, sp, #268
	mov	x2, x23
	bl	_br_shake_produce
	add	x1, sp, #268
	add	x2, sp, #18
	mov	x0, x22
	mov	x3, x23
	bl	_check_equals
	add	x0, sp, #12
	mov	x1, x20
	bl	_br_shake_init
	add	x0, sp, #12
	add	x1, sp, #518
	mov	x2, x21
	bl	_br_shake_inject
	add	x0, sp, #12
	bl	_br_shake_flip
	cbz	x23, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, #0
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #12
	add	x1, sp, #11
	mov	w2, #1
	bl	_br_shake_produce
	ldrb	w8, [sp, #11]
	ldrb	w9, [x27, x24]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x24, x24, #1
	cmp	x23, x24
	b.ne	LBB0_8
	b	LBB0_2
LBB0_10:
	ldur	x8, [x29, #-96]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.11:
	add	sp, sp, #784
	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_12:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x24
	bl	_fprintf
Lloh17:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_exit
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"KAT 1"

l_.str.1:                               ; @.str.1
	.asciz	"KAT 2"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"KAT 3 (byte %u)\n"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_stdout,4,2                     ; @stdout
	.no_dead_strip	_test_SHAKE_KAT
.subsections_via_symbols
