	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_constB                     ## -- Begin function add_constB
	.p2align	4, 0x90
_add_constB:                            ## @add_constB
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rdi
	leal	8(,%rax,8), %esi
	callq	_d3dcompiler_realloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	%rax, 8(%rbx)
	jmp	LBB0_7
LBB0_4:
	movl	$8, %edi
	callq	_d3dcompiler_alloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_5
LBB0_7:
	movl	$16, %edi
	callq	_d3dcompiler_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	%r15d, 8(%rax)
	movq	(%rax), %rcx
	movl	%r14d, (%rcx)
	movq	8(%rbx), %rcx
	movslq	(%rbx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	leal	1(%rdx), %eax
	movl	%eax, (%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	callq	_ERR
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to grow the constants array\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate the constants array\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to allocate a new constant\n"

	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_constB                     ; -- Begin function add_constB
	.p2align	2
_add_constB:                            ; @add_constB
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x0, [x19, #8]
	lsl	w8, w8, #3
	add	w1, w8, #8
	bl	_d3dcompiler_realloc
	cbz	x0, LBB0_6
; %bb.2:
	str	x0, [x19, #8]
	b	LBB0_4
LBB0_3:
	mov	w0, #8
	bl	_d3dcompiler_alloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
LBB0_4:
	mov	w0, #16
	bl	_d3dcompiler_alloc
	cbz	x0, LBB0_7
; %bb.5:
	str	w21, [x0, #8]
	ldr	x8, [x0]
	str	w20, [x8]
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	str	x0, [x8, x9, lsl #3]
	add	w8, w9, #1
	str	w8, [x19]
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	bl	_ERR
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to grow the constants array\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate the constants array\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to allocate a new constant\n"

	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
