	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_valid_sub_constant
_is_valid_sub_constant:                 ## @is_valid_sub_constant
	.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
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movl	%esi, %r14d
	movl	8(%r12), %r15d
	cmpl	$2, %r15d
	jge	LBB0_3
## %bb.2:
	movq	16(%r12), %r15
	testq	%r15, %r15
	je	LBB0_9
LBB0_3:
	callq	_handle_from_constant
	cmpl	%r14d, %eax
	jne	LBB0_6
## %bb.4:
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_6:
	decq	%r15
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_is_valid_sub_constant
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%r13, %r15
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$24, %rdi
	callq	_handle_from_constant
	addq	$24, %rbx
	incq	%r13
	cmpl	%r14d, %eax
	jne	LBB0_7
LBB0_5:
	leaq	(,%r13,2), %rax
	addq	%r13, %rax
	shlq	$3, %rax
	addq	(%r12), %rax
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_is_valid_sub_constant
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_valid_sub_constant
_is_valid_sub_constant:                 ; @is_valid_sub_constant
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x1
	ldr	w23, [x19, #8]
	cmp	w23, #2
	b.ge	LBB0_3
; %bb.2:
	ldr	x23, [x19, #16]
	cbz	x23, LBB0_10
LBB0_3:
	bl	_handle_from_constant
	cmp	w0, w20
	b.ne	LBB0_5
; %bb.4:
	mov	x21, #0
	b	LBB0_9
LBB0_5:
	mov	x22, #0
	mov	x21, #0
	sub	x23, x23, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x8, x22
	mov	x1, x20
	bl	_is_valid_sub_constant
	cbnz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x23, x21
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	add	x8, x8, x22
	add	x0, x8, #24
	bl	_handle_from_constant
	add	x22, x22, #24
	add	x21, x21, #1
	cmp	w0, w20
	b.ne	LBB0_6
LBB0_9:
	ldr	x8, [x19]
	mov	w9, #24
	madd	x0, x21, x9, x8
	b	LBB0_11
LBB0_10:
	mov	x0, #0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_is_valid_sub_constant
.subsections_via_symbols
