	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_ocsp
_load_ocsp:                             ## @load_ocsp
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %r14d
	movq	$0, -64(%rbp)
	movl	28(%rsi), %edi
	leaq	-80(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	callq	_rk_undumpdata
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	movl	28(%r12), %edi
	leaq	-56(%rbp), %rsi
	callq	_stat
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_3:
	movq	-80(%rbp), %rdi
	movq	-88(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_parse_ocsp_basic
	movl	%eax, %ebx
	movq	-80(%rbp), %rdi
	callq	_rk_xfree
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_hx509_set_error_string
	jmp	LBB0_13
LBB0_5:
	cmpq	$0, -48(%rbp)
	je	LBB0_12
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %r8
	movl	%r14d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hx509_certs_init
	testl	%eax, %eax
	je	LBB0_7
## %bb.14:
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_free_OCSPBasicOCSPResponse
	jmp	LBB0_13
LBB0_7:
	movq	-48(%rbp), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.8:
	xorl	%r13d, %r13d
	leaq	-72(%rbp), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movq	-48(%rbp), %rax
	addq	$4, %r13
	cmpq	(%rax), %rbx
	jae	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rsi
	addq	%r13, %rsi
	movl	%r14d, %edi
	movq	%r15, %rdx
	callq	_hx509_cert_init
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rsi
	movq	-72(%rbp), %rdx
	movl	%r14d, %edi
	callq	_hx509_certs_add
	movq	-72(%rbp), %rdi
	callq	_hx509_cert_free
	jmp	LBB0_11
LBB0_12:
	movl	-56(%rbp), %eax
	movl	%eax, 24(%r12)
	leaq	16(%r12), %rdi
	callq	_free_OCSPBasicOCSPResponse
	leaq	8(%r12), %rdi
	callq	_hx509_certs_free
	movq	(%r12), %rdi
	callq	_hx509_cert_free
	movq	-48(%rbp), %rax
	movq	%rax, 16(%r12)
	movq	-64(%rbp), %rax
	movq	%rax, 8(%r12)
	movq	$0, (%r12)
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to parse OCSP response"

L_.str.1:                               ## @.str.1
	.asciz	"MEMORY:ocsp-certs"

	.no_dead_strip	_load_ocsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_ocsp
_load_ocsp:                             ; @load_ocsp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	str	xzr, [sp, #32]
	ldr	w0, [x1, #28]
	add	x1, sp, #8
	add	x2, sp, #24
	bl	_rk_undumpdata
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.1:
	ldr	w0, [x19, #28]
	add	x1, sp, #16
	bl	_stat
	cbz	w0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	b	LBB0_14
LBB0_3:
	ldr	x0, [sp, #8]
	ldr	x1, [sp, #24]
	add	x2, sp, #40
	bl	_parse_ocsp_basic
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_rk_xfree
	cbz	w21, LBB0_5
; %bb.4:
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_hx509_set_error_string
	b	LBB0_14
LBB0_5:
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_13
; %bb.6:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x4, sp, #32
	mov	x0, x20
	mov	w2, #0
	mov	x3, #0
	bl	_hx509_certs_init
	cbz	w0, LBB0_8
; %bb.7:
	mov	x21, x0
	add	x0, sp, #40
	bl	_free_OCSPBasicOCSPResponse
	b	LBB0_14
LBB0_8:
	ldr	x8, [sp, #40]
	ldr	x9, [x8]
	cbz	x9, LBB0_13
; %bb.9:
	mov	x21, #0
	mov	x22, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #1
	ldr	x8, [sp, #40]
	ldr	x9, [x8]
	add	x21, x21, #4
	cmp	x22, x9
	b.hs	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	add	x1, x8, x21
	mov	x2, sp
	mov	x0, x20
	bl	_hx509_cert_init
	cbnz	w0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x1, [sp, #32]
	ldr	x2, [sp]
	mov	x0, x20
	bl	_hx509_certs_add
	ldr	x0, [sp]
	bl	_hx509_cert_free
	b	LBB0_10
LBB0_13:
	ldr	w8, [sp, #16]
	str	w8, [x19, #24]
	add	x0, x19, #16
	bl	_free_OCSPBasicOCSPResponse
	add	x0, x19, #8
	bl	_hx509_certs_free
	ldr	x0, [x19]
	bl	_hx509_cert_free
	mov	w21, #0
	ldr	x9, [sp, #40]
	ldr	x8, [sp, #32]
	stp	x8, x9, [x19, #8]
	str	xzr, [x19]
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to parse OCSP response"

l_.str.1:                               ; @.str.1
	.asciz	"MEMORY:ocsp-certs"

	.no_dead_strip	_load_ocsp
.subsections_via_symbols
