	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run_ecdsa_der_parse            ## -- Begin function run_ecdsa_der_parse
	.p2align	4, 0x90
_run_ecdsa_der_parse:                   ## @run_ecdsa_der_parse
	.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	$2088, %rsp                     ## imm = 0x828
	.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)
	movq	_count@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_13
## %bb.1:
	leaq	-2096(%rbp), %rbx
	movq	_stderr@GOTPCREL(%rip), %r15
	leaq	L_.str.1(%rip), %r12
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-2116(%rbp), %ecx               ## 4-byte Reload
	incl	%ecx
	movq	_count@GOTPCREL(%rip), %rax
	imull	$200, (%rax), %eax
	cmpl	%eax, %ecx
	jge	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	movl	%ecx, -2116(%rbp)               ## 4-byte Spill
	movq	$0, -2112(%rbp)
	movl	$0, -2104(%rbp)
	movl	$0, -2100(%rbp)
	movq	%rbx, %rdi
	leaq	-2112(%rbp), %rsi
	leaq	-2104(%rbp), %rdx
	leaq	-2100(%rbp), %rcx
	callq	_random_ber_signature
	xorl	%edi, %edi
	cmpq	$2049, -2112(%rbp)              ## imm = 0x801
	setb	%dil
	callq	_CHECK
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	leaq	-2096(%rbp), %rbx
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=2
	xorl	%edi, %edi
	testl	%r13d, %r13d
	sete	%dil
	callq	_CHECK
	incl	%r14d
	cmpl	$16, %r14d
	je	LBB0_12
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rbx, %rdi
	leaq	-2112(%rbp), %rsi
	callq	_damage_array
	movl	$0, -2104(%rbp)
	movl	$0, -2100(%rbp)
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	-2104(%rbp), %edx
	movl	-2100(%rbp), %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	-2112(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_test_ecdsa_der_parse
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	cmpq	$0, -2112(%rbp)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r15), %edi
	movzbl	-2096(%rbp,%rbx), %edx
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	incq	%rbx
	cmpq	-2112(%rbp), %rbx
	jb	LBB0_9
	jmp	LBB0_10
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$2088, %rsp                     ## imm = 0x828
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_count,4,2                      ## @count
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failure %x on "

L_.str.1:                               ## @.str.1
	.asciz	"%02x "

L_.str.2:                               ## @.str.2
	.asciz	"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_run_ecdsa_der_parse            ; -- Begin function run_ecdsa_der_parse
	.p2align	2
_run_ecdsa_der_parse:                   ; @run_ecdsa_der_parse
	.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, #2096
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _count@GOTPAGE
Lloh4:
	ldr	x8, [x8, _count@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	w24, #0
	add	x25, sp, #32
	mov	w26, #200
Lloh6:
	adrp	x27, _stderr@GOTPAGE
Lloh7:
	ldr	x27, [x27, _stderr@GOTPAGEOFF]
Lloh8:
	adrp	x19, l_.str@PAGE
Lloh9:
	add	x19, x19, l_.str@PAGEOFF
Lloh10:
	adrp	x20, l_.str.2@PAGE
Lloh11:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh12:
	adrp	x21, l_.str.1@PAGE
Lloh13:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
Lloh14:
	adrp	x8, _count@GOTPAGE
Lloh15:
	ldr	x8, [x8, _count@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	mul	w8, w8, w26
	cmp	w24, w8
	b.ge	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	stp	xzr, xzr, [sp, #16]
	add	x0, sp, #32
	add	x1, sp, #24
	add	x2, sp, #20
	add	x3, sp, #16
	bl	_random_ber_signature
	ldr	x8, [sp, #24]
	cmp	x8, #2049
	cset	w0, lo
	bl	_CHECK
	mov	w28, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [x27]
	mov	x1, x20
	bl	_fprintf
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	cmp	w22, #0
	cset	w0, eq
	bl	_CHECK
	add	w28, w28, #1
	cmp	w28, #16
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	cbz	w28, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x0, sp, #32
	add	x1, sp, #24
	bl	_damage_array
	mov	w3, #0
	mov	w2, #0
	str	xzr, [sp, #16]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldp	w3, w2, [sp, #16]
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x1, [sp, #24]
	add	x0, sp, #32
	bl	_test_ecdsa_der_parse
	mov	x22, x0
	cbz	w0, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	w0, [x27]
	str	x22, [sp]
	mov	x1, x19
	bl	_fprintf
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x23, #0
LBB0_12:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w0, [x27]
	ldrb	w8, [x25, x23]
	str	x8, [sp]
	mov	x1, x21
	bl	_fprintf
	add	x23, x23, #1
	ldr	x8, [sp, #24]
	cmp	x23, x8
	b.lo	LBB0_12
	b	LBB0_4
LBB0_13:
	ldur	x8, [x29, #-96]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	add	sp, sp, #2096
	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_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_count,4,2                      ; @count
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failure %x on "

l_.str.1:                               ; @.str.1
	.asciz	"%02x "

l_.str.2:                               ; @.str.2
	.asciz	"\n"

.subsections_via_symbols
