	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run_sha256_tests               ## -- Begin function run_sha256_tests
	.p2align	4, 0x90
_run_sha256_tests:                      ## @run_sha256_tests
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	_run_sha256_tests.outputs(%rip), %r12
	xorl	%r15d, %r15d
	leaq	-84(%rbp), %r14
	leaq	-80(%rbp), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	$8, %r15
	addq	$32, %r12
	cmpq	$64, %r15
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_secp256k1_sha256_initialize
	leaq	_run_sha256_tests.inputs(%rip), %rax
	movq	(%r15,%rax), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_secp256k1_sha256_write
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_secp256k1_sha256_finalize
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$32, %edx
	callq	_memcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movq	%rbx, %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %edi
	callq	_secp256k1_rand_int
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_secp256k1_sha256_initialize
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_secp256k1_sha256_write
	movslq	%r13d, %r14
	leaq	(%rbx,%r14), %r13
	movq	%rbx, %rdi
	callq	_strlen
	subl	%r14d, %eax
	leaq	-84(%rbp), %r14
	movq	%r14, %rdi
	movq	%r13, %rsi
	leaq	-80(%rbp), %r13
	movl	%eax, %edx
	callq	_secp256k1_sha256_write
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_secp256k1_sha256_finalize
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$32, %edx
	callq	_memcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	jmp	LBB0_3
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @run_sha256_tests.inputs
_run_sha256_tests.inputs:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	L_.str.3
	.quad	L_.str.4
	.quad	L_.str.5
	.quad	L_.str.6
	.quad	L_.str.7

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"abc"

L_.str.2:                               ## @.str.2
	.asciz	"message digest"

L_.str.3:                               ## @.str.3
	.asciz	"secure hash algorithm"

L_.str.4:                               ## @.str.4
	.asciz	"SHA256 is considered to be safe"

L_.str.5:                               ## @.str.5
	.asciz	"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"

L_.str.6:                               ## @.str.6
	.asciz	"For this sample, this 63-byte string will be used as input data"

L_.str.7:                               ## @.str.7
	.asciz	"This is exactly 64 bytes long, not counting the terminating byte"

	.section	__TEXT,__const
	.p2align	4                               ## @run_sha256_tests.outputs
_run_sha256_tests.outputs:
	.ascii	"\343\260\304B\230\374\034\024\232\373\364\310\231o\271$'\256A\344d\233\223L\244\225\231\033xR\270U"
	.ascii	"\272x\026\277\217\001\317\352AA@\336]\256\"#\260\003a\243\226\027z\234\264\020\377a\362\000\025\255"
	.ascii	"\367\204oU\317#\341N\353\352\265\264\341U\f\255[P\2363H\373\304\357\243\241A=9<\266P"
	.ascii	"\363\f\353+\262\202\236y\344\312\227S\323Z\216\314\000&-\026L\300w\b\002\2258\034\275d?\r"
	.ascii	"h\031\331\025\307?M\036w\344\341\265-\037\240\371\317\233\352\352\323\223\237\025\207K\331\210\342\24260"
	.ascii	"$\215ja\322\0068\270\345\300&\223\f>`9\243<\344Yd\377!g\366\354\355\324\031\333\006\301"
	.ascii	"\360\212x\313\272\356\b+\005*\340p\2172\372\036P\305\304!\252w+\245\333\264\006\242\352k\343B"
	.ascii	"\253d\357\367\350\216.F\026^)\362\274\344\030&\275L{5R\366\263\202\251\347\323\257G\302E\370"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run_sha256_tests               ; -- Begin function run_sha256_tests
	.p2align	2
_run_sha256_tests:                      ; @run_sha256_tests
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x19, _run_sha256_tests.outputs@PAGE
Lloh4:
	add	x19, x19, _run_sha256_tests.outputs@PAGEOFF
Lloh5:
	adrp	x24, _run_sha256_tests.inputs@PAGE
Lloh6:
	add	x24, x24, _run_sha256_tests.inputs@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #8
	add	x19, x19, #32
	cmp	x23, #64
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #4
	bl	_secp256k1_sha256_initialize
	ldr	x20, [x24, x23]
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	add	x0, sp, #4
	mov	x1, x20
	bl	_secp256k1_sha256_write
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_secp256k1_sha256_finalize
	add	x0, sp, #8
	mov	x1, x19
	mov	w2, #32
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	mov	x0, x20
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_strlen
	bl	_secp256k1_rand_int
	mov	x21, x0
	add	x0, sp, #4
	bl	_secp256k1_sha256_initialize
	add	x0, sp, #4
	mov	x1, x20
	mov	x2, x21
	bl	_secp256k1_sha256_write
	add	x22, x20, w21, sxtw
	mov	x0, x20
	bl	_strlen
	sub	w2, w0, w21
	add	x0, sp, #4
	mov	x1, x22
	bl	_secp256k1_sha256_write
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_secp256k1_sha256_finalize
	add	x0, sp, #8
	mov	x1, x19
	mov	w2, #32
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	b	LBB0_1
LBB0_4:
	ldr	x8, [sp, #40]
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_6
; %bb.5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @run_sha256_tests.inputs
_run_sha256_tests.inputs:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.7

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"abc"

l_.str.2:                               ; @.str.2
	.asciz	"message digest"

l_.str.3:                               ; @.str.3
	.asciz	"secure hash algorithm"

l_.str.4:                               ; @.str.4
	.asciz	"SHA256 is considered to be safe"

l_.str.5:                               ; @.str.5
	.asciz	"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"

l_.str.6:                               ; @.str.6
	.asciz	"For this sample, this 63-byte string will be used as input data"

l_.str.7:                               ; @.str.7
	.asciz	"This is exactly 64 bytes long, not counting the terminating byte"

	.section	__TEXT,__const
_run_sha256_tests.outputs:              ; @run_sha256_tests.outputs
	.ascii	"\343\260\304B\230\374\034\024\232\373\364\310\231o\271$'\256A\344d\233\223L\244\225\231\033xR\270U"
	.ascii	"\272x\026\277\217\001\317\352AA@\336]\256\"#\260\003a\243\226\027z\234\264\020\377a\362\000\025\255"
	.ascii	"\367\204oU\317#\341N\353\352\265\264\341U\f\255[P\2363H\373\304\357\243\241A=9<\266P"
	.ascii	"\363\f\353+\262\202\236y\344\312\227S\323Z\216\314\000&-\026L\300w\b\002\2258\034\275d?\r"
	.ascii	"h\031\331\025\307?M\036w\344\341\265-\037\240\371\317\233\352\352\323\223\237\025\207K\331\210\342\24260"
	.ascii	"$\215ja\322\0068\270\345\300&\223\f>`9\243<\344Yd\377!g\366\354\355\324\031\333\006\301"
	.ascii	"\360\212x\313\272\356\b+\005*\340p\2172\372\036P\305\304!\252w+\245\333\264\006\242\352k\343B"
	.ascii	"\253d\357\367\350\216.F\026^)\362\274\344\030&\275L{5R\366\263\202\251\347\323\257G\302E\370"

.subsections_via_symbols
