	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_new
_validate_new:                          ## @validate_new
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	16(%rdi), %ecx
	addl	$-128, %ecx
	cmpl	$6, %ecx
	ja	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movslq	(%rdi), %rax
	xorl	%r14d, %r14d
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_11:
	movl	$0, 44(%rbx)
	jmp	LBB0_17
LBB0_12:
	movq	8(%rbx), %rdi
	callq	_strlen
	movslq	24(%rbx), %rcx
	subq	%rcx, %rax
	jb	LBB0_6
## %bb.13:
	movslq	20(%rbx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_14
## %bb.15:
	xorl	%edx, %edx
	divq	%rcx
	testq	%rdx, %rdx
	jne	LBB0_6
	jmp	LBB0_17
LBB0_4:
	cmpl	24(%rbx), %eax
	jl	LBB0_6
## %bb.5:
	cmpl	28(%rbx), %eax
	jg	LBB0_6
## %bb.7:
	movq	32(%rbx), %rcx
	movq	(%rcx,%rax,8), %rcx
	cmpb	$0, (%rcx)
	je	LBB0_9
## %bb.8:
	movl	40(%rbx), %ecx
	btl	%eax, %ecx
	jae	LBB0_17
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movl	20(%rbx), %ecx
	movl	24(%rbx), %edx
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	addl	%eax, %esi
	cmpl	%edx, %esi
	cmovlel	%edx, %esi
	movl	28(%rbx), %eax
	cmpl	%eax, %esi
	cmovgel	%eax, %esi
	movl	%esi, %eax
	subl	%edx, %eax
	cltd
	idivl	%ecx
	subl	%edx, %esi
	movl	%esi, (%rbx)
	jmp	LBB0_17
LBB0_3:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, (%rbx)
	jmp	LBB0_17
LBB0_14:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	je	LBB0_17
LBB0_6:
	movq	_ERANGE@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_17:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_4
	.long	L0_0_set_17
	.long	L0_0_set_2
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_validate_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_new
_validate_new:                          ; @validate_new
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #16]
	sub	w9, w8, #128
	cmp	w9, #6
	b.hi	LBB0_12
; %bb.1:
	mov	x19, x0
	mov	w0, #0
	ldrsw	x8, [x19]
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	w0, #0
	str	wzr, [x19, #44]
	b	LBB0_14
LBB0_3:
	ldr	x0, [x19, #8]
	bl	_strlen
	ldrsw	x8, [x19, #24]
	subs	x8, x0, x8
	b.lo	LBB0_7
; %bb.4:
	ldrsw	x9, [x19, #20]
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	cbnz	x8, LBB0_7
	b	LBB0_15
LBB0_5:
	ldr	w9, [x19, #24]
	cmp	w8, w9
	b.lt	LBB0_7
; %bb.6:
	ldr	w9, [x19, #28]
	cmp	w8, w9
	b.le	LBB0_10
LBB0_7:
Lloh2:
	adrp	x8, _ERANGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
	mov	w0, #0
	ldp	w9, w10, [x19, #20]
	cmp	w9, #0
	cinc	w11, w9, lt
	add	w8, w8, w11, asr #1
	cmp	w8, w10
	csel	w8, w8, w10, gt
	ldr	w11, [x19, #28]
	cmp	w8, w11
	csel	w8, w8, w11, lt
	sub	w10, w8, w10
	neg	w11, w10
	sdiv	w10, w10, w9
	madd	w9, w10, w9, w11
	add	w8, w8, w9
	str	w8, [x19]
	b	LBB0_14
LBB0_9:
	mov	w0, #0
	cmp	w8, #0
	cset	w8, ne
	str	w8, [x19]
	b	LBB0_14
LBB0_10:
	ldr	x9, [x19, #32]
	ldr	x9, [x9, x8, lsl #3]
	ldrb	w9, [x9]
	cbz	w9, LBB0_12
; %bb.11:
	ldr	w9, [x19, #40]
	lsr	w8, w9, w8
	tbz	w8, #0, LBB0_15
LBB0_12:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	w0, #0
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_validate_new
.subsections_via_symbols
