	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_sm2_id
_test_sm2_id:                           ## @test_sm2_id
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_bad_f@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_BIO_new_file
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PEM_read_bio_X509
	movl	$0, %edi
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_ASN1_OCTET_STRING_new
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	$13, %edx
	callq	_ASN1_OCTET_STRING_set
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_X509_set0_sm2_id
	movq	%r15, %rdi
	callq	_X509_get0_sm2_id
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_ASN1_OCTET_STRING_cmp
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_eq
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%r14b
	jmp	LBB0_8
LBB0_1:
	xorl	%edi, %edi
	jmp	LBB0_9
LBB0_5:
	movq	%r12, %rdi
	callq	_ASN1_OCTET_STRING_free
LBB0_8:
	movq	%r15, %rdi
LBB0_9:
	callq	_X509_free
	movq	%rbx, %rdi
	callq	_BIO_free
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"this is an ID"

	.comm	_bad_f,4,2                      ## @bad_f
L_.str.1:                               ## @.str.1
	.asciz	"r"

	.no_dead_strip	_test_sm2_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_sm2_id
_test_sm2_id:                           ; @test_sm2_id
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _bad_f@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bad_f@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BIO_new_file
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	mov	x3, #0
	bl	_PEM_read_bio_X509
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.2:
	bl	_ASN1_OCTET_STRING_new
	mov	x21, x0
	cbz	x0, LBB0_9
; %bb.3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #13
	bl	_ASN1_OCTET_STRING_set
	cbz	w0, LBB0_7
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_X509_set0_sm2_id
	mov	x0, x20
	bl	_X509_get0_sm2_id
	mov	x22, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_8
; %bb.5:
	mov	x0, x21
	mov	x1, x22
	bl	_ASN1_OCTET_STRING_cmp
	mov	w1, #0
	bl	_TEST_int_eq
	cmp	w0, #0
	cset	w21, ne
	b	LBB0_9
LBB0_6:
	mov	w21, #0
	mov	x20, #0
	b	LBB0_9
LBB0_7:
	mov	x0, x21
	bl	_ASN1_OCTET_STRING_free
LBB0_8:
	mov	w21, #0
LBB0_9:
	mov	x0, x20
	bl	_X509_free
	mov	x0, x19
	bl	_BIO_free
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"this is an ID"

	.comm	_bad_f,4,2                      ; @bad_f
l_.str.1:                               ; @.str.1
	.asciz	"r"

	.no_dead_strip	_test_sm2_id
.subsections_via_symbols
