	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_record_sampler                 ## -- Begin function record_sampler
	.p2align	4, 0x90
_record_sampler:                        ## @record_sampler
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FALSE@GOTPCREL(%rip), %r15
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	leaq	L_.str.1(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movl	%eax, %ecx
	addq	$24, %r12
	cmpq	%rcx, %r15
	jae	LBB0_6
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rcx
	cmpq	%r14, (%rcx,%r12)
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_WARN
	movl	(%rbx), %eax
	jmp	LBB0_3
LBB0_6:
	movq	8(%rbx), %rdi
	leal	(%rax,%rax,2), %eax
	leal	24(,%rax,8), %esi
	callq	_d3dcompiler_realloc
	testq	%rax, %rax
	movq	_FALSE@GOTPCREL(%rip), %r15
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_10
## %bb.7:
	movq	%rax, 8(%rbx)
	jmp	LBB0_9
LBB0_8:
	movl	$24, %edi
	callq	_d3dcompiler_alloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:
	movl	(%rbx), %ecx
	leaq	(%rcx,%rcx,2), %rdx
	movq	%r13, 16(%rax,%rdx,8)
	movq	%r12, 8(%rax,%rdx,8)
	movq	%r14, (%rax,%rdx,8)
	leal	1(%rcx), %eax
	movl	%eax, (%rbx)
	movq	_TRUE@GOTPCREL(%rip), %r15
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str(%rip), %rdi
LBB0_12:
	callq	_ERR
LBB0_13:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error allocating samplers array\n"

L_.str.1:                               ## @.str.1
	.asciz	"Sampler %u already declared\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error reallocating samplers array\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	_record_sampler                 ; -- Begin function record_sampler
	.p2align	2
_record_sampler:                        ; @record_sampler
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_8
; %bb.2:
	mov	x24, #0
	mov	x25, #0
Lloh0:
	adrp	x23, l_.str.1@PAGE
Lloh1:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	add	x24, x24, #24
	cmp	x25, w8, uxtw
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	x9, [x9, x24]
	cmp	x9, x19
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x19
	bl	_WARN
	ldr	w8, [x20]
	b	LBB0_3
LBB0_6:
	ldr	x0, [x20, #8]
	mov	w9, #24
	orr	w10, wzr, #0x18
	madd	w1, w8, w9, w10
	bl	_d3dcompiler_realloc
	cbz	x0, LBB0_10
; %bb.7:
	str	x0, [x20, #8]
	b	LBB0_9
LBB0_8:
	mov	w0, #24
	bl	_d3dcompiler_alloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_11
LBB0_9:
	ldr	w8, [x20]
	mov	w9, #24
	madd	x9, x8, x9, x0
	stp	x21, x22, [x9, #8]
	str	x19, [x9]
	add	w8, w8, #1
	str	w8, [x20]
Lloh2:
	adrp	x8, _TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_12:
	bl	_ERR
LBB0_13:
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error allocating samplers array\n"

l_.str.1:                               ; @.str.1
	.asciz	"Sampler %u already declared\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error reallocating samplers array\n"

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