	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compile_state_table            ## -- Begin function compile_state_table
	.p2align	4, 0x90
_compile_state_table:                   ## @compile_state_table
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -120(%rbp)                 ## 8-byte Spill
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_STATE_HIGHEST@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	leal	1(%rbx), %r15d
	leaq	(,%r15,4), %rax
	leaq	(%rax,%rax,2), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	leaq	(,%r15,8), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leal	4(,%rbx,4), %eax
	leal	(%rax,%rax,2), %edx
	xorl	%ebx, %ebx
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	cmpl	$-1, (%r14)
	je	LBB0_3
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rax
	xorl	%ecx, %ecx
	movq	_state_undefined@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -8(%rax)
	movl	(%rdx), %esi
	movl	%esi, (%rax)
	incq	%rcx
	movl	(%r14), %esi
	incl	%esi
	addq	$16, %rax
	cmpq	%rsi, %rcx
	jb	LBB0_2
LBB0_3:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	shll	$3, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	incl	%ebx
	cmpl	$3, %ebx
	je	LBB0_34
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	16(%rbp), %r15
	testl	%ebx, %ebx
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$1, %ebx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$2, %ebx
	jne	LBB0_33
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rax), %r15
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	testq	%r15, %r15
	je	LBB0_33
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_33
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %r12
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_31:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	(%r14), %rax
	shlq	$4, %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rdi)
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_13 Depth=2
	incl	%ebx
	movq	%rbx, %rax
	shlq	$5, %rax
	leaq	(%r15,%rax), %r12
	movl	(%r15,%rax), %eax
	testl	%eax, %eax
	je	LBB0_33
LBB0_13:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cltq
	cmpq	$0, (%r13,%rax,8)
	jne	LBB0_32
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rbx, %r14
	shlq	$5, %r14
	movq	8(%r15,%r14), %rdx
	cmpl	$0, (%rcx,%rdx,4)
	je	LBB0_32
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%r13,%rax,8)
	cmpq	$0, 16(%r15,%r14)
	je	LBB0_32
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=2
	leaq	(%rax,%rax,2), %rax
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	callq	_num_handlers
	movl	24(%r15,%r14), %ecx
	movslq	(%r12), %rdx
	movl	%eax, %esi
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(,%rdx,4), %rdx
	addq	%r13, %rdx
	movl	%ecx, (%rdx,%rsi,4)
	cmpl	$2, %eax
	je	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=2
	cmpl	$1, %eax
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=2
	testl	%eax, %eax
	jne	LBB0_27
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=2
	leaq	(%r15,%r14), %rax
	addq	$24, %rax
	movl	(%rax), %eax
	movslq	(%r12), %rcx
	shlq	$4, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 8(%rdx,%rcx)
	jmp	LBB0_28
LBB0_25:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	_multistate_apply_3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movslq	(%r12), %rcx
	movq	%rcx, %rdx
	shlq	$4, %rdx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, 8(%rsi,%rdx)
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13,%rcx,8), %rdi
	movl	$12, %esi
	callq	_heap_realloc
	testq	%rax, %rax
	je	LBB0_21
## %bb.26:                              ##   in Loop: Header=BB0_13 Depth=2
	movslq	(%r12), %rcx
	movq	%rax, (%r13,%rcx,8)
	leaq	(%rcx,%rcx,2), %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	8(%rdx,%rcx,4), %ecx
	movl	%ecx, 8(%rax)
	jmp	LBB0_28
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	_multistate_apply_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movslq	(%r12), %rcx
	shlq	$4, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 8(%rdx,%rcx)
	movl	$2, %edi
	movl	$4, %esi
	callq	_heap_calloc
	movslq	(%r12), %rcx
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%rax, (%r13,%rcx,8)
	testq	%rax, %rax
	je	LBB0_21
## %bb.24:                              ##   in Loop: Header=BB0_13 Depth=2
	leaq	(%rcx,%rcx,2), %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, (%rax)
	movslq	(%r12), %rax
	leaq	(%rax,%rax,2), %rcx
	movl	4(%rdx,%rcx,4), %ecx
	movq	(%r13,%rax,8), %rax
	movl	%ecx, 4(%rax)
	jmp	LBB0_28
LBB0_27:                                ##   in Loop: Header=BB0_13 Depth=2
	movslq	(%r12), %rsi
	incl	%eax
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	callq	_ERR
LBB0_28:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	addq	%r15, %r14
	addq	$16, %r14
	movslq	(%r12), %rdi
	movq	%rdi, %rax
	shlq	$4, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax), %rax
	testq	%rax, %rax
	je	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_13 Depth=2
	cmpq	(%r14), %rax
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_13 Depth=2
	callq	_debug_d3dstate
	movslq	(%r12), %rdx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
	movslq	(%r12), %rdi
	jmp	LBB0_31
LBB0_34:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	callq	_prune_invalid_states
	movq	%rbx, %rdi
	callq	_validate_state_table
	movq	_WINED3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_21:
	xorl	%ebx, %ebx
	movq	_STATE_HIGHEST@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	movq	(%r13,%rax,8), %rdi
	callq	_heap_free
	incl	%ebx
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	jbe	LBB0_22
## %bb.23:
	leal	8(,%rax,8), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_35:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_37
## %bb.36:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STATE_HIGHEST,4,2              ## @STATE_HIGHEST
	.comm	_state_undefined,4,2            ## @state_undefined
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_multistate_apply_2,4,2         ## @multistate_apply_2
	.comm	_multistate_apply_3,4,2         ## @multistate_apply_3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected amount of state handlers for state %u: %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"State %s (%#x) has different representatives in different pipeline parts.\n"

	.comm	_WINED3D_OK,4,2                 ## @WINED3D_OK
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_compile_state_table            ; -- Begin function compile_state_table
	.p2align	2
_compile_state_table:                   ; @compile_state_table
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #80
	stp	x1, x6, [x29, #-120]            ; 16-byte Folded Spill
	stp	x4, x5, [x29, #-144]            ; 16-byte Folded Spill
	stur	x3, [x29, #-152]                ; 8-byte Folded Spill
	mov	x26, x2
	mov	x28, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x20, _STATE_HIGHEST@GOTPAGE
Lloh4:
	ldr	x20, [x20, _STATE_HIGHEST@GOTPAGEOFF]
	ldr	w8, [x20]
	add	w19, w8, #1
	add	x8, x19, w19, uxtw #1
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0x1ffffffff0
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x0, x9, x8
	mov	sp, x0
	lsl	x8, x19, #3
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x27, x9, x8
	mov	sp, x27
	add	w8, w19, w19, lsl #1
	lsl	w2, w8, #2
	stur	x0, [x29, #-96]                 ; 8-byte Folded Spill
	mov	w1, #0
	bl	_memset
	ldr	w8, [x20]
	cmn	w8, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x8, #0
	add	x9, x28, #8
Lloh9:
	adrp	x10, _state_undefined@GOTPAGE
Lloh10:
	ldr	x10, [x10, _state_undefined@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	stur	xzr, [x9, #-8]
	ldr	w11, [x10]
	str	w11, [x9], #16
	add	x8, x8, #1
	ldr	w11, [x20]
	add	w11, w11, #1
	cmp	x8, x11
	b.lo	LBB0_2
LBB0_3:
	mov	w24, #0
	lsl	w8, w19, #3
	stur	w8, [x29, #-124]                ; 4-byte Folded Spill
Lloh11:
	adrp	x23, _TRUE@GOTPAGE
Lloh12:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
	stur	x26, [x29, #-104]               ; 8-byte Folded Spill
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w24, w24, #1
	cmp	w24, #3
	b.eq	LBB0_32
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	ldur	x25, [x29, #-112]               ; 8-byte Folded Reload
	cbz	w24, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w24, #1
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w24, #2
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldur	x8, [x29, #-136]                ; 8-byte Folded Reload
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x25, [x8]
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x25, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x27
	mov	w1, #0
	ldur	w2, [x29, #-124]                ; 4-byte Folded Reload
	bl	_memset
	ldr	w8, [x25]
	cbz	w8, LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, #0
	mov	x22, x25
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=2
	ldr	x8, [x19]
	lsl	x9, x0, #4
	str	x8, [x28, x9]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	w21, w21, #1
	add	x22, x25, x21, lsl #5
	ldr	w8, [x22]
	cbz	w8, LBB0_4
LBB0_16:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x27, w8, sxtw #3]
	cbnz	x9, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	x9, [x26]
	add	x19, x25, x21, lsl #5
	ldr	x10, [x19, #8]
	ldr	w9, [x9, x10, lsl #2]
	cbz	w9, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	sxtw	x8, w8
	ldr	x9, [x23]
	str	x9, [x27, x8, lsl #3]
	ldr	x9, [x19, #16]!
	cbz	x9, LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	w26, #12
	ldur	x20, [x29, #-96]                ; 8-byte Folded Reload
	madd	x0, x8, x26, x20
	bl	_num_handlers
	add	x8, x25, x21, lsl #5
	ldr	w9, [x8, #24]!
	ldrsw	x10, [x22]
	madd	x10, x10, x26, x20
	str	w9, [x10, w0, uxtw #2]
	cmp	w0, #2
	b.eq	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=2
	cmp	w0, #1
	b.eq	LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=2
	cbnz	w0, LBB0_28
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	w8, [x8]
	ldrsw	x9, [x22]
	add	x9, x28, x9, lsl #4
	str	w8, [x9, #8]
	b	LBB0_29
LBB0_23:                                ;   in Loop: Header=BB0_16 Depth=2
Lloh13:
	adrp	x8, _multistate_apply_3@GOTPAGE
Lloh14:
	ldr	x8, [x8, _multistate_apply_3@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldrsw	x9, [x22]
	add	x10, x28, x9, lsl #4
	str	w8, [x10, #8]
	ldur	x20, [x29, #-120]               ; 8-byte Folded Reload
	ldr	x0, [x20, x9, lsl #3]
	mov	w1, #12
	bl	_heap_realloc
	cbz	x0, LBB0_33
; %bb.24:                               ;   in Loop: Header=BB0_16 Depth=2
	ldrsw	x8, [x22]
	str	x0, [x20, x8, lsl #3]
	mov	w9, #12
	ldur	x10, [x29, #-96]                ; 8-byte Folded Reload
	madd	x8, x8, x9, x10
	ldr	w8, [x8, #8]
	str	w8, [x0, #8]
	b	LBB0_27
LBB0_25:                                ;   in Loop: Header=BB0_16 Depth=2
Lloh16:
	adrp	x8, _multistate_apply_2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _multistate_apply_2@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldrsw	x9, [x22]
	add	x9, x28, x9, lsl #4
	str	w8, [x9, #8]
	mov	w0, #2
	mov	w1, #4
	bl	_heap_calloc
	ldrsw	x8, [x22]
	ldur	x20, [x29, #-120]               ; 8-byte Folded Reload
	str	x0, [x20, x8, lsl #3]
	cbz	x0, LBB0_33
; %bb.26:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	w9, #12
	mul	x8, x8, x9
	ldur	x10, [x29, #-96]                ; 8-byte Folded Reload
	ldr	w8, [x10, x8]
	str	w8, [x0]
	ldrsw	x8, [x22]
	madd	x9, x8, x9, x10
	ldr	w9, [x9, #4]
	ldr	x8, [x20, x8, lsl #3]
	str	w9, [x8, #4]
LBB0_27:                                ;   in Loop: Header=BB0_16 Depth=2
Lloh19:
	adrp	x23, _TRUE@GOTPAGE
Lloh20:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_16 Depth=2
	ldrsw	x1, [x22]
	add	w2, w0, #1
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
LBB0_29:                                ;   in Loop: Header=BB0_16 Depth=2
	ldur	x26, [x29, #-104]               ; 8-byte Folded Reload
	ldrsw	x0, [x22]
	lsl	x8, x0, #4
	ldr	x8, [x28, x8]
	cbz	x8, LBB0_14
; %bb.30:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.31:                               ;   in Loop: Header=BB0_16 Depth=2
	bl	_debug_d3dstate
	mov	x1, x0
	ldrsw	x2, [x22]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
	ldrsw	x0, [x22]
	b	LBB0_14
LBB0_32:
	mov	x0, x28
	mov	x1, x26
	ldur	x2, [x29, #-152]                ; 8-byte Folded Reload
	bl	_prune_invalid_states
	mov	x0, x28
	bl	_validate_state_table
Lloh25:
	adrp	x8, _WINED3D_OK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WINED3D_OK@GOTPAGEOFF]
	b	LBB0_36
LBB0_33:
	mov	w19, #0
Lloh27:
	adrp	x21, _STATE_HIGHEST@GOTPAGE
Lloh28:
	ldr	x21, [x21, _STATE_HIGHEST@GOTPAGEOFF]
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, w19, uxtw #3]
	bl	_heap_free
	add	w19, w19, #1
	ldr	w8, [x21]
	cmp	w19, w8
	b.ls	LBB0_34
; %bb.35:
	lsl	w8, w8, #3
	add	w2, w8, #8
	mov	x0, x20
	mov	w1, #0
	bl	_memset
Lloh29:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_36:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_38
; %bb.37:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_38:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_STATE_HIGHEST,4,2              ; @STATE_HIGHEST
	.comm	_state_undefined,4,2            ; @state_undefined
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_multistate_apply_2,4,2         ; @multistate_apply_2
	.comm	_multistate_apply_3,4,2         ; @multistate_apply_3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected amount of state handlers for state %u: %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"State %s (%#x) has different representatives in different pipeline parts.\n"

	.comm	_WINED3D_OK,4,2                 ; @WINED3D_OK
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
.subsections_via_symbols
