	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_generate
_do_generate:                           ## @do_generate
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_app_load_config
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	testq	%r15, %r15
	jne	LBB0_7
## %bb.5:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	callq	_NCONF_get_string
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	%rax, %r15
	jmp	LBB0_7
LBB0_1:
	xorl	%r12d, %r12d
LBB0_7:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ASN1_generate_nconf
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_NCONF_free
	testq	%r15, %r15
	je	LBB0_15
## %bb.8:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_i2d_ASN1_TYPE
	testl	%eax, %eax
	jle	LBB0_14
## %bb.9:
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_BUF_MEM_grow
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	(%r14), %rax
	movq	%rax, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_i2d_ASN1_TYPE
	movq	%r15, %rdi
	callq	_ASN1_TYPE_free
	jmp	LBB0_16
LBB0_3:
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_10:
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_12:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	callq	_BIO_printf
LBB0_13:
	xorl	%r15d, %r15d
LBB0_14:
	movq	%r12, %rdi
	callq	_NCONF_free
	movq	%r15, %rdi
	callq	_ASN1_TYPE_free
LBB0_15:
	movl	$-1, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"default"

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

	.comm	_bio_err,4,2                    ## @bio_err
L_.str.2:                               ## @.str.2
	.asciz	"Can't find 'asn1' in '%s'\n"

	.no_dead_strip	_do_generate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_generate
_do_generate:                           ; @do_generate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x0
	cbz	x1, LBB0_5
; %bb.1:
	mov	x22, x1
	mov	x0, x1
	bl	_app_load_config
	mov	x20, x0
	cbz	x0, LBB0_11
; %bb.2:
	cbnz	x21, LBB0_6
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_NCONF_get_string
	mov	x21, x0
	cbnz	x0, LBB0_6
; %bb.4:
Lloh4:
	adrp	x8, _bio_err@GOTPAGE
Lloh5:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_BIO_printf
	b	LBB0_12
LBB0_5:
	mov	x20, #0
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	bl	_ASN1_generate_nconf
	mov	x21, x0
	mov	x0, x20
	bl	_NCONF_free
	cbz	x21, LBB0_13
; %bb.7:
	mov	x0, x21
	mov	x1, #0
	bl	_i2d_ASN1_TYPE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_BUF_MEM_grow
	cbz	w0, LBB0_10
; %bb.9:
	ldr	x8, [x19]
	str	x8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_i2d_ASN1_TYPE
	mov	x0, x21
	bl	_ASN1_TYPE_free
	b	LBB0_14
LBB0_10:
	mov	x20, #0
	b	LBB0_12
LBB0_11:
	mov	x21, #0
LBB0_12:
	mov	x0, x20
	bl	_NCONF_free
	mov	x0, x21
	bl	_ASN1_TYPE_free
LBB0_13:
	mov	w20, #-1
LBB0_14:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"default"

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

	.comm	_bio_err,4,2                    ; @bio_err
l_.str.2:                               ; @.str.2
	.asciz	"Can't find 'asn1' in '%s'\n"

	.no_dead_strip	_do_generate
.subsections_via_symbols
