	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcert_validate                 ## -- Begin function pcert_validate
	.p2align	4, 0x90
_pcert_validate:                        ## @pcert_validate
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_context@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-48(%rbp), %rsi
	callq	_hx509_lock_init
	movl	-48(%rbp), %edi
	movq	%rbx, %rsi
	callq	_lock_strings
	movl	(%r12), %edi
	leaq	-44(%rbp), %rsi
	callq	_hx509_validate_ctx_init
	movl	-44(%rbp), %edi
	movq	_hx509_print_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_hx509_validate_ctx_set_print
	movl	-44(%rbp), %edi
	movq	_HX509_VALIDATE_F_VALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hx509_validate_ctx_add_flags
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.1:
	movl	%r15d, %r13d
	xorl	%r15d, %r15d
	leaq	-52(%rbp), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	movl	-52(%rbp), %esi
	movq	_validate_f@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %ecx
	callq	_hx509_certs_iter_f
	movq	%rbx, %rdi
	callq	_hx509_certs_free
	incq	%r15
	cmpl	%r15d, %r13d
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	(%r14,%r15,8), %rsi
	movl	-48(%rbp), %ecx
	xorl	%edx, %edx
	movq	%rbx, %r8
	callq	_hx509_certs_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_errx
	jmp	LBB0_4
LBB0_5:
	movl	-44(%rbp), %edi
	callq	_hx509_validate_ctx_free
	movl	-48(%rbp), %edi
	callq	_hx509_lock_free
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_context,4,2                    ## @context
	.comm	_hx509_print_stdout,4,2         ## @hx509_print_stdout
	.comm	_stdout,4,2                     ## @stdout
	.comm	_HX509_VALIDATE_F_VALIDATE,4,2  ## @HX509_VALIDATE_F_VALIDATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hx509_certs_init: %d"

	.comm	_validate_f,4,2                 ## @validate_f
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcert_validate                 ; -- Begin function pcert_validate
	.p2align	2
_pcert_validate:                        ; @pcert_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _context@GOTPAGE
Lloh1:
	ldr	x22, [x22, _context@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x1, sp, #4
	bl	_hx509_lock_init
	ldr	w0, [sp, #4]
	mov	x1, x21
	bl	_lock_strings
	ldr	w0, [x22]
	add	x1, sp, #12
	bl	_hx509_validate_ctx_init
	ldr	w0, [sp, #12]
Lloh2:
	adrp	x8, _hx509_print_stdout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hx509_print_stdout@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _stdout@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_hx509_validate_ctx_set_print
	ldr	w0, [sp, #12]
Lloh8:
	adrp	x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HX509_VALIDATE_F_VALIDATE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_hx509_validate_ctx_add_flags
	cbz	w20, LBB0_5
; %bb.1:
Lloh11:
	adrp	x23, _validate_f@GOTPAGE
Lloh12:
	ldr	x23, [x23, _validate_f@GOTPAGEOFF]
Lloh13:
	adrp	x21, l_.str@PAGE
Lloh14:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	ldp	w1, w3, [sp, #8]
	ldr	w2, [x23]
	bl	_hx509_certs_iter_f
	add	x0, sp, #8
	bl	_hx509_certs_free
	add	x19, x19, #8
	cbz	w20, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w20, w20, #1
	ldr	w0, [x22]
	ldr	x1, [x19]
	ldr	w3, [sp, #4]
	add	x4, sp, #8
	mov	w2, #0
	bl	_hx509_certs_init
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x0
	mov	w0, #1
	mov	x1, x21
	bl	_errx
	b	LBB0_2
LBB0_5:
	ldr	w0, [sp, #12]
	bl	_hx509_validate_ctx_free
	ldr	w0, [sp, #4]
	bl	_hx509_lock_free
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_context,4,2                    ; @context
	.comm	_hx509_print_stdout,4,2         ; @hx509_print_stdout
	.comm	_stdout,4,2                     ; @stdout
	.comm	_HX509_VALIDATE_F_VALIDATE,4,2  ; @HX509_VALIDATE_F_VALIDATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hx509_certs_init: %d"

	.comm	_validate_f,4,2                 ; @validate_f
.subsections_via_symbols
