	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x509_get_entries
_x509_get_entries:                      ## @x509_get_entries
	.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, %r15
	xorl	%edx, %edx
	cmpq	%rsi, (%rdi)
	je	LBB0_19
## %bb.1:
	movq	%rdi, %rbx
	movq	_MBEDTLS_ASN1_SEQUENCE@GOTPCREL(%rip), %r14
	movq	_MBEDTLS_ASN1_CONSTRUCTED@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	orl	(%r14), %ecx
	leaq	-64(%rbp), %rdx
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	cmovnel	%eax, %edx
	jmp	LBB0_19
LBB0_3:
	movq	-64(%rbp), %rsi
	testq	%rsi, %rsi
	jle	LBB0_13
## %bb.4:
	addq	(%rbx), %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rsi, %rcx
	jae	LBB0_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %ecx
	orl	(%r14), %ecx
	movq	%rbx, %rdi
	leaq	-56(%rbp), %rdx
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rax
	movzbl	(%rax), %ecx
	movb	%cl, 24(%r15)
	movq	%rax, 32(%r15)
	movq	-56(%rbp), %r13
	movq	%r13, 40(%r15)
	addq	(%rbx), %r13
	leaq	16(%r15), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_mbedtls_x509_get_serial
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	12(%r15), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_mbedtls_x509_get_time
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	8(%r15), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_x509_get_crl_entry_ext
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, %rcx
	jae	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	movl	$48, %esi
	callq	_mbedtls_calloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rcx
	movq	%rax, %r15
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_13:
	xorl	%edx, %edx
	jmp	LBB0_19
LBB0_14:
	movl	%eax, %edx
LBB0_19:
	movl	%edx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_MBEDTLS_ERR_X509_ALLOC_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ## @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ## @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG,4,2 ## @MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
	.comm	_MBEDTLS_ERR_X509_ALLOC_FAILED,4,2 ## @MBEDTLS_ERR_X509_ALLOC_FAILED
	.no_dead_strip	_x509_get_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x509_get_entries
_x509_get_entries:                      ; @x509_get_entries
	.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
	ldr	x8, [x0]
	cmp	x8, x1
	b.eq	LBB0_13
; %bb.1:
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x23, _MBEDTLS_ASN1_SEQUENCE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MBEDTLS_ASN1_SEQUENCE@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x24, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w3, w9, w8
	add	x2, sp, #8
	bl	_mbedtls_asn1_get_tag
	cbz	w0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	csel	w0, wzr, w0, eq
	b	LBB0_14
LBB0_3:
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.4:
	ldr	x9, [x19]
	add	x21, x9, x8
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #0
	cmp	x8, x21
	b.hs	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w3, w9, w8
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	bl	_mbedtls_asn1_get_tag
	cbnz	w0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	ldrb	w9, [x8]
	strb	w9, [x20, #24]
	ldr	x9, [sp]
	stp	x8, x9, [x20, #32]
	ldr	x8, [x19]
	add	x22, x8, x9
	add	x2, x20, #16
	mov	x0, x19
	mov	x1, x22
	bl	_mbedtls_x509_get_serial
	cbnz	w0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x2, x20, #12
	mov	x0, x19
	mov	x1, x22
	bl	_mbedtls_x509_get_time
	cbnz	w0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x2, x20, #8
	mov	x0, x19
	mov	x1, x22
	bl	_x509_get_crl_entry_ext
	cbnz	w0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	cmp	x8, x21
	b.hs	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	mov	w1, #48
	bl	_mbedtls_calloc
	str	x0, [x20]
	cbz	x0, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	mov	x20, x0
	b	LBB0_5
LBB0_13:
	mov	w0, #0
LBB0_14:
	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
LBB0_15:
Lloh7:
	adrp	x8, _MBEDTLS_ERR_X509_ALLOC_FAILED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_ALLOC_FAILED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_14
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ; @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ; @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG,4,2 ; @MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
	.comm	_MBEDTLS_ERR_X509_ALLOC_FAILED,4,2 ; @MBEDTLS_ERR_X509_ALLOC_FAILED
	.no_dead_strip	_x509_get_entries
.subsections_via_symbols
