	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_certificate_type          ## -- Begin function X509_certificate_type
	.p2align	4, 0x90
_X509_certificate_type:                 ## @X509_certificate_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.1:
	movq	%rdi, %r14
	testq	%rsi, %rsi
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_X509_get0_pubkey
	movq	%rax, %rsi
	testq	%rax, %rax
	je	LBB0_24
LBB0_3:
	movq	%rsi, %rdi
	callq	_EVP_PKEY_id
                                        ## kill: def $eax killed $eax def $rax
	xorl	%ebx, %ebx
	addl	$-130, %eax
	cmpl	$12, %eax
	ja	LBB0_15
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	movq	_EVP_PKT_EXCH@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	movq	_EVP_PKT_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
LBB0_6:
	movq	_EVP_PK_RSA@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	movq	_EVP_PK_RSA@GOTPCREL(%rip), %rax
	movq	_EVP_PKT_SIGN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_EVP_PKT_ENC@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	movq	_EVP_PK_EC@GOTPCREL(%rip), %rax
	movq	_EVP_PKT_SIGN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_EVP_PKT_EXCH@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	movq	_EVP_PK_DSA@GOTPCREL(%rip), %rax
LBB0_12:
	movq	_EVP_PKT_SIGN@GOTPCREL(%rip), %rcx
LBB0_13:
	movl	(%rcx), %ebx
LBB0_14:
	orl	(%rax), %ebx
LBB0_15:
	movq	%r14, %rdi
	callq	_X509_get_signature_nid
	movl	%eax, -20(%rbp)
	testl	%eax, %eax
	je	LBB0_24
## %bb.16:
	leaq	-20(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_OBJ_find_sigid_algs
	testq	%rax, %rax
	je	LBB0_24
## %bb.17:
	movl	-20(%rbp), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_21
## %bb.18:
	leal	-133(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_19
## %bb.22:
	movq	_EVP_PKS_DSA@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_21:
	movq	_EVP_PKS_RSA@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_19:
	cmpl	$135, %eax
	jne	LBB0_24
## %bb.20:
	movq	_EVP_PKS_EC@GOTPCREL(%rip), %rax
LBB0_23:
	orl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movq	_EVP_PK_DH@GOTPCREL(%rip), %rax
	movq	_EVP_PKT_EXCH@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_EVP_PK_RSA,4,2                 ## @EVP_PK_RSA
	.comm	_EVP_PKT_SIGN,4,2               ## @EVP_PKT_SIGN
	.comm	_EVP_PKT_ENC,4,2                ## @EVP_PKT_ENC
	.comm	_EVP_PK_DSA,4,2                 ## @EVP_PK_DSA
	.comm	_EVP_PK_EC,4,2                  ## @EVP_PK_EC
	.comm	_EVP_PKT_EXCH,4,2               ## @EVP_PKT_EXCH
	.comm	_EVP_PK_DH,4,2                  ## @EVP_PK_DH
	.comm	_EVP_PKS_RSA,4,2                ## @EVP_PKS_RSA
	.comm	_EVP_PKS_DSA,4,2                ## @EVP_PKS_DSA
	.comm	_EVP_PKS_EC,4,2                 ## @EVP_PKS_EC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_certificate_type          ; -- Begin function X509_certificate_type
	.p2align	2
_X509_certificate_type:                 ; @X509_certificate_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	cbnz	x1, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_X509_get0_pubkey
	mov	x1, x0
	cbz	x0, LBB0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VP_PKT_SIGN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _EVP_PKT_EXCH@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EVP_PKT_EXCH@GOTPAGEOFF]
LBB0_11:
	ldr	w9, [x9]
	orr	w19, w8, w9
	b	LBB0_15
LBB0_12:
Lloh25:
	adrp	x8, _EVP_PK_DSA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EVP_PK_DSA@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _EVP_PKT_SIGN@GOTPAGE
Lloh28:
	ldr	x9, [x9, _EVP_PKT_SIGN@GOTPAGEOFF]
LBB0_14:
	ldr	w9, [x9]
	orr	w19, w9, w8
LBB0_15:
	mov	x0, x20
	bl	_X509_get_signature_nid
	str	w0, [sp, #12]
	cbz	w0, LBB0_24
; %bb.16:
	add	x2, sp, #12
	mov	x1, #0
	bl	_OBJ_find_sigid_algs
	cbz	x0, LBB0_24
; %bb.17:
	ldr	w8, [sp, #12]
	sub	w9, w8, #128
	cmp	w9, #2
	b.lo	LBB0_20
; %bb.18:
	sub	w9, w8, #133
	cmp	w9, #2
	b.hs	LBB0_21
; %bb.19:
Lloh29:
	adrp	x8, _EVP_PKS_DSA@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EVP_PKS_DSA@GOTPAGEOFF]
	b	LBB0_23
LBB0_20:
Lloh31:
	adrp	x8, _EVP_PKS_RSA@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EVP_PKS_RSA@GOTPAGEOFF]
	b	LBB0_23
LBB0_21:
	cmp	w8, #135
	b.ne	LBB0_24
; %bb.22:
Lloh33:
	adrp	x8, _EVP_PKS_EC@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EVP_PKS_EC@GOTPAGEOFF]
LBB0_23:
	ldr	w8, [x8]
	orr	w19, w8, w19
LBB0_24:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_25:
Lloh35:
	adrp	x8, _EVP_PK_DH@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EVP_PK_DH@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _EVP_PKT_EXCH@GOTPAGE
Lloh39:
	ldr	x9, [x9, _EVP_PKT_EXCH@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_25-LBB0_5)>>2
                                        ; -- End function
	.comm	_EVP_PK_RSA,4,2                 ; @EVP_PK_RSA
	.comm	_EVP_PKT_SIGN,4,2               ; @EVP_PKT_SIGN
	.comm	_EVP_PKT_ENC,4,2                ; @EVP_PKT_ENC
	.comm	_EVP_PK_DSA,4,2                 ; @EVP_PK_DSA
	.comm	_EVP_PK_EC,4,2                  ; @EVP_PK_EC
	.comm	_EVP_PKT_EXCH,4,2               ; @EVP_PKT_EXCH
	.comm	_EVP_PK_DH,4,2                  ; @EVP_PK_DH
	.comm	_EVP_PKS_RSA,4,2                ; @EVP_PKS_RSA
	.comm	_EVP_PKS_DSA,4,2                ; @EVP_PKS_DSA
	.comm	_EVP_PKS_EC,4,2                 ; @EVP_PKS_EC
.subsections_via_symbols
