	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stateblock_savedstates_set_vertex
_stateblock_savedstates_set_vertex:     ## @stateblock_savedstates_set_vertex
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rdi)
	movq	_vertex_states_render@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movl	(%rdi,%rbx,4), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	movq	8(%r15), %rdx
	sarl	$5, %ecx
	movslq	%ecx, %rcx
	orl	%eax, (%rdx,%rcx,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	movq	_vertex_states_texture@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_4
## %bb.14:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movzbl	(%rdi,%rbx,4), %eax
	btsl	%eax, %r13d
	incq	%rbx
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_15
	jmp	LBB0_5
LBB0_4:
	xorl	%r13d, %r13d
LBB0_5:
	movq	_MAX_TEXTURES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.6:
	movq	16(%r15), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, (%rcx,%rdx,4)
	incq	%rdx
	movl	(%rax), %esi
	cmpq	%rsi, %rdx
	jb	LBB0_7
LBB0_8:
	movq	_vertex_states_sampler@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_9
## %bb.16:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movzbl	(%rdi,%rbx,4), %eax
	btsl	%eax, %r13d
	incq	%rbx
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_17
	jmp	LBB0_10
LBB0_9:
	xorl	%r13d, %r13d
LBB0_10:
	movq	_MAX_COMBINED_SAMPLERS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.11:
	movq	24(%r15), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, (%rcx,%rdx,4)
	incq	%rdx
	movl	(%rax), %esi
	cmpq	%rsi, %rdx
	jb	LBB0_12
LBB0_13:
	movabsq	$281470681808895, %rax          ## imm = 0xFFFF0000FFFF
	movq	%rax, 32(%r15)
	movl	40(%r15), %edi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %r14d
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vertex_states_render,8,3       ## @vertex_states_render
	.comm	_vertex_states_texture,8,3      ## @vertex_states_texture
	.comm	_MAX_TEXTURES,4,2               ## @MAX_TEXTURES
	.comm	_vertex_states_sampler,8,3      ## @vertex_states_sampler
	.comm	_MAX_COMBINED_SAMPLERS,4,2      ## @MAX_COMBINED_SAMPLERS
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_stateblock_savedstates_set_vertex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stateblock_savedstates_set_vertex
_stateblock_savedstates_set_vertex:     ; @stateblock_savedstates_set_vertex
	.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, x1
	mov	x20, x0
	movi.2s	v0, #1
	str	d0, [x0]
Lloh0:
	adrp	x21, _vertex_states_render@GOTPAGE
Lloh1:
	ldr	x21, [x21, _vertex_states_render@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_3
; %bb.1:
	mov	x22, #0
	mov	w23, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	w8, [x0, x22, lsl #2]
	lsl	w9, w23, w8
	ldr	x10, [x20, #8]
	asr	w8, w8, #5
	sbfiz	x8, x8, #2, #32
	ldr	w11, [x10, x8]
	orr	w9, w11, w9
	str	w9, [x10, x8]
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	cmp	x22, w0, uxtw
	b.lo	LBB0_2
LBB0_3:
Lloh2:
	adrp	x22, _vertex_states_texture@GOTPAGE
Lloh3:
	ldr	x22, [x22, _vertex_states_texture@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_6
; %bb.4:
	mov	x23, #0
	mov	w21, #0
	mov	w24, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	w8, [x0, x23, lsl #2]
	lsl	w8, w24, w8
	orr	w21, w8, w21
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	cmp	x23, w0, uxtw
	b.lo	LBB0_5
	b	LBB0_7
LBB0_6:
	mov	w21, #0
LBB0_7:
Lloh4:
	adrp	x8, _MAX_TEXTURES@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAX_TEXTURES@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_10
; %bb.8:
	mov	x9, #0
	ldr	x10, [x20, #16]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	w21, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldr	w11, [x8]
	cmp	x9, x11
	b.lo	LBB0_9
LBB0_10:
Lloh6:
	adrp	x22, _vertex_states_sampler@GOTPAGE
Lloh7:
	ldr	x22, [x22, _vertex_states_sampler@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_13
; %bb.11:
	mov	x23, #0
	mov	w21, #0
	mov	w24, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	w8, [x0, x23, lsl #2]
	lsl	w8, w24, w8
	orr	w21, w8, w21
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	cmp	x23, w0, uxtw
	b.lo	LBB0_12
	b	LBB0_14
LBB0_13:
	mov	w21, #0
LBB0_14:
Lloh8:
	adrp	x8, _MAX_COMBINED_SAMPLERS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_COMBINED_SAMPLERS@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_17
; %bb.15:
	mov	x9, #0
	ldr	x10, [x20, #24]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	str	w21, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldr	w11, [x8]
	cmp	x9, x11
	b.lo	LBB0_16
LBB0_17:
	movi	d0, #0x00ffff0000ffff
	str	d0, [x20, #32]
Lloh10:
	adrp	x8, _TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	ldr	w0, [x20, #40]
Lloh12:
	ldr	w1, [x8]
	lsl	w2, w19, #2
	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
	b	_memset
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_vertex_states_render,8,3       ; @vertex_states_render
	.comm	_vertex_states_texture,8,3      ; @vertex_states_texture
	.comm	_MAX_TEXTURES,4,2               ; @MAX_TEXTURES
	.comm	_vertex_states_sampler,8,3      ; @vertex_states_sampler
	.comm	_MAX_COMBINED_SAMPLERS,4,2      ; @MAX_COMBINED_SAMPLERS
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_stateblock_savedstates_set_vertex
.subsections_via_symbols
