	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_CMSIdentifier
_fill_CMSIdentifier:                    ## @fill_CMSIdentifier
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%edi, %r14d
	cmpl	$129, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$128, %esi
	jne	LBB0_7
## %bb.2:
	movq	_choice_CMSIdentifier_subjectKeyIdentifier@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	%r14d, %edi
	callq	__hx509_get_cert
	leaq	8(%r15), %rsi
	movl	%eax, %edi
	callq	__hx509_find_extension_subject_key_id
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movq	_choice_CMSIdentifier_issuerAndSerialNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	leaq	-28(%rbp), %rsi
	movl	%r14d, %edi
	callq	_hx509_cert_get_issuer
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movl	-28(%rbp), %edi
	leaq	4(%r15), %rsi
	callq	_hx509_name_to_Name
	movl	%eax, %ebx
	leaq	-28(%rbp), %rdi
	callq	_hx509_name_free
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.6:
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_hx509_cert_get_serialnumber
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	__hx509_abort
                                        ## implicit-def: $ebx
	jmp	LBB0_8
LBB0_3:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_choice_CMSIdentifier_subjectKeyIdentifier,4,2 ## @choice_CMSIdentifier_subjectKeyIdentifier
	.comm	_choice_CMSIdentifier_issuerAndSerialNumber,4,2 ## @choice_CMSIdentifier_issuerAndSerialNumber
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CMS fill identifier with unknown type"

	.no_dead_strip	_fill_CMSIdentifier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_CMSIdentifier
_fill_CMSIdentifier:                    ; @fill_CMSIdentifier
	.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	x20, x0
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _choice_CMSIdentifier_subjectKeyIdentifier@GOTPAGE
Lloh1:
	ldr	x8, [x8, _choice_CMSIdentifier_subjectKeyIdentifier@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	mov	x0, x20
	bl	__hx509_get_cert
	add	x1, x19, #8
	bl	__hx509_find_extension_subject_key_id
	cbz	w0, LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _choice_CMSIdentifier_issuerAndSerialNumber@GOTPAGE
Lloh4:
	ldr	x8, [x8, _choice_CMSIdentifier_issuerAndSerialNumber@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	add	x1, sp, #12
	mov	x0, x20
	bl	_hx509_cert_get_issuer
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	w0, [sp, #12]
	add	x1, x19, #4
	bl	_hx509_name_to_Name
	mov	x21, x0
	add	x0, sp, #12
	bl	_hx509_name_free
	cbnz	w21, LBB0_8
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_hx509_cert_get_serialnumber
	mov	x21, x0
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__hx509_abort
                                        ; implicit-def: $w21
	b	LBB0_8
LBB0_7:
	mov	w21, #0
LBB0_8:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_choice_CMSIdentifier_subjectKeyIdentifier,4,2 ; @choice_CMSIdentifier_subjectKeyIdentifier
	.comm	_choice_CMSIdentifier_issuerAndSerialNumber,4,2 ; @choice_CMSIdentifier_issuerAndSerialNumber
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CMS fill identifier with unknown type"

	.no_dead_strip	_fill_CMSIdentifier
.subsections_via_symbols
