	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_one_cert
_test_one_cert:                         ## @test_one_cert
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	$0, -40(%rbp)
	movl	%edx, %edi
	callq	__hx509_cert_private_key
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_context@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	subq	$48, %rsp
	leaq	-32(%rbp), %rax
	movq	%rax, 32(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsp)
	movl	%ebx, (%rsp)
	movq	$0, 24(%rsp)
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_hx509_cms_create_signed_1
	addq	$48, %rsp
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_3:
	movl	(%r15), %edi
	movl	-32(%rbp), %ecx
	movl	-28(%rbp), %r8d
	leaq	-40(%rbp), %rax
	leaq	-48(%rbp), %rbx
	leaq	-52(%rbp), %r10
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	pushq	$0
	callq	_hx509_cms_verify_signed
	addq	$32, %rsp
	movl	%eax, %ebx
	movl	-32(%rbp), %edi
	callq	_free
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_hx509_err
LBB0_5:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	-48(%rbp), %edi
	callq	_free
LBB0_6:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_context,4,2                    ## @context
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hx509_cms_create_signed_1"

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

L_str:                                  ## @str
	.asciz	"create-signature verify-sigature done"

	.no_dead_strip	_test_one_cert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_one_cert
_test_one_cert:                         ; @test_one_cert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x2
	mov	x19, x1
	str	xzr, [sp, #40]
	mov	x0, x2
	bl	__hx509_cert_private_key
	cbz	x0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x21, _context@GOTPAGE
Lloh1:
	ldr	x21, [x21, _context@GOTPAGEOFF]
	ldr	w0, [x21]
	stp	xzr, xzr, [sp]
	sub	x8, x29, #40
	str	x8, [sp, #16]
	mov	w1, #0
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	mov	x6, x20
	mov	x7, #0
	bl	_hx509_cms_create_signed_1
	cbz	w0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_3:
	ldr	w0, [x21]
	ldp	w3, w4, [x29, #-40]
	add	x8, sp, #40
	add	x9, sp, #48
	stp	x9, x8, [sp]
	add	x7, sp, #36
	mov	x1, x19
	mov	w2, #0
	mov	x5, #0
	mov	x6, #0
	bl	_hx509_cms_verify_signed
	mov	x19, x0
	ldur	w0, [x29, #-40]
	bl	_free
	cbz	w19, LBB0_5
; %bb.4:
	ldr	w0, [x21]
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w1, #1
	mov	x2, x19
	bl	_hx509_err
LBB0_5:
Lloh6:
	adrp	x0, l_str@PAGE
Lloh7:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	w0, [sp, #48]
	bl	_free
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_context,4,2                    ; @context
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hx509_cms_create_signed_1"

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

l_str:                                  ; @str
	.asciz	"create-signature verify-sigature done"

	.no_dead_strip	_test_one_cert
.subsections_via_symbols
