	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_verify                    ## -- Begin function X509_verify
	.p2align	4, 0x90
_X509_verify:                           ## @X509_verify
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_X509_ALGOR_cmp
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movl	(%r15), %edi
	callq	_OBJ_obj2nid
	leaq	-40(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movl	%eax, %edi
	callq	_OBJ_find_sigid_algs
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	-36(%rbp), %ecx
	movq	_NID_sm2@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_5
## %bb.4:
	movl	-40(%rbp), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_x509_verify_sm2
	jmp	LBB0_6
LBB0_2:
	movq	_X509_F_X509_VERIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASN1_R_UNKNOWN_SIGNATURE_ALGORITHM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_X509err
	jmp	LBB0_7
LBB0_5:
	movq	_X509_CINF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ASN1_ITEM_rptr
	leaq	4(%rbx), %rdx
	movl	%eax, %edi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_ASN1_item_verify
LBB0_6:
	movl	%eax, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_F_X509_VERIFY,4,2         ## @X509_F_X509_VERIFY
	.comm	_ASN1_R_UNKNOWN_SIGNATURE_ALGORITHM,4,2 ## @ASN1_R_UNKNOWN_SIGNATURE_ALGORITHM
	.comm	_NID_sm2,4,2                    ## @NID_sm2
	.comm	_X509_CINF,4,2                  ## @X509_CINF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_verify                    ; -- Begin function X509_verify
	.p2align	2
_X509_verify:                           ; @X509_verify
	.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, x1
	mov	x20, x0
	add	x21, x0, #8
	mov	x0, x21
	mov	x1, x20
	bl	_X509_ALGOR_cmp
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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
LBB0_3:
	ldr	w0, [x21]
	bl	_OBJ_obj2nid
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_OBJ_find_sigid_algs
	cbz	w0, LBB0_6
; %bb.4:
	ldr	w3, [sp, #8]
Lloh0:
	adrp	x8, _NID_sm2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NID_sm2@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w3, w8
	b.ne	LBB0_7
; %bb.5:
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x19
	bl	_x509_verify_sm2
	b	LBB0_2
LBB0_6:
Lloh3:
	adrp	x8, _X509_F_X509_VERIFY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X509_F_X509_VERIFY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ASN1_R_UNKNOWN_SIGNATURE_ALGORITHM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ASN1_R_UNKNOWN_SIGNATURE_ALGORITHM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_X509err
	b	LBB0_1
LBB0_7:
Lloh9:
	adrp	x8, _X509_CINF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _X509_CINF@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_ASN1_ITEM_rptr
	add	x2, x20, #4
	mov	x1, x21
	mov	x3, x20
	mov	x4, x19
	bl	_ASN1_item_verify
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_F_X509_VERIFY,4,2         ; @X509_F_X509_VERIFY
	.comm	_ASN1_R_UNKNOWN_SIGNATURE_ALGORITHM,4,2 ; @ASN1_R_UNKNOWN_SIGNATURE_ALGORITHM
	.comm	_NID_sm2,4,2                    ; @NID_sm2
	.comm	_X509_CINF,4,2                  ; @X509_CINF
.subsections_via_symbols
