	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cms_verify_sd                  ## -- Begin function cms_verify_sd
	.p2align	4, 0x90
_cms_verify_sd:                         ## @cms_verify_sd
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movl	%esi, -140(%rbp)                ## 4-byte Spill
	movq	%rdi, %r14
	movq	$0, -136(%rbp)
	movq	$0, -112(%rbp)
	movq	$0, -104(%rbp)
	movq	$0, -96(%rbp)
	movq	$0, -64(%rbp)
	cmpq	$0, 56(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_hx509_context_set_missing_revoke
LBB0_2:
	movq	_context@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	-44(%rbp), %rsi
	callq	_hx509_lock_init
	movl	-44(%rbp), %edi
	leaq	48(%r14), %rsi
	callq	_lock_strings
	movl	(%r15), %edi
	leaq	-136(%rbp), %rsi
	callq	_hx509_verify_init_ctx
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rcx
	movl	$1, %esi
	movl	%eax, %edx
	callq	_hx509_err
LBB0_4:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-96(%rbp), %r8
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hx509_certs_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rcx
	movl	$1, %esi
	movl	%eax, %edx
	callq	_hx509_err
LBB0_6:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	-112(%rbp), %r8
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hx509_certs_init
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rcx
	movl	$1, %esi
	movl	%eax, %edx
	callq	_hx509_err
LBB0_8:
	movl	(%r15), %edi
	movq	-96(%rbp), %rdx
	movl	-44(%rbp), %ecx
	leaq	44(%r14), %r8
	leaq	L_.str.4(%rip), %rsi
	callq	_certs_strings
	movl	(%r15), %edi
	movq	-112(%rbp), %rdx
	movl	-44(%rbp), %ecx
	leaq	40(%r14), %r8
	leaq	L_.str.5(%rip), %rsi
	callq	_certs_strings
	cmpq	$0, 32(%r14)
	je	LBB0_24
## %bb.9:
	leaq	-80(%rbp), %rax
	movq	%rax, -120(%rbp)
	movq	$0, -128(%rbp)
	movq	(%r13), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_fopen
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	(%r13), %rdx
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_11:
	movl	(%r15), %edi
	movq	_pem_reader@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-128(%rbp), %rcx
	movq	%rbx, %rsi
	callq	_hx509_pem_read
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_fclose
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.12:
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_13:
	cmpq	$0, -128(%rbp)
	je	LBB0_27
## %bb.14:
	cmpq	$0, (%r14)
	jne	LBB0_27
## %bb.15:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	(%r13), %r13
	movq	%r13, %rdi
	movl	$46, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	%rax, %r12
	leaq	L_.str.9(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_18
LBB0_16:
	xorl	%r12d, %r12d
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_28
LBB0_24:
	movq	(%r13), %rdi
	leaq	-64(%rbp), %rsi
	leaq	-152(%rbp), %rdx
	callq	_rk_undumpdata
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movq	(%r13), %rdx
	leaq	L_.str.11(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_err
LBB0_26:
	movq	-64(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	-152(%rbp), %rax
	movq	%rax, -72(%rbp)
LBB0_27:
	xorl	%r12d, %r12d
LBB0_28:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.29:
	leaq	-168(%rbp), %r12
	movq	%r12, %rsi
	callq	__hx509_map_file_os
	testl	%eax, %eax
	je	LBB0_31
## %bb.30:
	movq	(%r14), %rdx
	leaq	L_.str.11(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_errx
LBB0_31:
	cmpq	$0, 24(%r14)
	je	LBB0_40
## %bb.32:
	leaq	-80(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-128(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_hx509_cms_unwrap_ContentInfo
	testl	%eax, %eax
	je	LBB0_34
## %bb.33:
	leaq	L_.str.12(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_34:
	movq	_asn1_oid_id_pkcs7_signedData@GOTPCREL(%rip), %rsi
	leaq	-56(%rbp), %rdi
	callq	_der_heim_oid_cmp
	testq	%rax, %rax
	je	LBB0_36
## %bb.35:
	leaq	L_.str.13(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_36:
	leaq	-56(%rbp), %rdi
	callq	_der_free_oid
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_37
## %bb.38:
	callq	_rk_xfree
	movq	$0, -64(%rbp)
	jmp	LBB0_39
LBB0_37:
	leaq	-80(%rbp), %rdi
	callq	_der_free_octet_string
LBB0_39:
	movups	-128(%rbp), %xmm0
	movaps	%xmm0, -80(%rbp)
LBB0_40:
	movq	-136(%rbp), %rdi
	movq	-96(%rbp), %rsi
	callq	_hx509_verify_attach_anchors
	xorl	%edx, %edx
	cmpl	$0, 16(%r14)
	movl	$0, %eax
	jne	LBB0_42
## %bb.41:
	movq	_HX509_CMS_VS_ALLOW_ZERO_SIGNER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_42:
	cmpq	$0, 8(%r14)
	je	LBB0_44
## %bb.43:
	movq	_HX509_CMS_VS_ALLOW_DATA_OID_MISMATCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_44:
	orl	%eax, %edx
	movl	(%r15), %edi
	movq	-136(%rbp), %rsi
	movq	-80(%rbp), %rcx
	movq	-72(%rbp), %r8
	leaq	-104(%rbp), %rax
	leaq	-128(%rbp), %rbx
	leaq	-144(%rbp), %r10
	movq	%r12, %r9
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	pushq	-112(%rbp)
	callq	_hx509_cms_verify_signed
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	-64(%rbp), %rdi
	cmpq	-80(%rbp), %rdi
	je	LBB0_46
## %bb.45:
	leaq	-80(%rbp), %rdi
	callq	_der_free_octet_string
	testl	%ebx, %ebx
	je	LBB0_49
LBB0_48:
	movl	(%r15), %edi
	leaq	L_.str.14(%rip), %rcx
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_hx509_err
LBB0_49:
	leaq	-144(%rbp), %rbx
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$46, %esi
	callq	_der_print_heim_oid
	movq	-56(%rbp), %rsi
	leaq	L_.str.15(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-56(%rbp), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_der_free_oid
	cmpq	$0, -104(%rbp)
	je	LBB0_50
## %bb.51:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	(%r15), %edi
	movq	-104(%rbp), %rsi
	movq	_hx509_ci_print_names@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_hx509_certs_iter_f
	jmp	LBB0_52
LBB0_46:
	callq	_rk_xfree
	testl	%ebx, %ebx
	jne	LBB0_48
	jmp	LBB0_49
LBB0_50:
	leaq	L_str.19(%rip), %rdi
	callq	_puts
LBB0_52:
	movq	-136(%rbp), %rdi
	callq	_hx509_verify_destroy_ctx
	leaq	-112(%rbp), %rdi
	callq	_hx509_certs_free
	leaq	-104(%rbp), %rdi
	callq	_hx509_certs_free
	leaq	-96(%rbp), %rdi
	callq	_hx509_certs_free
	movl	-44(%rbp), %edi
	callq	_hx509_lock_free
	cmpl	$2, -140(%rbp)                  ## 4-byte Folded Reload
	jl	LBB0_55
## %bb.53:
	movq	8(%r13), %rdi
	movq	-128(%rbp), %rsi
	movq	-120(%rbp), %rdx
	callq	__hx509_write_file
	testl	%eax, %eax
	je	LBB0_55
## %bb.54:
	leaq	L_.str.18(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_55:
	leaq	-128(%rbp), %rdi
	callq	_der_free_octet_string
	testq	%r12, %r12
	je	LBB0_57
## %bb.56:
	movq	%r12, %rdi
	callq	__hx509_unmap_file_os
LBB0_57:
	xorl	%eax, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%r13, %rdi
	callq	_strdup
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	leaq	L_.str.10(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
LBB0_20:
	subq	%r13, %r12
	movb	$0, (%rbx,%r12)
	leaq	-168(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	__hx509_map_file_os
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	leaq	L_.str.11(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_errx
LBB0_22:
	movq	%rbx, %rdi
	callq	_free
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_context,4,2                    ## @context
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hx509_verify_init_ctx"

L_.str.1:                               ## @.str.1
	.asciz	"MEMORY:cms-anchors"

L_.str.2:                               ## @.str.2
	.asciz	"hx509_certs_init: MEMORY"

L_.str.3:                               ## @.str.3
	.asciz	"MEMORY:cert-store"

L_.str.4:                               ## @.str.4
	.asciz	"anchors"

L_.str.5:                               ## @.str.5
	.asciz	"store"

L_.str.6:                               ## @.str.6
	.asciz	"r"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to open file %s"

	.comm	_pem_reader,4,2                 ## @pem_reader
L_.str.8:                               ## @.str.8
	.asciz	"PEM reader failed: %d"

L_.str.9:                               ## @.str.9
	.asciz	".pem"

L_.str.10:                              ## @.str.10
	.asciz	"malloc: out of memory"

L_.str.11:                              ## @.str.11
	.asciz	"map_file: %s: %d"

L_.str.12:                              ## @.str.12
	.asciz	"hx509_cms_unwrap_ContentInfo: %d"

	.comm	_asn1_oid_id_pkcs7_signedData,4,2 ## @asn1_oid_id_pkcs7_signedData
L_.str.13:                              ## @.str.13
	.asciz	"Content is not SignedData"

	.comm	_HX509_CMS_VS_ALLOW_ZERO_SIGNER,4,2 ## @HX509_CMS_VS_ALLOW_ZERO_SIGNER
	.comm	_HX509_CMS_VS_ALLOW_DATA_OID_MISMATCH,4,2 ## @HX509_CMS_VS_ALLOW_DATA_OID_MISMATCH
L_.str.14:                              ## @.str.14
	.asciz	"hx509_cms_verify_signed"

L_.str.15:                              ## @.str.15
	.asciz	"type: %s\n"

	.comm	_hx509_ci_print_names,4,2       ## @hx509_ci_print_names
	.comm	_stdout,4,2                     ## @stdout
L_.str.18:                              ## @.str.18
	.asciz	"hx509_write_file: %d"

L_str:                                  ## @str
	.asciz	"signers:"

L_str.19:                               ## @str.19
	.asciz	"unsigned"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cms_verify_sd                  ; -- Begin function cms_verify_sd
	.p2align	2
_cms_verify_sd:                         ; @cms_verify_sd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	stur	xzr, [x29, #-72]
	stp	xzr, xzr, [sp, #64]
	str	xzr, [sp, #56]
	str	xzr, [sp, #32]
	ldr	x8, [x0, #56]
Lloh0:
	adrp	x25, _context@GOTPAGE
Lloh1:
	ldr	x25, [x25, _context@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x25]
	mov	w1, #1
	bl	_hx509_context_set_missing_revoke
LBB0_2:
	ldr	w0, [x25]
	add	x1, sp, #52
	bl	_hx509_lock_init
	ldr	w0, [sp, #52]
	add	x1, x21, #48
	bl	_lock_strings
	ldr	w0, [x25]
	sub	x1, x29, #72
	bl	_hx509_verify_init_ctx
	cbz	w0, LBB0_4
; %bb.3:
	mov	x2, x0
	ldr	w0, [x25]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	w1, #1
	bl	_hx509_err
LBB0_4:
	ldr	w0, [x25]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x4, sp, #56
	mov	w2, #0
	mov	x3, #0
	bl	_hx509_certs_init
	cbz	w0, LBB0_6
; %bb.5:
	mov	x2, x0
	ldr	w0, [x25]
Lloh6:
	adrp	x3, l_.str.2@PAGE
Lloh7:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w1, #1
	bl	_hx509_err
LBB0_6:
	ldr	w0, [x25]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x4, sp, #72
	mov	w2, #0
	mov	x3, #0
	bl	_hx509_certs_init
	cbz	w0, LBB0_8
; %bb.7:
	mov	x2, x0
	ldr	w0, [x25]
Lloh10:
	adrp	x3, l_.str.2@PAGE
Lloh11:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w1, #1
	bl	_hx509_err
LBB0_8:
	ldr	w0, [x25]
	ldr	x2, [sp, #56]
	add	x4, x21, #44
	ldr	w3, [sp, #52]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_certs_strings
	ldr	w0, [x25]
	ldr	x2, [sp, #72]
	add	x4, x21, #40
	ldr	w3, [sp, #52]
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_certs_strings
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_16
; %bb.9:
	add	x8, sp, #96
	stp	xzr, x8, [x29, #-96]
	ldr	x0, [x19]
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fopen
	mov	x22, x0
	cbnz	x0, LBB0_11
; %bb.10:
	ldr	x2, [x19]
Lloh18:
	adrp	x1, l_.str.7@PAGE
Lloh19:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_11:
	ldr	w0, [x25]
Lloh20:
	adrp	x8, _pem_reader@GOTPAGE
Lloh21:
	ldr	x8, [x8, _pem_reader@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	sub	x3, x29, #96
	mov	x1, x22
	bl	_hx509_pem_read
	mov	x23, x0
	mov	x0, x22
	bl	_fclose
	cbz	w23, LBB0_13
; %bb.12:
	str	x23, [sp]
Lloh23:
	adrp	x1, l_.str.8@PAGE
Lloh24:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_13:
	ldur	x8, [x29, #-96]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	x8, [x21]
	cbz	x8, LBB0_43
LBB0_15:
	mov	x22, #0
	ldr	x0, [x21]
	cbnz	x0, LBB0_19
	b	LBB0_21
LBB0_16:
	ldr	x0, [x19]
	add	x1, sp, #32
	add	x2, sp, #40
	bl	_rk_undumpdata
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_18
; %bb.17:
	ldr	x2, [x19]
	str	x0, [sp]
Lloh25:
	adrp	x1, l_.str.11@PAGE
Lloh26:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_18:
	mov	x22, #0
	ldp	x8, x9, [sp, #32]
	stp	x8, x9, [sp, #96]
	ldr	x0, [x21]
	cbz	x0, LBB0_21
LBB0_19:
	add	x22, sp, #80
	add	x1, sp, #80
	bl	__hx509_map_file_os
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_21
; %bb.20:
	ldr	x8, [x21]
	stp	x8, x0, [sp]
Lloh27:
	adrp	x1, l_.str.11@PAGE
Lloh28:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	w0, #1
	bl	_errx
	add	x22, sp, #80
LBB0_21:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_30
; %bb.22:
	add	x0, sp, #96
	add	x1, sp, #24
	sub	x2, x29, #96
	mov	x3, #0
	bl	_hx509_cms_unwrap_ContentInfo
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_24
; %bb.23:
	str	x0, [sp]
Lloh29:
	adrp	x1, l_.str.12@PAGE
Lloh30:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_24:
Lloh31:
	adrp	x1, _asn1_oid_id_pkcs7_signedData@GOTPAGE
Lloh32:
	ldr	x1, [x1, _asn1_oid_id_pkcs7_signedData@GOTPAGEOFF]
	add	x0, sp, #24
	bl	_der_heim_oid_cmp
	cbz	x0, LBB0_26
; %bb.25:
Lloh33:
	adrp	x1, l_.str.13@PAGE
Lloh34:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_26:
	add	x0, sp, #24
	bl	_der_free_oid
	ldr	x0, [sp, #32]
	cbz	x0, LBB0_28
; %bb.27:
	bl	_rk_xfree
	str	xzr, [sp, #32]
	b	LBB0_29
LBB0_28:
	add	x0, sp, #96
	bl	_der_free_octet_string
LBB0_29:
	ldur	q0, [x29, #-96]
	str	q0, [sp, #96]
LBB0_30:
	ldur	x0, [x29, #-72]
	ldr	x1, [sp, #56]
	bl	_hx509_verify_attach_anchors
	ldr	w8, [x21, #16]
Lloh35:
	adrp	x9, _HX509_CMS_VS_ALLOW_ZERO_SIGNER@GOTPAGE
Lloh36:
	ldr	x9, [x9, _HX509_CMS_VS_ALLOW_ZERO_SIGNER@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w8, w9, wzr, eq
	ldr	x9, [x21, #8]
Lloh38:
	adrp	x10, _HX509_CMS_VS_ALLOW_DATA_OID_MISMATCH@GOTPAGE
Lloh39:
	ldr	x10, [x10, _HX509_CMS_VS_ALLOW_DATA_OID_MISMATCH@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w2, w9, w8
	ldr	w0, [x25]
	ldur	x1, [x29, #-72]
	ldp	x3, x4, [sp, #96]
	ldr	x6, [sp, #72]
	add	x8, sp, #64
	sub	x9, x29, #96
	stp	x9, x8, [sp]
	sub	x7, x29, #76
	mov	x5, x22
	bl	_hx509_cms_verify_signed
	mov	x21, x0
	ldr	x0, [sp, #32]
	ldr	x8, [sp, #96]
	cmp	x0, x8
	b.eq	LBB0_35
; %bb.31:
	add	x0, sp, #96
	bl	_der_free_octet_string
	cbz	w21, LBB0_33
LBB0_32:
	ldr	w0, [x25]
Lloh41:
	adrp	x3, l_.str.14@PAGE
Lloh42:
	add	x3, x3, l_.str.14@PAGEOFF
	mov	w1, #1
	mov	x2, x21
	bl	_hx509_err
LBB0_33:
	sub	x0, x29, #76
	add	x2, sp, #24
	mov	w1, #46
	bl	_der_print_heim_oid
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh43:
	adrp	x0, l_.str.15@PAGE
Lloh44:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_printf
	ldr	x0, [sp, #24]
	bl	_free
	sub	x0, x29, #76
	bl	_der_free_oid
	ldr	x8, [sp, #64]
	cbz	x8, LBB0_36
; %bb.34:
Lloh45:
	adrp	x0, l_str@PAGE
Lloh46:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	w0, [x25]
	ldr	x1, [sp, #64]
Lloh47:
	adrp	x8, _hx509_ci_print_names@GOTPAGE
Lloh48:
	ldr	x8, [x8, _hx509_ci_print_names@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
Lloh50:
	adrp	x8, _stdout@GOTPAGE
Lloh51:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh52:
	ldr	w3, [x8]
	bl	_hx509_certs_iter_f
	b	LBB0_37
LBB0_35:
	bl	_rk_xfree
	cbnz	w21, LBB0_32
	b	LBB0_33
LBB0_36:
Lloh53:
	adrp	x0, l_str.19@PAGE
Lloh54:
	add	x0, x0, l_str.19@PAGEOFF
	bl	_puts
LBB0_37:
	ldur	x0, [x29, #-72]
	bl	_hx509_verify_destroy_ctx
	add	x0, sp, #72
	bl	_hx509_certs_free
	add	x0, sp, #64
	bl	_hx509_certs_free
	add	x0, sp, #56
	bl	_hx509_certs_free
	ldr	w0, [sp, #52]
	bl	_hx509_lock_free
	cmp	w20, #2
	b.lt	LBB0_40
; %bb.38:
	ldr	x0, [x19, #8]
	ldp	x1, x2, [x29, #-96]
	bl	__hx509_write_file
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_40
; %bb.39:
	str	x0, [sp]
Lloh55:
	adrp	x1, l_.str.18@PAGE
Lloh56:
	add	x1, x1, l_.str.18@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_40:
	sub	x0, x29, #96
	bl	_der_free_octet_string
	cbz	x22, LBB0_42
; %bb.41:
	mov	x0, x22
	bl	__hx509_unmap_file_os
LBB0_42:
	mov	w0, #0
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_43:
	ldr	x24, [x19]
	mov	x0, x24
	mov	w1, #46
	bl	_strrchr
	cbz	x0, LBB0_15
; %bb.44:
	mov	x23, x0
Lloh57:
	adrp	x1, l_.str.9@PAGE
Lloh58:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_strcasecmp
	cbnz	x0, LBB0_15
; %bb.45:
	mov	x0, x24
	bl	_strdup
	mov	x22, x0
	cbnz	x0, LBB0_47
; %bb.46:
Lloh59:
	adrp	x1, l_.str.10@PAGE
Lloh60:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x24, [x19]
LBB0_47:
	sub	x8, x23, x24
	strb	wzr, [x22, x8]
	add	x1, sp, #80
	mov	x0, x22
	bl	__hx509_map_file_os
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_49
; %bb.48:
	stp	x22, x0, [sp]
Lloh61:
	adrp	x1, l_.str.11@PAGE
Lloh62:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_49:
	mov	x0, x22
	bl	_free
	add	x22, sp, #80
	ldr	x0, [x21]
	cbnz	x0, LBB0_19
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_context,4,2                    ; @context
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hx509_verify_init_ctx"

l_.str.1:                               ; @.str.1
	.asciz	"MEMORY:cms-anchors"

l_.str.2:                               ; @.str.2
	.asciz	"hx509_certs_init: MEMORY"

l_.str.3:                               ; @.str.3
	.asciz	"MEMORY:cert-store"

l_.str.4:                               ; @.str.4
	.asciz	"anchors"

l_.str.5:                               ; @.str.5
	.asciz	"store"

l_.str.6:                               ; @.str.6
	.asciz	"r"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to open file %s"

	.comm	_pem_reader,4,2                 ; @pem_reader
l_.str.8:                               ; @.str.8
	.asciz	"PEM reader failed: %d"

l_.str.9:                               ; @.str.9
	.asciz	".pem"

l_.str.10:                              ; @.str.10
	.asciz	"malloc: out of memory"

l_.str.11:                              ; @.str.11
	.asciz	"map_file: %s: %d"

l_.str.12:                              ; @.str.12
	.asciz	"hx509_cms_unwrap_ContentInfo: %d"

	.comm	_asn1_oid_id_pkcs7_signedData,4,2 ; @asn1_oid_id_pkcs7_signedData
l_.str.13:                              ; @.str.13
	.asciz	"Content is not SignedData"

	.comm	_HX509_CMS_VS_ALLOW_ZERO_SIGNER,4,2 ; @HX509_CMS_VS_ALLOW_ZERO_SIGNER
	.comm	_HX509_CMS_VS_ALLOW_DATA_OID_MISMATCH,4,2 ; @HX509_CMS_VS_ALLOW_DATA_OID_MISMATCH
l_.str.14:                              ; @.str.14
	.asciz	"hx509_cms_verify_signed"

l_.str.15:                              ; @.str.15
	.asciz	"type: %s\n"

	.comm	_hx509_ci_print_names,4,2       ; @hx509_ci_print_names
	.comm	_stdout,4,2                     ; @stdout
l_.str.18:                              ; @.str.18
	.asciz	"hx509_write_file: %d"

l_str:                                  ; @str
	.asciz	"signers:"

l_str.19:                               ; @str.19
	.asciz	"unsigned"

.subsections_via_symbols
