	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_validate_cert            ## -- Begin function hx509_validate_cert
	.p2align	4, 0x90
_hx509_validate_cert:                   ## @hx509_validate_cert
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r13
	movl	%edi, -72(%rbp)                 ## 4-byte Spill
	movl	%edx, %edi
	callq	__hx509_get_cert
	movq	%rax, %rbx
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	__hx509_cert_get_version
	cmpl	$3, %eax
	je	LBB0_2
## %bb.1:
	movq	_HX509_VALIDATE_F_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
LBB0_2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	cmpl	$1, (%rax)
	jg	LBB0_6
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 24(%rax)
	je	LBB0_6
## %bb.5:
	movq	_HX509_VALIDATE_F_VALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	__hx509_cert_get_version
	cmpl	$3, %eax
	jl	LBB0_9
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 24(%rax)
	jne	LBB0_9
## %bb.8:
	movq	_HX509_VALIDATE_F_VALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
LBB0_9:
	leaq	-60(%rbp), %rsi
	movl	%r14d, %edi
	callq	_hx509_cert_get_subject
	testl	%eax, %eax
	jne	LBB0_58
## %bb.10:
	movl	-60(%rbp), %edi
	leaq	-56(%rbp), %rsi
	callq	_hx509_name_to_string
	movq	_HX509_VALIDATE_F_VERBOSE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	-56(%rbp), %rcx
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
	movq	-56(%rbp), %rdi
	callq	_free
	leaq	-64(%rbp), %rsi
	movl	%r14d, %edi
	callq	_hx509_cert_get_issuer
	testl	%eax, %eax
	jne	LBB0_58
## %bb.11:
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movl	-64(%rbp), %edi
	leaq	-56(%rbp), %rsi
	callq	_hx509_name_to_string
	movl	(%r12), %esi
	movq	-56(%rbp), %rcx
	leaq	L_.str.4(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
	movq	-56(%rbp), %rdi
	callq	_free
	movl	-60(%rbp), %edi
	movl	-64(%rbp), %esi
	callq	_hx509_name_cmp
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movl	$1, -128(%rbp)
	movl	(%r12), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
LBB0_13:
	movl	(%r12), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	32(%rbx), %r15
	leaq	36(%rbx), %rdi
	leaq	-56(%rbp), %r14
	movq	%r14, %rsi
	callq	_Time2string
	movl	(%r12), %esi
	movq	-56(%rbp), %rcx
	leaq	L_.str.7(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
	movq	-56(%rbp), %rdi
	callq	_free
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_Time2string
	movl	(%r12), %esi
	movq	-56(%rbp), %rcx
	leaq	L_.str.8(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
	movq	-56(%rbp), %rdi
	callq	_free
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_33
## %bb.14:
	cmpq	$0, (%rax)
	jne	LBB0_16
## %bb.15:
	movq	_HX509_VALIDATE_F_VALIDATE@GOTPCREL(%rip), %rax
	movq	_HX509_VALIDATE_F_VERBOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	L_.str.9(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_34
LBB0_16:
	movq	_check_extension@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	leaq	L_.str.12(%rip), %rdx
	xorl	%eax, %eax
	callq	_validate_print
LBB0_32:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	cmpq	(%rax), %r12
	jae	LBB0_34
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	movq	(%r15), %rcx
	cmpq	$0, 16(%rcx)
	je	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	24(%rcx), %edi
	movq	%r12, %r14
	shlq	$4, %r14
	movq	8(%rax), %rsi
	addq	%r14, %rsi
	callq	_der_heim_oid_cmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	$56, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rax
	cmpq	$0, -8(%rax,%r13)
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rcx
	movl	(%rax,%r13), %edi
	movq	8(%rcx), %rsi
	addq	%r14, %rsi
	callq	_der_heim_oid_cmp
	addq	$32, %r13
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_21
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%ebx, %ebx
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r15), %rax
	shlq	$5, %rbx
	movq	16(%rax,%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_24
## %bb.31:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_HX509_VALIDATE_F_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HX509_VALIDATE_F_VALIDATE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	leaq	L_.str.13(%rip), %rdx
	xorl	%eax, %eax
	callq	_validate_print
	movq	(%r15), %rax
	movl	(%rax,%rbx), %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rcx
	addq	8(%rcx), %r14
	movq	%r13, %rdi
	leaq	-128(%rbp), %rsi
	movq	%r14, %rcx
	callq	*8(%rax,%rbx)
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	8(%rax), %rax
	movq	%r12, %rbx
	shlq	$4, %rbx
	cmpq	$0, 8(%rax,%rbx)
	movl	$0, %r14d
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_HX509_VALIDATE_F_VALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_26:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	_HX509_VALIDATE_F_VERBOSE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r14d, %esi
	leaq	L_.str.10(%rip), %rdx
	xorl	%eax, %eax
	callq	_validate_print
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	8(%rax), %rax
	cmpq	$0, 8(%rax,%rbx)
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	leaq	L_.str.11(%rip), %rdx
	xorl	%eax, %eax
	callq	_validate_print
LBB0_28:                                ##   in Loop: Header=BB0_17 Depth=1
	testl	%r14d, (%r13)
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	addq	8(%rax), %rbx
	movq	_validate_vprint@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_hx509_oid_print
	jmp	LBB0_30
LBB0_33:
	movl	(%r12), %esi
	leaq	L_.str.14(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
LBB0_34:
	cmpq	$0, -96(%rbp)
	je	LBB0_37
## %bb.35:
	cmpl	$0, -88(%rbp)
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_40
## %bb.36:
	leaq	L_.str.15(%rip), %rdx
	jmp	LBB0_39
LBB0_37:
	cmpl	$0, -84(%rbp)
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_40
## %bb.38:
	leaq	L_.str.16(%rip), %rdx
LBB0_39:
	movq	_HX509_VALIDATE_F_VALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
LBB0_40:
	cmpl	$0, -88(%rbp)
	jne	LBB0_42
## %bb.41:
	movq	_HX509_VALIDATE_F_VALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.17(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
LBB0_42:
	movq	-104(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_45
## %bb.43:
	cmpq	$0, -96(%rbp)
	je	LBB0_45
## %bb.44:
	movq	_HX509_VALIDATE_F_VALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.18(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
	movq	-104(%rbp), %rax
LBB0_45:
	testq	%rax, %rax
	je	LBB0_50
## %bb.46:
	cmpq	$0, -120(%rbp)
	je	LBB0_48
## %bb.47:
	movq	_HX509_VALIDATE_F_VALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.19(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
LBB0_48:
	cmpq	$0, -112(%rbp)
	je	LBB0_50
## %bb.49:
	movq	_HX509_VALIDATE_F_VALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.20(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
LBB0_50:
	movl	-60(%rbp), %edi
	callq	_hx509_name_is_null_p
	testq	%rax, %rax
	je	LBB0_53
## %bb.51:
	cmpq	$0, -120(%rbp)
	jne	LBB0_53
## %bb.52:
	movq	_HX509_VALIDATE_F_VALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.21(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
LBB0_53:
	movl	-128(%rbp), %eax
	movl	-124(%rbp), %ecx
	orl	%eax, %ecx
	jne	LBB0_55
## %bb.54:
	movq	_HX509_VALIDATE_F_VALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.22(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
	movl	-128(%rbp), %eax
LBB0_55:
	testl	%eax, %eax
	je	LBB0_57
## %bb.56:
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	leaq	40(%r8), %rdx
	movq	%r8, %rcx
	addq	$16, %rcx
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	__hx509_verify_signature_bitstring
	testl	%eax, %eax
	leaq	L_.str.23(%rip), %rax
	leaq	L_.str.24(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	_HX509_VALIDATE_F_VALIDATE@GOTPCREL(%rip), %rax
	cmoveq	_HX509_VALIDATE_F_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_validate_print
LBB0_57:
	leaq	-60(%rbp), %rdi
	callq	_hx509_name_free
	leaq	-64(%rbp), %rdi
	callq	_hx509_name_free
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_58:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_HX509_VALIDATE_F_VERBOSE,4,2   ## @HX509_VALIDATE_F_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not version 3 certificate\n"

	.comm	_HX509_VALIDATE_F_VALIDATE,4,2  ## @HX509_VALIDATE_F_VALIDATE
L_.str.1:                               ## @.str.1
	.asciz	"Not version 3 certificate with extensions\n"

L_.str.2:                               ## @.str.2
	.asciz	"Version 3 certificate without extensions\n"

L_.str.3:                               ## @.str.3
	.asciz	"subject name: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"issuer name: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"\tis a self-signed certificate\n"

L_.str.6:                               ## @.str.6
	.asciz	"Validity:\n"

L_.str.7:                               ## @.str.7
	.asciz	"\tnotBefore %s\n"

L_.str.8:                               ## @.str.8
	.asciz	"\tnotAfter  %s\n"

L_.str.9:                               ## @.str.9
	.asciz	"The empty extensions list is not allowed by PKIX\n"

	.comm	_check_extension,8,3            ## @check_extension
L_.str.10:                              ## @.str.10
	.asciz	"don't know what "

L_.str.11:                              ## @.str.11
	.asciz	"and is CRITICAL "

	.comm	_validate_vprint,4,2            ## @validate_vprint
L_.str.12:                              ## @.str.12
	.asciz	" is\n"

L_.str.13:                              ## @.str.13
	.asciz	"checking extention: %s\n"

L_.str.14:                              ## @.str.14
	.asciz	"no extentions\n"

L_.str.15:                              ## @.str.15
	.asciz	"CA certificate have no SubjectKeyIdentifier\n"

L_.str.16:                              ## @.str.16
	.asciz	"Is not CA and doesn't have AuthorityKeyIdentifier\n"

L_.str.17:                              ## @.str.17
	.asciz	"Doesn't have SubjectKeyIdentifier\n"

L_.str.18:                              ## @.str.18
	.asciz	"Proxy and CA at the same time!\n"

L_.str.19:                              ## @.str.19
	.asciz	"Proxy and have SAN\n"

L_.str.20:                              ## @.str.20
	.asciz	"Proxy and have IAN\n"

L_.str.21:                              ## @.str.21
	.asciz	"NULL subject DN and doesn't have a SAN\n"

L_.str.22:                              ## @.str.22
	.asciz	"Not a CA nor PROXY and doesn't haveCRL Dist Point\n"

L_.str.23:                              ## @.str.23
	.asciz	"Self-signed certificate was self-signed\n"

L_.str.24:                              ## @.str.24
	.asciz	"Self-signed certificate NOT really self-signed!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_validate_cert            ; -- Begin function hx509_validate_cert
	.p2align	2
_hx509_validate_cert:                   ; @hx509_validate_cert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x19, x1
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	mov	x0, x2
	bl	__hx509_get_cert
	mov	x22, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	mov	x0, x22
	bl	__hx509_cert_get_version
Lloh0:
	adrp	x24, _HX509_VALIDATE_F_VERBOSE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HX509_VALIDATE_F_VERBOSE@GOTPAGEOFF]
	cmp	w0, #3
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x24]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_validate_print
LBB0_2:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x8]
	cmp	w8, #2
	b.ge	LBB0_6
LBB0_4:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_6
; %bb.5:
Lloh4:
	adrp	x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_validate_print
LBB0_6:
	mov	x0, x22
	bl	__hx509_cert_get_version
	cmp	w0, #2
	b.le	LBB0_9
; %bb.7:
	ldr	x8, [x22, #24]
	cbnz	x8, LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_validate_print
LBB0_9:
	add	x1, sp, #72
	mov	x0, x20
	bl	_hx509_cert_get_subject
	cbnz	w0, LBB0_56
; %bb.10:
	ldr	w0, [sp, #72]
	add	x1, sp, #64
	bl	_hx509_name_to_string
	ldr	w1, [x24]
	ldr	x8, [sp, #64]
	str	x8, [sp]
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_validate_print
	ldr	x0, [sp, #64]
	bl	_free
	add	x1, sp, #76
	mov	x0, x20
	bl	_hx509_cert_get_issuer
	cbnz	w0, LBB0_56
; %bb.11:
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	ldr	w0, [sp, #76]
	add	x1, sp, #64
	bl	_hx509_name_to_string
	ldr	w1, [x24]
	ldr	x8, [sp, #64]
	str	x8, [sp]
Lloh16:
	adrp	x2, l_.str.4@PAGE
Lloh17:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_validate_print
	ldr	x0, [sp, #64]
	bl	_free
	ldp	w0, w1, [sp, #72]
	bl	_hx509_name_cmp
	cbnz	x0, LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [sp, #16]
	ldr	w1, [x24]
Lloh18:
	adrp	x2, l_.str.5@PAGE
Lloh19:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_validate_print
LBB0_13:
	ldr	w1, [x24]
Lloh20:
	adrp	x2, l_.str.6@PAGE
Lloh21:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_validate_print
	add	x23, x22, #32
	add	x0, x22, #36
	add	x1, sp, #64
	bl	_Time2string
	ldr	w1, [x24]
	ldr	x8, [sp, #64]
	str	x8, [sp]
Lloh22:
	adrp	x2, l_.str.7@PAGE
Lloh23:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_validate_print
	ldr	x0, [sp, #64]
	bl	_free
	add	x1, sp, #64
	mov	x0, x23
	bl	_Time2string
	ldr	w1, [x24]
	ldr	x8, [sp, #64]
	str	x8, [sp]
Lloh24:
	adrp	x2, l_.str.8@PAGE
Lloh25:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_validate_print
	ldr	x0, [sp, #64]
	bl	_free
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_31
; %bb.14:
	mov	x21, x24
	ldr	x9, [x8]
	cbnz	x9, LBB0_16
; %bb.15:
Lloh26:
	adrp	x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w1, w9, w8
Lloh29:
	adrp	x2, l_.str.9@PAGE
Lloh30:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_validate_print
	ldr	x8, [x22, #24]
	ldr	x9, [x8]
	cbz	x9, LBB0_32
LBB0_16:
	mov	x20, #0
Lloh31:
	adrp	x26, _check_extension@GOTPAGE
Lloh32:
	ldr	x26, [x26, _check_extension@GOTPAGEOFF]
Lloh33:
	adrp	x23, l_.str.10@PAGE
Lloh34:
	add	x23, x23, l_.str.10@PAGEOFF
Lloh35:
	adrp	x24, l_.str.12@PAGE
Lloh36:
	add	x24, x24, l_.str.12@PAGEOFF
Lloh37:
	adrp	x25, l_.str.11@PAGE
Lloh38:
	add	x25, x25, l_.str.11@PAGEOFF
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x19
	mov	x1, x27
	mov	x2, x24
	bl	_validate_print
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x20, x20, #1
	ldr	x8, [x22, #24]
	ldr	x9, [x8]
	cmp	x20, x9
	b.hs	LBB0_32
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
	ldr	x9, [x26]
	ldr	x10, [x9, #16]
	cbz	x10, LBB0_27
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w0, [x9, #24]
	ldr	x8, [x8, #8]
	add	x1, x8, x20, lsl #4
	bl	_der_heim_oid_cmp
	cbz	x0, LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x28, #0
	mov	x27, #0
LBB0_22:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x26]
	add	x8, x8, x28
	ldr	x9, [x8, #48]
	cbz	x9, LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=2
	ldr	x9, [x22, #24]
	ldr	w0, [x8, #56]
	ldr	x8, [x9, #8]
	add	x1, x8, x20, lsl #4
	bl	_der_heim_oid_cmp
	add	x28, x28, #32
	add	x27, x27, #1
	cbnz	x0, LBB0_22
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x27, #0
LBB0_25:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x26]
	add	x8, x8, x27, lsl #5
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_19 Depth=1
Lloh39:
	adrp	x9, _HX509_VALIDATE_F_VALIDATE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _HX509_VALIDATE_F_VALIDATE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	ldr	w10, [x21]
	orr	w1, w10, w9
	str	x8, [sp]
	mov	x0, x19
Lloh42:
	adrp	x2, l_.str.13@PAGE
Lloh43:
	add	x2, x2, l_.str.13@PAGEOFF
	bl	_validate_print
	ldr	x8, [x26]
	add	x8, x8, x27, lsl #5
	ldr	x9, [x8, #8]
	ldr	w2, [x8]
	ldr	x8, [x22, #24]
	ldr	x8, [x8, #8]
	add	x3, x8, x20, lsl #4
	add	x1, sp, #16
	mov	x0, x19
	blr	x9
	b	LBB0_18
LBB0_27:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x21]
	ldr	x9, [x22, #24]
	ldr	x9, [x9, #8]
	lsl	x28, x20, #4
	add	x9, x9, x28
	ldr	x9, [x9, #8]
Lloh44:
	adrp	x10, _HX509_VALIDATE_F_VALIDATE@GOTPAGE
Lloh45:
	ldr	x10, [x10, _HX509_VALIDATE_F_VALIDATE@GOTPAGEOFF]
Lloh46:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w27, w9, w8
	mov	x0, x19
	mov	x1, x27
	mov	x2, x23
	bl	_validate_print
	ldr	x8, [x22, #24]
	ldr	x8, [x8, #8]
	add	x8, x8, x28
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x19
	mov	x1, x27
	mov	x2, x25
	bl	_validate_print
LBB0_29:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x19]
	tst	w8, w27
	b.eq	LBB0_17
; %bb.30:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x22, #24]
	ldr	x8, [x8, #8]
	add	x0, x8, x20, lsl #4
Lloh47:
	adrp	x8, _validate_vprint@GOTPAGE
Lloh48:
	ldr	x8, [x8, _validate_vprint@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_hx509_oid_print
	b	LBB0_17
LBB0_31:
	mov	x21, x24
	ldr	w1, [x24]
Lloh50:
	adrp	x2, l_.str.14@PAGE
Lloh51:
	add	x2, x2, l_.str.14@PAGEOFF
	mov	x0, x19
	bl	_validate_print
LBB0_32:
	ldr	x8, [sp, #48]
	cbz	x8, LBB0_35
; %bb.33:
	ldr	w8, [sp, #56]
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
	cbnz	w8, LBB0_38
; %bb.34:
Lloh52:
	adrp	x2, l_.str.15@PAGE
Lloh53:
	add	x2, x2, l_.str.15@PAGEOFF
	b	LBB0_37
LBB0_35:
	ldr	w8, [sp, #60]
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
	cbnz	w8, LBB0_38
; %bb.36:
Lloh54:
	adrp	x2, l_.str.16@PAGE
Lloh55:
	add	x2, x2, l_.str.16@PAGEOFF
LBB0_37:
Lloh56:
	adrp	x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGE
Lloh57:
	ldr	x8, [x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_validate_print
LBB0_38:
	ldr	w8, [sp, #56]
	cbnz	w8, LBB0_40
; %bb.39:
Lloh59:
	adrp	x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGE
Lloh60:
	ldr	x8, [x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
Lloh62:
	adrp	x2, l_.str.17@PAGE
Lloh63:
	add	x2, x2, l_.str.17@PAGEOFF
	mov	x0, x19
	bl	_validate_print
LBB0_40:
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_43
; %bb.41:
	ldr	x9, [sp, #48]
	cbz	x9, LBB0_43
; %bb.42:
Lloh64:
	adrp	x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGE
Lloh65:
	ldr	x8, [x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
Lloh67:
	adrp	x2, l_.str.18@PAGE
Lloh68:
	add	x2, x2, l_.str.18@PAGEOFF
	mov	x0, x19
	bl	_validate_print
	ldr	x8, [sp, #40]
LBB0_43:
	cbz	x8, LBB0_48
; %bb.44:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_46
; %bb.45:
Lloh69:
	adrp	x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGE
Lloh70:
	ldr	x8, [x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
Lloh72:
	adrp	x2, l_.str.19@PAGE
Lloh73:
	add	x2, x2, l_.str.19@PAGEOFF
	mov	x0, x19
	bl	_validate_print
LBB0_46:
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_48
; %bb.47:
Lloh74:
	adrp	x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGE
Lloh75:
	ldr	x8, [x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGEOFF]
Lloh76:
	ldr	w1, [x8]
Lloh77:
	adrp	x2, l_.str.20@PAGE
Lloh78:
	add	x2, x2, l_.str.20@PAGEOFF
	mov	x0, x19
	bl	_validate_print
LBB0_48:
	ldr	w0, [sp, #72]
	bl	_hx509_name_is_null_p
	cbz	x0, LBB0_51
; %bb.49:
	ldr	x8, [sp, #24]
	cbnz	x8, LBB0_51
; %bb.50:
Lloh79:
	adrp	x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGE
Lloh80:
	ldr	x8, [x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
Lloh82:
	adrp	x2, l_.str.21@PAGE
Lloh83:
	add	x2, x2, l_.str.21@PAGEOFF
	mov	x0, x19
	bl	_validate_print
LBB0_51:
	ldp	w8, w9, [sp, #16]
	orr	w9, w8, w9
	cbnz	w9, LBB0_53
; %bb.52:
Lloh84:
	adrp	x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGE
Lloh85:
	ldr	x8, [x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGEOFF]
Lloh86:
	ldr	w1, [x8]
Lloh87:
	adrp	x2, l_.str.22@PAGE
Lloh88:
	add	x2, x2, l_.str.22@PAGEOFF
	mov	x0, x19
	bl	_validate_print
	ldr	w8, [sp, #16]
LBB0_53:
	cbz	w8, LBB0_55
; %bb.54:
	add	x2, x22, #40
	add	x3, x22, #16
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	mov	x1, x20
	mov	x4, x22
	bl	__hx509_verify_signature_bitstring
Lloh89:
	adrp	x8, l_.str.24@PAGE
Lloh90:
	add	x8, x8, l_.str.24@PAGEOFF
Lloh91:
	adrp	x9, l_.str.23@PAGE
Lloh92:
	add	x9, x9, l_.str.23@PAGEOFF
	cmp	w0, #0
	csel	x2, x9, x8, eq
Lloh93:
	adrp	x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGE
Lloh94:
	ldr	x8, [x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGEOFF]
	csel	x8, x21, x8, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_validate_print
LBB0_55:
	add	x0, sp, #72
	bl	_hx509_name_free
	add	x0, sp, #76
	bl	_hx509_name_free
	mov	w0, #0
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_56:
	bl	_abort
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpAdd	Lloh89, Lloh90
	.cfi_endproc
                                        ; -- End function
	.comm	_HX509_VALIDATE_F_VERBOSE,4,2   ; @HX509_VALIDATE_F_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not version 3 certificate\n"

	.comm	_HX509_VALIDATE_F_VALIDATE,4,2  ; @HX509_VALIDATE_F_VALIDATE
l_.str.1:                               ; @.str.1
	.asciz	"Not version 3 certificate with extensions\n"

l_.str.2:                               ; @.str.2
	.asciz	"Version 3 certificate without extensions\n"

l_.str.3:                               ; @.str.3
	.asciz	"subject name: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"issuer name: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"\tis a self-signed certificate\n"

l_.str.6:                               ; @.str.6
	.asciz	"Validity:\n"

l_.str.7:                               ; @.str.7
	.asciz	"\tnotBefore %s\n"

l_.str.8:                               ; @.str.8
	.asciz	"\tnotAfter  %s\n"

l_.str.9:                               ; @.str.9
	.asciz	"The empty extensions list is not allowed by PKIX\n"

	.comm	_check_extension,8,3            ; @check_extension
l_.str.10:                              ; @.str.10
	.asciz	"don't know what "

l_.str.11:                              ; @.str.11
	.asciz	"and is CRITICAL "

	.comm	_validate_vprint,4,2            ; @validate_vprint
l_.str.12:                              ; @.str.12
	.asciz	" is\n"

l_.str.13:                              ; @.str.13
	.asciz	"checking extention: %s\n"

l_.str.14:                              ; @.str.14
	.asciz	"no extentions\n"

l_.str.15:                              ; @.str.15
	.asciz	"CA certificate have no SubjectKeyIdentifier\n"

l_.str.16:                              ; @.str.16
	.asciz	"Is not CA and doesn't have AuthorityKeyIdentifier\n"

l_.str.17:                              ; @.str.17
	.asciz	"Doesn't have SubjectKeyIdentifier\n"

l_.str.18:                              ; @.str.18
	.asciz	"Proxy and CA at the same time!\n"

l_.str.19:                              ; @.str.19
	.asciz	"Proxy and have SAN\n"

l_.str.20:                              ; @.str.20
	.asciz	"Proxy and have IAN\n"

l_.str.21:                              ; @.str.21
	.asciz	"NULL subject DN and doesn't have a SAN\n"

l_.str.22:                              ; @.str.22
	.asciz	"Not a CA nor PROXY and doesn't haveCRL Dist Point\n"

l_.str.23:                              ; @.str.23
	.asciz	"Self-signed certificate was self-signed\n"

l_.str.24:                              ; @.str.24
	.asciz	"Self-signed certificate NOT really self-signed!\n"

.subsections_via_symbols
