	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocsp_verify                    ## -- Begin function ocsp_verify
	.p2align	4, 0x90
_ocsp_verify:                           ## @ocsp_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	%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, %r13
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_context@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-48(%rbp), %rsi
	callq	_hx509_lock_init
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movq	(%r15), %rdi
LBB0_2:
	leaq	-52(%rbp), %rsi
	callq	__hx509_map_file_os
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	(%r13), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %ecx
	callq	_err
LBB0_4:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	leaq	-44(%rbp), %r8
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hx509_certs_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rcx
	movl	$1, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_hx509_err
LBB0_6:
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.7:
	movl	%r14d, %r15d
	leaq	L_.str.4(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movl	-44(%rbp), %esi
	movl	-48(%rbp), %edx
	movq	(%r13,%rbx,8), %rcx
	callq	_hx509_certs_append
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r12), %edi
	movq	(%r13,%rbx,8), %r8
	movl	$1, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_hx509_err
	jmp	LBB0_10
LBB0_11:
	movl	(%r12), %edi
	movl	-44(%rbp), %esi
	movq	_verify_o@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %r14
	movq	%r14, %rcx
	callq	_hx509_certs_iter_f
	movl	%eax, %ebx
	leaq	-44(%rbp), %rdi
	callq	_hx509_certs_free
	movq	%r14, %rdi
	callq	__hx509_unmap_file_os
	movl	-48(%rbp), %edi
	callq	_hx509_lock_free
	movl	%ebx, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no ocsp file given"

L_.str.1:                               ## @.str.1
	.asciz	"map_file: %s: %d"

L_.str.2:                               ## @.str.2
	.asciz	"MEMORY:test-certs"

L_.str.3:                               ## @.str.3
	.asciz	"hx509_certs_init: MEMORY"

L_.str.4:                               ## @.str.4
	.asciz	"hx509_certs_append: %s"

	.comm	_verify_o,4,2                   ## @verify_o
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocsp_verify                    ; -- Begin function ocsp_verify
	.p2align	2
_ocsp_verify:                           ; @ocsp_verify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	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, #28
	bl	_hx509_lock_init
	ldr	x0, [x21]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x0, [x21]
LBB0_2:
	add	x1, sp, #20
	bl	__hx509_map_file_os
	cbz	w0, LBB0_4
; %bb.3:
	mov	x3, x0
	ldr	x2, [x19]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	ldr	w0, [x22]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x4, sp, #24
	mov	w2, #0
	mov	x3, #0
	bl	_hx509_certs_init
	cbz	w0, LBB0_6
; %bb.5:
	mov	x2, x0
	ldr	w0, [x22]
Lloh8:
	adrp	x3, l_.str.3@PAGE
Lloh9:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w1, #1
	bl	_hx509_err
LBB0_6:
	cmp	w20, #1
	b.lt	LBB0_11
; %bb.7:
	mov	w21, w20
Lloh10:
	adrp	x20, l_.str.4@PAGE
Lloh11:
	add	x20, x20, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x19, x19, #8
	subs	x21, x21, #1
	b.eq	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	ldp	w1, w2, [sp, #24]
	ldr	x3, [x19]
	bl	_hx509_certs_append
	cbz	w0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x2, x0
	ldr	w0, [x22]
	ldr	x8, [x19]
	str	x8, [sp]
	mov	w1, #1
	mov	x3, x20
	bl	_hx509_err
	b	LBB0_8
LBB0_11:
	ldr	w0, [x22]
	ldr	w1, [sp, #24]
Lloh12:
	adrp	x8, _verify_o@GOTPAGE
Lloh13:
	ldr	x8, [x8, _verify_o@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x3, sp, #20
	bl	_hx509_certs_iter_f
	mov	x19, x0
	add	x0, sp, #24
	bl	_hx509_certs_free
	add	x0, sp, #20
	bl	__hx509_unmap_file_os
	ldr	w0, [sp, #28]
	bl	_hx509_lock_free
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_context,4,2                    ; @context
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no ocsp file given"

l_.str.1:                               ; @.str.1
	.asciz	"map_file: %s: %d"

l_.str.2:                               ; @.str.2
	.asciz	"MEMORY:test-certs"

l_.str.3:                               ; @.str.3
	.asciz	"hx509_certs_init: MEMORY"

l_.str.4:                               ; @.str.4
	.asciz	"hx509_certs_append: %s"

	.comm	_verify_o,4,2                   ; @verify_o
.subsections_via_symbols
