	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_ec
_print_ec:                              ## @print_ec
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BR_EC_KBUF_PUB_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	cmpq	$0, 40(%r14)
	je	LBB0_2
## %bb.1:
	movl	4(%r12), %edx
	movl	8(%r12), %esi
	leaq	L_.str(%rip), %rdi
	callq	_print_int_text
LBB0_2:
	cmpq	$0, 32(%r14)
	je	LBB0_4
## %bb.3:
	movl	4(%r12), %edx
	movl	8(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_print_int_C
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	(%r12), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_str.10(%rip), %rdi
	callq	_puts
	leaq	L_str.11(%rip), %rdi
	callq	_puts
LBB0_4:
	cmpq	$0, 24(%r14)
	jne	LBB0_8
## %bb.5:
	cmpq	$0, 16(%r14)
	jne	LBB0_8
## %bb.6:
	cmpq	$0, 8(%r14)
	jne	LBB0_8
## %bb.7:
	cmpq	$0, (%r14)
	je	LBB0_35
LBB0_8:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_br_ec_get_default
	leaq	-52(%rbp), %rsi
	movl	%eax, %edi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_br_ec_compute_pub
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, 24(%r14)
	jne	LBB0_11
## %bb.10:
	cmpq	$0, 16(%r14)
	je	LBB0_16
LBB0_11:
	xorl	%ebx, %ebx
	leaq	-52(%rbp), %rdx
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_br_encode_ec_raw_der
	testq	%rax, %rax
	je	LBB0_29
## %bb.12:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_xmalloc
	movq	%rax, %rbx
	leaq	-52(%rbp), %rdx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_br_encode_ec_raw_der
	cmpq	%r13, %rax
	jne	LBB0_30
## %bb.13:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.14:
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_write_to_file
	movl	%eax, %r15d
	andl	$1, %r15d
	jmp	LBB0_18
LBB0_15:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_32
LBB0_16:
	movl	$1, %r15d
	cmpq	$0, 8(%r14)
	jne	LBB0_22
	jmp	LBB0_21
LBB0_17:
	movl	$1, %r15d
LBB0_18:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	leaq	L_.str.8(%rip), %rcx
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_write_to_pem_file
	andl	%eax, %r15d
LBB0_20:
	movq	%rbx, %rdi
	callq	_xfree
	cmpq	$0, 8(%r14)
	jne	LBB0_22
LBB0_21:
	cmpq	$0, (%r14)
	je	LBB0_34
LBB0_22:
	xorl	%ebx, %ebx
	leaq	-52(%rbp), %rdx
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_br_encode_ec_pkcs8_der
	testq	%rax, %rax
	je	LBB0_29
## %bb.23:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_xmalloc
	movq	%rax, %rbx
	leaq	-52(%rbp), %rdx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_br_encode_ec_pkcs8_der
	cmpq	%r13, %rax
	jne	LBB0_30
## %bb.24:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.25:
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_write_to_file
	andl	%eax, %r15d
LBB0_26:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.27:
	leaq	L_.str.9(%rip), %rcx
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_write_to_pem_file
	andl	%eax, %r15d
LBB0_28:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_xfree
	movl	%r15d, %ebx
	jmp	LBB0_32
LBB0_29:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_31
LBB0_30:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_fprintf
	movq	%rbx, %rdi
	callq	_xfree
	xorl	%ebx, %ebx
LBB0_31:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_32:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_36
## %bb.33:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movl	%r15d, %ebx
	jmp	LBB0_31
LBB0_35:
	movl	$1, %ebx
	jmp	LBB0_32
LBB0_36:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BR_EC_KBUF_PUB_MAX_SIZE,4,2    ## @BR_EC_KBUF_PUB_MAX_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"x"

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

L_.str.3:                               ## @.str.3
	.asciz	"\t%d,\n"

	.comm	_stderr,4,2                     ## @stderr
L_.str.6:                               ## @.str.6
	.asciz	"ERROR: cannot re-encode (unsupported curve)\n"

L_.str.7:                               ## @.str.7
	.asciz	"ERROR: re-encode failure\n"

L_.str.8:                               ## @.str.8
	.asciz	"EC PRIVATE KEY"

L_.str.9:                               ## @.str.9
	.asciz	"PRIVATE KEY"

L_str:                                  ## @str
	.asciz	"\nstatic const br_ec_private_key EC = {"

L_str.10:                               ## @str.10
	.asciz	"\t(unsigned char *)EC_X, sizeof EC_X"

L_str.11:                               ## @str.11
	.asciz	"};"

	.no_dead_strip	_print_ec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_ec
_print_ec:                              ; @print_ec
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _BR_EC_KBUF_PUB_MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BR_EC_KBUF_PUB_MAX_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x8, [x1, #40]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	w2, w1, [x20, #4]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_print_int_text
LBB0_2:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
; %bb.3:
	ldp	w2, w1, [x20, #4]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_print_int_C
Lloh12:
	adrp	x0, l_str@PAGE
Lloh13:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	w8, [x20]
	str	x8, [sp, #-16]!
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	add	sp, sp, #16
Lloh16:
	adrp	x0, l_str.10@PAGE
Lloh17:
	add	x0, x0, l_str.10@PAGEOFF
	bl	_puts
Lloh18:
	adrp	x0, l_str.11@PAGE
Lloh19:
	add	x0, x0, l_str.11@PAGEOFF
	bl	_puts
LBB0_4:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_8
; %bb.5:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x19]
	cbz	x8, LBB0_32
LBB0_8:
	bl	_br_ec_get_default
	sub	x1, x29, #60
	mov	x2, x21
	mov	x3, x20
	bl	_br_ec_compute_pub
	cbz	x0, LBB0_26
; %bb.9:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_11
; %bb.10:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_17
LBB0_11:
	sub	x2, x29, #60
	mov	x0, #0
	mov	x1, x20
	bl	_br_encode_ec_raw_der
	cbz	x0, LBB0_26
; %bb.12:
	mov	x23, x0
	bl	_xmalloc
	mov	x22, x0
	sub	x2, x29, #60
	mov	x1, x20
	bl	_br_encode_ec_raw_der
	cmp	x0, x23
	b.ne	LBB0_27
; %bb.13:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_31
; %bb.14:
	mov	x1, x22
	mov	x2, x23
	bl	_write_to_file
	and	w21, w0, #0x1
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_16
LBB0_15:
Lloh20:
	adrp	x3, l_.str.8@PAGE
Lloh21:
	add	x3, x3, l_.str.8@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	bl	_write_to_pem_file
	and	w21, w0, w21
LBB0_16:
	mov	x0, x22
	bl	_xfree
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_19
	b	LBB0_18
LBB0_17:
	mov	w21, #1
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_19
LBB0_18:
	ldr	x8, [x19]
	cbz	x8, LBB0_29
LBB0_19:
	sub	x2, x29, #60
	mov	x0, #0
	mov	x1, x20
	bl	_br_encode_ec_pkcs8_der
	cbz	x0, LBB0_26
; %bb.20:
	mov	x23, x0
	bl	_xmalloc
	mov	x22, x0
	sub	x2, x29, #60
	mov	x1, x20
	bl	_br_encode_ec_pkcs8_der
	cmp	x0, x23
	b.ne	LBB0_27
; %bb.21:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_23
; %bb.22:
	mov	x1, x22
	mov	x2, x23
	bl	_write_to_file
	and	w21, w0, w21
LBB0_23:
	ldr	x0, [x19]
	cbz	x0, LBB0_25
; %bb.24:
Lloh22:
	adrp	x3, l_.str.9@PAGE
Lloh23:
	add	x3, x3, l_.str.9@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	bl	_write_to_pem_file
	and	w21, w0, w21
LBB0_25:
	mov	x0, x22
	bl	_xfree
	b	LBB0_29
LBB0_26:
Lloh24:
	adrp	x8, _stderr@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
	b	LBB0_28
LBB0_27:
Lloh29:
	adrp	x8, _stderr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fprintf
	mov	x0, x22
	bl	_xfree
LBB0_28:
	mov	w21, #0
LBB0_29:
	mov	sp, x24
	ldur	x8, [x29, #-56]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.30:
	mov	x0, x21
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_31:
	mov	w21, #1
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_15
	b	LBB0_16
LBB0_32:
	mov	w21, #1
	b	LBB0_29
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_BR_EC_KBUF_PUB_MAX_SIZE,4,2    ; @BR_EC_KBUF_PUB_MAX_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"x"

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

l_.str.3:                               ; @.str.3
	.asciz	"\t%d,\n"

	.comm	_stderr,4,2                     ; @stderr
l_.str.6:                               ; @.str.6
	.asciz	"ERROR: cannot re-encode (unsupported curve)\n"

l_.str.7:                               ; @.str.7
	.asciz	"ERROR: re-encode failure\n"

l_.str.8:                               ; @.str.8
	.asciz	"EC PRIVATE KEY"

l_.str.9:                               ; @.str.9
	.asciz	"PRIVATE KEY"

l_str:                                  ; @str
	.asciz	"\nstatic const br_ec_private_key EC = {"

l_str.10:                               ; @str.10
	.asciz	"\t(unsigned char *)EC_X, sizeof EC_X"

l_str.11:                               ; @str.11
	.asciz	"};"

	.no_dead_strip	_print_ec
.subsections_via_symbols
