	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bench_sign_run
_bench_sign_run:                        ## @bench_sign_run
	.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	$104, %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)
	xorl	%r13d, %r13d
	leaq	-140(%rbp), %r14
	leaq	-128(%rbp), %r15
	leaq	-136(%rbp), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	$74, -136(%rbp)
	movl	16(%rbx), %edi
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_secp256k1_ecdsa_sign
	movl	%eax, %edi
	callq	_CHECK
	movl	16(%rbx), %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_secp256k1_ecdsa_signature_serialize_der
	movl	%eax, %edi
	callq	_CHECK
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	-128(%rbp,%rax), %ecx
	movq	(%rbx), %rdx
	movb	%cl, (%rdx,%rax)
	movzbl	-96(%rbp,%rax), %ecx
	movq	8(%rbx), %rdx
	movb	%cl, (%rdx,%rax)
	movzbl	-127(%rbp,%rax), %ecx
	movq	(%rbx), %rdx
	movb	%cl, 1(%rdx,%rax)
	movzbl	-95(%rbp,%rax), %ecx
	movq	8(%rbx), %rdx
	movb	%cl, 1(%rdx,%rax)
	addq	$2, %rax
	cmpq	$32, %rax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%r13d
	cmpl	$20000, %r13d                   ## imm = 0x4E20
	jne	LBB0_1
## %bb.4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bench_sign_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bench_sign_run
_bench_sign_run:                        ; @bench_sign_run
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x19, x0
	mov	w20, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	w21, #74
	add	x22, sp, #30
	mov	w23, #20000
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	str	x21, [sp, #16]
	ldr	w0, [x19, #16]
	ldp	x2, x3, [x19]
	add	x1, sp, #12
	mov	x4, #0
	mov	x5, #0
	bl	_secp256k1_ecdsa_sign
	bl	_CHECK
	ldr	w0, [x19, #16]
	add	x1, sp, #30
	add	x2, sp, #16
	add	x3, sp, #12
	bl	_secp256k1_ecdsa_signature_serialize_der
	bl	_CHECK
	mov	x8, #0
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x9, x22, x8
	ldrb	w10, [x9]
	ldr	x11, [x19]
	strb	w10, [x11, x8]
	ldrb	w9, [x9, #32]
	ldr	x10, [x19, #8]
	strb	w9, [x10, x8]
	add	x8, x8, #1
	cmp	x8, #32
	b.ne	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w20, w20, #1
	cmp	w20, w23
	b.ne	LBB0_1
; %bb.4:
	ldur	x8, [x29, #-56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bench_sign_run
.subsections_via_symbols
