	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getcert
_getcert:                               ## @getcert
	.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
	xorl	%eax, %eax
	callq	_getkey
	movq	%rax, %r14
	xorl	%edi, %edi
	callq	_time
	movq	%rax, %rbx
	movq	%rax, -40(%rbp)
	movl	%r14d, %edi
	callq	_tt_assert
	xorl	%eax, %eax
	callq	_X509_new
	movq	%rax, %r15
	movl	%r15d, %edi
	callq	_tt_assert
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_X509_set_version
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_tt_assert
	movq	%r15, %rdi
	callq	_X509_get_serialNumber
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_ASN1_INTEGER_set
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_tt_assert
	xorl	%eax, %eax
	callq	_X509_NAME_new
	movq	%rax, %r12
	movl	%r12d, %edi
	callq	_tt_assert
	leaq	L_.str(%rip), %rdi
	callq	_OBJ_txt2nid
	movl	%eax, %ebx
	movq	_NID_undef@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%ebx, (%rax)
	setne	%dil
	callq	_tt_assert
	movq	_MBSTRING_ASC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$-1, %r8d
	movl	$-1, %r9d
	callq	_X509_NAME_add_entry_by_NID
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_tt_assert
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_X509_set_subject_name
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_X509_set_issuer_name
	movq	%r15, %rdi
	callq	_X509_get_notBefore
	leaq	-40(%rbp), %rbx
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_X509_time_adj
	addq	$3600, -40(%rbp)                ## imm = 0xE10
	movq	%r15, %rdi
	callq	_X509_get_notAfter
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_X509_time_adj
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_X509_set_pubkey
	xorl	%eax, %eax
	callq	_EVP_sha1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_X509_sign
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_tt_assert
	movq	%r15, %rax
	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	"commonName"

	.comm	_NID_undef,4,2                  ## @NID_undef
	.comm	_MBSTRING_ASC,4,2               ## @MBSTRING_ASC
L_.str.1:                               ## @.str.1
	.asciz	"example.com"

	.no_dead_strip	_getcert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getcert
_getcert:                               ; @getcert
	.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
	bl	_getkey
	mov	x19, x0
	mov	x0, #0
	bl	_time
	mov	x21, x0
	str	x0, [sp, #8]
	mov	x0, x19
	bl	_tt_assert
	bl	_X509_new
	mov	x20, x0
	bl	_tt_assert
	mov	x0, x20
	mov	w1, #2
	bl	_X509_set_version
	cmp	x0, #0
	cset	w0, ne
	bl	_tt_assert
	mov	x0, x20
	bl	_X509_get_serialNumber
	mov	x1, x21
	bl	_ASN1_INTEGER_set
	cmp	x0, #0
	cset	w0, ne
	bl	_tt_assert
	bl	_X509_NAME_new
	mov	x21, x0
	bl	_tt_assert
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_OBJ_txt2nid
	mov	x22, x0
Lloh2:
	adrp	x8, _NID_undef@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NID_undef@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w0
	cset	w0, ne
	bl	_tt_assert
Lloh5:
	adrp	x8, _MBSTRING_ASC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MBSTRING_ASC@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	mov	w4, #-1
	mov	w5, #-1
	mov	w6, #0
	bl	_X509_NAME_add_entry_by_NID
	cmp	x0, #0
	cset	w0, ne
	bl	_tt_assert
	mov	x0, x20
	mov	x1, x21
	bl	_X509_set_subject_name
	mov	x0, x20
	mov	x1, x21
	bl	_X509_set_issuer_name
	mov	x0, x20
	bl	_X509_get_notBefore
	add	x2, sp, #8
	mov	w1, #0
	bl	_X509_time_adj
	ldr	x8, [sp, #8]
	add	x8, x8, #3600
	str	x8, [sp, #8]
	mov	x0, x20
	bl	_X509_get_notAfter
	add	x2, sp, #8
	mov	w1, #0
	bl	_X509_time_adj
	mov	x0, x20
	mov	x1, x19
	bl	_X509_set_pubkey
	bl	_EVP_sha1
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_X509_sign
	cmp	x0, #0
	cset	w0, ne
	bl	_tt_assert
	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	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"commonName"

	.comm	_NID_undef,4,2                  ; @NID_undef
	.comm	_MBSTRING_ASC,4,2               ; @MBSTRING_ASC
l_.str.1:                               ; @.str.1
	.asciz	"example.com"

	.no_dead_strip	_getcert
.subsections_via_symbols
