	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libretrodb_validate_document
_libretrodb_validate_document:          ## @libretrodb_validate_document
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_RDT_MAP@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_6
## %bb.1:
	movq	%rdi, %r12
	movl	24(%rdi), %r8d
	testl	%r8d, %r8d
	je	LBB0_11
## %bb.2:
	movl	$56, %ebx
	xorl	%r13d, %r13d
	movq	_RDT_STRING@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movl	%r8d, %eax
	addq	$80, %rbx
	cmpq	%rax, %r13
	jae	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rsi
	movq	-16(%rsi,%rbx), %rdi
	movq	-8(%rsi,%rbx), %rdx
	movq	(%rsi,%rbx), %rcx
	movq	-24(%rsi,%rbx), %rax
	movq	%rax, -48(%rbp)
	movups	-56(%rsi,%rbx), %xmm0
	movups	-40(%rsi,%rbx), %xmm1
	movaps	%xmm1, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	cmpq	(%r14), %rdi
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rdx, %rdx
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$36, (%rcx)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rax
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-80(%rbp), %rdi
	callq	_libretrodb_validate_document
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%r12), %r8d
	jmp	LBB0_10
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDT_MAP,8,3                    ## @RDT_MAP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RDT_STRING,8,3                 ## @RDT_STRING
	.no_dead_strip	_libretrodb_validate_document
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libretrodb_validate_document
_libretrodb_validate_document:          ; @libretrodb_validate_document
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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]
Lloh0:
	adrp	x20, _RDT_MAP@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RDT_MAP@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_11
; %bb.2:
	mov	x21, #0
	mov	x22, #0
Lloh2:
	adrp	x23, _RDT_STRING@GOTPAGE
Lloh3:
	ldr	x23, [x23, _RDT_STRING@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #24]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	add	x21, x21, #80
	cmp	x22, w8, uxtw
	b.hs	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #32]
	add	x11, x9, x21
	ldp	x10, x9, [x11, #48]
	ldp	q0, q1, [x11]
	stp	q0, q1, [sp]
	ldp	x11, x12, [x11, #32]
	str	x11, [sp, #32]
	ldr	x11, [x23]
	cmp	x12, x11
	b.ne	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x10, #0
	b.le	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w9, [x9]
	cmp	w9, #36
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [sp]
	ldr	x10, [x20]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, sp
	bl	_libretrodb_validate_document
	cbnz	w0, LBB0_3
	b	LBB0_12
LBB0_10:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RDT_MAP,8,3                    ; @RDT_MAP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RDT_STRING,8,3                 ; @RDT_STRING
	.no_dead_strip	_libretrodb_validate_document
.subsections_via_symbols
