	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv_validate                    ## -- Begin function nv_validate
	.p2align	4, 0x90
_nv_validate:                           ## @nv_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_NV_CHECK
	xorl	%edi, %edi
	cmpl	$0, (%r15)
	sete	%dil
	callq	_PJDLOG_ASSERT
	movl	4(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	_ebuf_data
	movq	-48(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_29
## %bb.3:
	movq	%rax, %r12
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
	jmp	LBB0_34
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_NVH_DATA
	cmpb	$0, -1(%rax,%r13)
	je	LBB0_26
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jne	LBB0_32
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_NVH_SIZE
	movq	%rax, %r13
	addq	%r12, %r13
	movq	%r12, %rdi
	callq	_NVH_SIZE
	movq	-48(%rbp), %rbx
	movq	%r13, %r12
	subq	%rax, %rbx
	movq	%rbx, -48(%rbp)
	je	LBB0_29
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%r12)
	je	LBB0_29
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$18, %rbx
	jb	LBB0_31
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_NVH_HSIZE
	cmpq	%rax, %rbx
	jb	LBB0_31
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rdi
	movslq	8(%r12), %rbx
	cmpb	$0, -1(%rdi,%rbx)
	jne	LBB0_31
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	decq	%rbx
	callq	_strlen
	cmpq	%rbx, %rax
	jne	LBB0_31
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_NV_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	12(%r12), %eax
	movq	_NV_TYPE_FIRST@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_31
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_NV_TYPE_LAST@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_31
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_NVH_DSIZE
	testq	%rax, %rax
	je	LBB0_31
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r13
	movq	-48(%rbp), %rbx
	movq	%r12, %rdi
	callq	_NVH_SIZE
	cmpq	%rax, %rbx
	jb	LBB0_31
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_NV_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	12(%r12), %edx
	addl	$-128, %edx
	cmpl	$16, %edx
	ja	LBB0_35
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$4, %ecx
	movl	$2, %eax
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %eax
	jmp	LBB0_18
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$8, %ecx
	jmp	LBB0_21
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$8, %eax
	jmp	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$4, %eax
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rax, %r13
	jne	LBB0_27
	jmp	LBB0_28
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$2, %ecx
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rax
	shrq	$32, %rax
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	testq	%rdx, %rdx
	jne	LBB0_27
	jmp	LBB0_28
LBB0_35:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_PJDLOG_ABORT
	jmp	LBB0_28
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	decq	%r13
	movq	%rax, %rdi
	callq	_strlen
	cmpq	%r13, %rax
	jne	LBB0_27
	jmp	LBB0_28
LBB0_31:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_29
LBB0_32:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movl	$-1, %eax
	cmpl	$0, (%r15)
	jne	LBB0_34
## %bb.33:
	movl	%ecx, (%r15)
	jmp	LBB0_34
LBB0_29:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_34
## %bb.30:
	movq	-48(%rbp), %rcx
	movq	%rcx, (%r14)
LBB0_34:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
LJTI0_0:
	.long	L0_0_set_28
	.long	L0_0_set_15
	.long	L0_0_set_20
	.long	L0_0_set_17
	.long	L0_0_set_21
	.long	L0_0_set_16
	.long	L0_0_set_19
	.long	L0_0_set_18
	.long	L0_0_set_25
	.long	L0_0_set_28
	.long	L0_0_set_15
	.long	L0_0_set_20
	.long	L0_0_set_17
	.long	L0_0_set_21
	.long	L0_0_set_16
	.long	L0_0_set_19
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NV_TYPE_MASK,4,2               ## @NV_TYPE_MASK
	.comm	_NV_TYPE_FIRST,4,2              ## @NV_TYPE_FIRST
	.comm	_NV_TYPE_LAST,4,2               ## @NV_TYPE_LAST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid condition"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv_validate                    ; -- Begin function nv_validate
	.p2align	2
_nv_validate:                           ; @nv_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_NV_CHECK
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
	bl	_PJDLOG_ASSERT
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	bl	_ebuf_data
	ldr	x23, [sp, #8]
	cbz	x23, LBB0_30
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x24, _NV_TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NV_TYPE_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x25, _NV_TYPE_FIRST@GOTPAGE
Lloh3:
	ldr	x25, [x25, _NV_TYPE_FIRST@GOTPAGEOFF]
Lloh4:
	adrp	x26, _NV_TYPE_LAST@GOTPAGE
Lloh5:
	ldr	x26, [x26, _NV_TYPE_LAST@GOTPAGEOFF]
Lloh6:
	adrp	x27, lJTI0_0@PAGE
Lloh7:
	add	x27, x27, lJTI0_0@PAGEOFF
Lloh8:
	adrp	x28, _EINVAL@GOTPAGE
Lloh9:
	ldr	x28, [x28, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _errno@GOTPAGE
Lloh14:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh15:
	str	w8, [x9]
	b	LBB0_29
LBB0_4:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w9, #8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	udiv	x8, x23, x9
	msub	x8, x8, x9, x23
	cbz	x8, LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x28]
	cbnz	w8, LBB0_27
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_NVH_SIZE
	add	x22, x21, x0
	mov	x0, x21
	bl	_NVH_SIZE
	ldr	x8, [sp, #8]
	mov	x21, x22
	subs	x23, x8, x0
	str	x23, [sp, #8]
	b.eq	LBB0_30
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21]
	cbz	w8, LBB0_30
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	x23, #18
	b.lo	LBB0_26
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_NVH_HSIZE
	cmp	x23, x0
	b.lo	LBB0_26
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x21]
	ldrsw	x8, [x21, #8]
	sub	x23, x8, #1
	ldrb	w8, [x0, x23]
	cbnz	w8, LBB0_26
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_strlen
	cmp	x0, x23
	b.ne	LBB0_26
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x21, #12]
	ldr	w9, [x24]
	and	w8, w9, w8
	ldr	w9, [x25]
	ldr	w10, [x26]
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.gt	LBB0_26
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_NVH_DSIZE
	cbz	x0, LBB0_26
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x23, x0
	ldr	x22, [sp, #8]
	mov	x0, x21
	bl	_NVH_SIZE
	cmp	x22, x0
	b.lo	LBB0_26
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x21, #12]
	ldr	w9, [x24]
	and	w8, w9, w8
	sub	w8, w8, #128
	cmp	w8, #16
	b.hi	LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	adr	x10, LBB0_4
	ldrb	w9, [x27, x8]
	add	x10, x10, x9, lsl #2
	mov	w8, #2
	mov	w9, #4
	br	x10
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #1
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #8
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #4
LBB0_21:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	x23, x8
	b.ne	LBB0_6
	b	LBB0_7
LBB0_22:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w9, #2
	b	LBB0_5
LBB0_23:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_PJDLOG_ABORT
	b	LBB0_7
LBB0_24:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_NVH_DATA
	sub	x23, x23, #1
	ldrb	w8, [x0, x23]
	cbnz	w8, LBB0_6
; %bb.25:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_strlen
	cmp	x0, x23
	b.ne	LBB0_6
	b	LBB0_7
LBB0_26:
	ldr	w8, [x28]
	cbz	w8, LBB0_30
LBB0_27:
Lloh18:
	adrp	x9, _errno@GOTPAGE
Lloh19:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
	ldr	w9, [x19]
	cbnz	w9, LBB0_29
; %bb.28:
	str	w8, [x19]
LBB0_29:
	mov	w0, #-1
	b	LBB0_32
LBB0_30:
	mov	w0, #0
	cbz	x20, LBB0_32
; %bb.31:
	ldr	x8, [sp, #8]
	str	x8, [x20]
LBB0_32:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_18-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_19-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_20-LBB0_4)>>2
	.byte	(LBB0_22-LBB0_4)>>2
	.byte	(LBB0_21-LBB0_4)>>2
	.byte	(LBB0_24-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_18-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_19-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_20-LBB0_4)>>2
	.byte	(LBB0_22-LBB0_4)>>2
	.byte	(LBB0_21-LBB0_4)>>2
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NV_TYPE_MASK,4,2               ; @NV_TYPE_MASK
	.comm	_NV_TYPE_FIRST,4,2              ; @NV_TYPE_FIRST
	.comm	_NV_TYPE_LAST,4,2               ; @NV_TYPE_LAST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid condition"

.subsections_via_symbols
