	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_fvf_to_declaration
_convert_fvf_to_declaration:            ## @convert_fvf_to_declaration
	.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
	movl	%esi, %r12d
	movq	_WINED3DFVF_POSITION_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r14d, %r14d
	testl	%esi, %ebx
	setne	%r14b
	movq	_WINED3DFVF_XYZB5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %r13d
	andl	%esi, %r13d
	movq	_WINED3DFVF_XYZRHW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %r13d
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movl	%ebx, -80(%rbp)                 ## 4-byte Spill
	jle	LBB0_1
## %bb.2:
	movb	$1, %r9b
	cmpl	%eax, %r13d
	je	LBB0_5
## %bb.3:
	movq	_WINED3DFVF_LASTBETA_D3DCOLOR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_WINED3DFVF_LASTBETA_UBYTE4@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	setne	%r9b
	jmp	LBB0_5
LBB0_1:
	xorl	%r9d, %r9d
LBB0_5:
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %r13d
	setg	%r8b
	movl	%r9d, -84(%rbp)                 ## 4-byte Spill
	movzbl	%r9b, %r9d
	movq	_WINED3DFVF_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movl	%r11d, -88(%rbp)                ## 4-byte Spill
	andl	%r12d, %r11d
	movq	_WINED3DFVF_PSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, -92(%rbp)                ## 4-byte Spill
	andl	%r12d, %r15d
	movq	_WINED3DFVF_DIFFUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, -100(%rbp)                ## 4-byte Spill
	andl	%r12d, %edx
	movq	_WINED3DFVF_TEXCOUNT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%r12d, %ebx
	movq	_WINED3DFVF_TEXCOUNT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %ebx
	movq	_WINED3DFVF_SPECULAR@GOTPCREL(%rip), %r10
	movq	_WINED3DFVF_XYZB1@GOTPCREL(%rip), %rax
	movl	%r13d, %ecx
	subl	(%rax), %ecx
	movl	(%r10), %r10d
	movl	%r10d, -96(%rbp)                ## 4-byte Spill
	andl	%r12d, %r10d
	sarl	%ecx
	movl	%r9d, %eax
	xorb	$1, %al
	movzbl	%al, %eax
	addl	%ecx, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	setg	%al
	addl	%r9d, %r14d
	andb	%r8b, %al
	cmpl	$1, %r11d
	sbbl	$-1, %r14d
	cmpl	$1, %r15d
	sbbl	$-1, %r14d
	cmpl	$1, %edx
	sbbl	$-1, %r14d
	cmpl	$1, %r10d
	sbbl	$-1, %r14d
	addl	%ebx, %r14d
	movl	%eax, %r15d
	movzbl	%al, %eax
	addl	%eax, %r14d
	movq	%rdi, -48(%rbp)
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_heap_calloc
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	$0, -56(%rbp)
	movl	$0, -64(%rbp)
	testl	%r12d, -80(%rbp)                ## 4-byte Folded Reload
	je	LBB0_16
## %bb.8:
	cmpl	-76(%rbp), %r13d                ## 4-byte Folded Reload
	jg	LBB0_11
## %bb.9:
	movq	_WINED3DFVF_XYZRHW@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_WINED3D_DECL_USAGE_POSITIONT@GOTPCREL(%rip), %rcx
	movq	_WINED3DFMT_R32G32B32A32_FLOAT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_6:
	movl	$-1, %r14d
	jmp	LBB0_42
LBB0_11:
	movq	_WINED3DFVF_XYZW@GOTPCREL(%rip), %rax
	movl	%r12d, %ecx
	notl	%ecx
	testl	%ecx, (%rax)
	jne	LBB0_12
## %bb.13:
	movq	_WINED3DFMT_R32G32B32A32_FLOAT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_WINED3DFMT_R32G32B32_FLOAT@GOTPCREL(%rip), %rax
LBB0_14:
	movq	_WINED3D_DECL_USAGE_POSITION@GOTPCREL(%rip), %rcx
LBB0_15:
	movl	(%rax), %esi
	movl	(%rcx), %edx
	leaq	-72(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_append_decl_element
LBB0_16:
	testb	%r15b, %r15b
	jne	LBB0_17
## %bb.28:
	cmpb	$0, -84(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_29
LBB0_33:
	testl	%r12d, -88(%rbp)                ## 4-byte Folded Reload
	je	LBB0_35
LBB0_34:
	movq	_WINED3DFMT_R32G32B32_FLOAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WINED3D_DECL_USAGE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_append_decl_element
LBB0_35:
	testl	%r12d, -92(%rbp)                ## 4-byte Folded Reload
	je	LBB0_37
## %bb.36:
	movq	_WINED3DFMT_R32_FLOAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WINED3D_DECL_USAGE_PSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_append_decl_element
LBB0_37:
	testl	%r12d, -100(%rbp)               ## 4-byte Folded Reload
	je	LBB0_39
## %bb.38:
	movq	_WINED3DFMT_B8G8R8A8_UNORM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WINED3D_DECL_USAGE_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_append_decl_element
LBB0_39:
	testl	%r12d, -96(%rbp)                ## 4-byte Folded Reload
	je	LBB0_41
## %bb.40:
	movq	_WINED3DFMT_B8G8R8A8_UNORM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WINED3D_DECL_USAGE_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rdi
	movl	$1, %ecx
	callq	_append_decl_element
LBB0_41:
	movq	-72(%rbp), %rax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_42:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_WINED3DFVF_XYZB5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movq	_WINED3DFVF_XYZB2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_21
## %bb.18:
	movq	_WINED3DFVF_LASTBETA_D3DCOLOR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_21
## %bb.19:
	movq	_WINED3DFMT_B8G8R8A8_UNORM@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_21:
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	leal	-1(%rsi), %eax
	cmpl	$3, %eax
	ja	LBB0_27
## %bb.22:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_23:
	movq	_WINED3DFMT_R32_FLOAT@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_24:
	movq	_WINED3DFMT_R32G32_FLOAT@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_25:
	movq	_WINED3DFMT_R32G32B32_FLOAT@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_26:
	movq	_WINED3DFMT_R32G32B32A32_FLOAT@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %esi
	movq	_WINED3D_DECL_USAGE_BLEND_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_append_decl_element
	cmpb	$0, -84(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_33
LBB0_29:
	movq	_WINED3DFVF_LASTBETA_UBYTE4@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_31
## %bb.30:
	movq	_WINED3DFMT_R8G8B8A8_UINT@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_31:
	movq	_WINED3DFVF_XYZB5@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%r12d, %ecx
	movq	_WINED3DFVF_LASTBETA_D3DCOLOR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	movq	_WINED3DFMT_B8G8R8A8_UNORM@GOTPCREL(%rip), %rdx
	cmoveq	_WINED3DFMT_R32_FLOAT@GOTPCREL(%rip), %rdx
	movq	_WINED3DFVF_XYZB2@GOTPCREL(%rip), %rsi
	movq	_WINED3DFMT_R8G8B8A8_UINT@GOTPCREL(%rip), %rax
	cmoveq	%rdx, %rax
	cmpl	(%rsi), %ecx
	cmovneq	%rdx, %rax
LBB0_32:
	movl	(%rax), %esi
	movq	_WINED3D_DECL_USAGE_BLEND_INDICES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_append_decl_element
	testl	%r12d, -88(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_34
	jmp	LBB0_35
LBB0_27:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_ERR
	cmpb	$0, -84(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_33
	jmp	LBB0_29
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
LJTI0_0:
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_25
	.long	L0_0_set_26
	.end_data_region
                                        ## -- End function
	.comm	_WINED3DFVF_POSITION_MASK,4,2   ## @WINED3DFVF_POSITION_MASK
	.comm	_WINED3DFVF_XYZB5,4,2           ## @WINED3DFVF_XYZB5
	.comm	_WINED3DFVF_XYZRHW,4,2          ## @WINED3DFVF_XYZRHW
	.comm	_WINED3DFVF_LASTBETA_D3DCOLOR,4,2 ## @WINED3DFVF_LASTBETA_D3DCOLOR
	.comm	_WINED3DFVF_LASTBETA_UBYTE4,4,2 ## @WINED3DFVF_LASTBETA_UBYTE4
	.comm	_WINED3DFVF_NORMAL,4,2          ## @WINED3DFVF_NORMAL
	.comm	_WINED3DFVF_PSIZE,4,2           ## @WINED3DFVF_PSIZE
	.comm	_WINED3DFVF_DIFFUSE,4,2         ## @WINED3DFVF_DIFFUSE
	.comm	_WINED3DFVF_SPECULAR,4,2        ## @WINED3DFVF_SPECULAR
	.comm	_WINED3DFVF_TEXCOUNT_MASK,4,2   ## @WINED3DFVF_TEXCOUNT_MASK
	.comm	_WINED3DFVF_TEXCOUNT_SHIFT,4,2  ## @WINED3DFVF_TEXCOUNT_SHIFT
	.comm	_WINED3DFVF_XYZB1,4,2           ## @WINED3DFVF_XYZB1
	.comm	_WINED3DFMT_R32G32B32A32_FLOAT,4,2 ## @WINED3DFMT_R32G32B32A32_FLOAT
	.comm	_WINED3D_DECL_USAGE_POSITIONT,4,2 ## @WINED3D_DECL_USAGE_POSITIONT
	.comm	_WINED3DFVF_XYZW,4,2            ## @WINED3DFVF_XYZW
	.comm	_WINED3D_DECL_USAGE_POSITION,4,2 ## @WINED3D_DECL_USAGE_POSITION
	.comm	_WINED3DFMT_R32G32B32_FLOAT,4,2 ## @WINED3DFMT_R32G32B32_FLOAT
	.comm	_WINED3DFVF_XYZB2,4,2           ## @WINED3DFVF_XYZB2
	.comm	_WINED3DFMT_B8G8R8A8_UNORM,4,2  ## @WINED3DFMT_B8G8R8A8_UNORM
	.comm	_WINED3D_DECL_USAGE_BLEND_WEIGHT,4,2 ## @WINED3D_DECL_USAGE_BLEND_WEIGHT
	.comm	_WINED3DFMT_R32_FLOAT,4,2       ## @WINED3DFMT_R32_FLOAT
	.comm	_WINED3DFMT_R32G32_FLOAT,4,2    ## @WINED3DFMT_R32G32_FLOAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected amount of blend values: %u\n"

	.comm	_WINED3DFMT_R8G8B8A8_UINT,4,2   ## @WINED3DFMT_R8G8B8A8_UINT
	.comm	_WINED3D_DECL_USAGE_BLEND_INDICES,4,2 ## @WINED3D_DECL_USAGE_BLEND_INDICES
	.comm	_WINED3D_DECL_USAGE_NORMAL,4,2  ## @WINED3D_DECL_USAGE_NORMAL
	.comm	_WINED3D_DECL_USAGE_PSIZE,4,2   ## @WINED3D_DECL_USAGE_PSIZE
	.comm	_WINED3D_DECL_USAGE_COLOR,4,2   ## @WINED3D_DECL_USAGE_COLOR
	.comm	_WINED3D_DECL_USAGE_TEXCOORD,4,2 ## @WINED3D_DECL_USAGE_TEXCOORD
	.no_dead_strip	_convert_fvf_to_declaration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_fvf_to_declaration
_convert_fvf_to_declaration:            ; @convert_fvf_to_declaration
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x21, x1
Lloh0:
	adrp	x8, _WINED3DFVF_POSITION_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3DFVF_POSITION_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ands	w19, w8, w1
	cset	w8, ne
Lloh3:
	adrp	x9, _WINED3DFVF_XYZB5@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINED3DFVF_XYZB5@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w23, w9, w1
Lloh6:
	adrp	x25, _WINED3DFVF_XYZRHW@GOTPAGE
Lloh7:
	ldr	x25, [x25, _WINED3DFVF_XYZRHW@GOTPAGEOFF]
	ldr	w24, [x25]
	cmp	w23, w24
	str	x2, [sp, #24]                   ; 8-byte Folded Spill
	b.le	LBB0_4
; %bb.1:
	cmp	w23, w9
	b.eq	LBB0_3
; %bb.2:
Lloh8:
	adrp	x9, _WINED3DFVF_LASTBETA_D3DCOLOR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WINED3DFVF_LASTBETA_D3DCOLOR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w21
	b.eq	LBB0_24
LBB0_3:
	mov	w28, #1
	b	LBB0_5
LBB0_4:
	mov	w28, #0
LBB0_5:
Lloh11:
	adrp	x9, _WINED3DFVF_NORMAL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WINED3DFVF_NORMAL@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _WINED3DFVF_XYZB1@GOTPAGE
Lloh15:
	ldr	x10, [x10, _WINED3DFVF_XYZB1@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	sub	w10, w23, w10
	ands	w27, w9, w21
Lloh17:
	adrp	x9, _WINED3DFVF_PSIZE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _WINED3DFVF_PSIZE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	add	w8, w28, w8
	cinc	w8, w8, ne
	ands	w9, w9, w21
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
Lloh20:
	adrp	x9, _WINED3DFVF_DIFFUSE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _WINED3DFVF_DIFFUSE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cinc	w8, w8, ne
	ands	w9, w9, w21
	str	w9, [sp, #16]                   ; 4-byte Folded Spill
Lloh23:
	adrp	x9, _WINED3DFVF_SPECULAR@GOTPAGE
Lloh24:
	ldr	x9, [x9, _WINED3DFVF_SPECULAR@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cinc	w8, w8, ne
	ands	w9, w9, w21
	str	w9, [sp, #20]                   ; 4-byte Folded Spill
	cinc	w8, w8, ne
	cmp	w23, w24
Lloh26:
	adrp	x9, _WINED3DFVF_TEXCOUNT_MASK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _WINED3DFVF_TEXCOUNT_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	and	w9, w9, w21
Lloh29:
	adrp	x11, _WINED3DFVF_TEXCOUNT_SHIFT@GOTPAGE
Lloh30:
	ldr	x11, [x11, _WINED3DFVF_TEXCOUNT_SHIFT@GOTPAGEOFF]
Lloh31:
	ldr	w11, [x11]
	asr	w9, w9, w11
	eor	w11, w28, #0x1
	add	w22, w11, w10, asr #1
	ccmp	w22, #0, #4, gt
	cset	w26, gt
	add	w8, w8, w9
	cinc	w20, w8, gt
	str	x0, [sp, #56]
	mov	x0, x20
	mov	w1, #4
	bl	_heap_calloc
	str	x0, [sp, #32]
	cbz	x0, LBB0_10
; %bb.6:
	str	xzr, [sp, #48]
	str	wzr, [sp, #40]
	cbz	w19, LBB0_13
; %bb.7:
	cmp	w23, w24
	b.gt	LBB0_11
; %bb.8:
	ldr	w8, [x25]
	tst	w8, w21
	b.eq	LBB0_11
; %bb.9:
Lloh32:
	adrp	x8, _WINED3D_DECL_USAGE_POSITIONT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _WINED3D_DECL_USAGE_POSITIONT@GOTPAGEOFF]
Lloh34:
	adrp	x9, _WINED3DFMT_R32G32B32A32_FLOAT@GOTPAGE
Lloh35:
	ldr	x9, [x9, _WINED3DFMT_R32G32B32A32_FLOAT@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	mov	w20, #-1
	b	LBB0_39
LBB0_11:
Lloh36:
	adrp	x8, _WINED3DFVF_XYZW@GOTPAGE
Lloh37:
	ldr	x8, [x8, _WINED3DFVF_XYZW@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _WINED3DFMT_R32G32B32A32_FLOAT@GOTPAGE
Lloh40:
	ldr	x9, [x9, _WINED3DFMT_R32G32B32A32_FLOAT@GOTPAGEOFF]
	bics	wzr, w8, w21
Lloh41:
	adrp	x8, _WINED3DFMT_R32G32B32_FLOAT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _WINED3DFMT_R32G32B32_FLOAT@GOTPAGEOFF]
	csel	x9, x9, x8, eq
Lloh43:
	adrp	x8, _WINED3D_DECL_USAGE_POSITION@GOTPAGE
Lloh44:
	ldr	x8, [x8, _WINED3D_DECL_USAGE_POSITION@GOTPAGEOFF]
LBB0_12:
	ldr	w1, [x9]
	ldr	w2, [x8]
	add	x0, sp, #32
	mov	w3, #0
	bl	_append_decl_element
LBB0_13:
Lloh45:
	adrp	x23, _WINED3DFMT_B8G8R8A8_UNORM@GOTPAGE
Lloh46:
	ldr	x23, [x23, _WINED3DFMT_B8G8R8A8_UNORM@GOTPAGEOFF]
	cbz	w26, LBB0_17
; %bb.14:
Lloh47:
	adrp	x8, _WINED3DFVF_XYZB5@GOTPAGE
Lloh48:
	ldr	x8, [x8, _WINED3DFVF_XYZB5@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	and	w8, w8, w21
Lloh50:
	adrp	x9, _WINED3DFVF_XYZB2@GOTPAGE
Lloh51:
	ldr	x9, [x9, _WINED3DFVF_XYZB2@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.15:
Lloh53:
	adrp	x8, _WINED3DFVF_LASTBETA_D3DCOLOR@GOTPAGE
Lloh54:
	ldr	x8, [x8, _WINED3DFVF_LASTBETA_D3DCOLOR@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_21
; %bb.16:
	ldr	w1, [x23]
	b	LBB0_29
LBB0_17:
	cbz	w28, LBB0_30
LBB0_18:
Lloh56:
	adrp	x8, _WINED3DFVF_LASTBETA_UBYTE4@GOTPAGE
Lloh57:
	ldr	x8, [x8, _WINED3DFVF_LASTBETA_UBYTE4@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x8]
Lloh59:
	adrp	x8, _WINED3DFMT_R8G8B8A8_UINT@GOTPAGE
Lloh60:
	ldr	x8, [x8, _WINED3DFMT_R8G8B8A8_UINT@GOTPAGEOFF]
	tst	w9, w21
	b.ne	LBB0_20
; %bb.19:
Lloh61:
	adrp	x9, _WINED3DFVF_LASTBETA_D3DCOLOR@GOTPAGE
Lloh62:
	ldr	x9, [x9, _WINED3DFVF_LASTBETA_D3DCOLOR@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	tst	w9, w21
Lloh64:
	adrp	x9, _WINED3DFMT_R32_FLOAT@GOTPAGE
Lloh65:
	ldr	x9, [x9, _WINED3DFMT_R32_FLOAT@GOTPAGEOFF]
	csel	x9, x9, x23, eq
Lloh66:
	adrp	x10, _WINED3DFVF_XYZB5@GOTPAGE
Lloh67:
	ldr	x10, [x10, _WINED3DFVF_XYZB5@GOTPAGEOFF]
Lloh68:
	ldr	w10, [x10]
	and	w10, w10, w21
Lloh69:
	adrp	x11, _WINED3DFVF_XYZB2@GOTPAGE
Lloh70:
	ldr	x11, [x11, _WINED3DFVF_XYZB2@GOTPAGEOFF]
Lloh71:
	ldr	w11, [x11]
	ccmp	w10, w11, #0, ne
	csel	x8, x9, x8, ne
LBB0_20:
	ldr	w1, [x8]
Lloh72:
	adrp	x8, _WINED3D_DECL_USAGE_BLEND_INDICES@GOTPAGE
Lloh73:
	ldr	x8, [x8, _WINED3D_DECL_USAGE_BLEND_INDICES@GOTPAGEOFF]
Lloh74:
	ldr	w2, [x8]
	add	x0, sp, #32
	mov	w3, #0
	bl	_append_decl_element
	cbnz	w27, LBB0_31
	b	LBB0_32
LBB0_21:
	sub	w8, w22, #1
	cmp	w8, #3
	b.hi	LBB0_40
; %bb.22:
Lloh75:
	adrp	x9, lJTI0_0@PAGE
Lloh76:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_23
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_23:
Lloh77:
	adrp	x8, _WINED3DFMT_R32_FLOAT@GOTPAGE
Lloh78:
	ldr	x8, [x8, _WINED3DFMT_R32_FLOAT@GOTPAGEOFF]
	b	LBB0_28
LBB0_24:
Lloh79:
	adrp	x9, _WINED3DFVF_LASTBETA_UBYTE4@GOTPAGE
Lloh80:
	ldr	x9, [x9, _WINED3DFVF_LASTBETA_UBYTE4@GOTPAGEOFF]
Lloh81:
	ldr	w9, [x9]
	tst	w9, w21
	cset	w28, ne
	b	LBB0_5
LBB0_25:
Lloh82:
	adrp	x8, _WINED3DFMT_R32G32_FLOAT@GOTPAGE
Lloh83:
	ldr	x8, [x8, _WINED3DFMT_R32G32_FLOAT@GOTPAGEOFF]
	b	LBB0_28
LBB0_26:
Lloh84:
	adrp	x8, _WINED3DFMT_R32G32B32_FLOAT@GOTPAGE
Lloh85:
	ldr	x8, [x8, _WINED3DFMT_R32G32B32_FLOAT@GOTPAGEOFF]
	b	LBB0_28
LBB0_27:
Lloh86:
	adrp	x8, _WINED3DFMT_R32G32B32A32_FLOAT@GOTPAGE
Lloh87:
	ldr	x8, [x8, _WINED3DFMT_R32G32B32A32_FLOAT@GOTPAGEOFF]
LBB0_28:
	ldr	w1, [x8]
LBB0_29:
Lloh88:
	adrp	x8, _WINED3D_DECL_USAGE_BLEND_WEIGHT@GOTPAGE
Lloh89:
	ldr	x8, [x8, _WINED3D_DECL_USAGE_BLEND_WEIGHT@GOTPAGEOFF]
Lloh90:
	ldr	w2, [x8]
	add	x0, sp, #32
	mov	w3, #0
	bl	_append_decl_element
	cbnz	w28, LBB0_18
LBB0_30:
	cbz	w27, LBB0_32
LBB0_31:
Lloh91:
	adrp	x8, _WINED3DFMT_R32G32B32_FLOAT@GOTPAGE
Lloh92:
	ldr	x8, [x8, _WINED3DFMT_R32G32B32_FLOAT@GOTPAGEOFF]
Lloh93:
	ldr	w1, [x8]
Lloh94:
	adrp	x8, _WINED3D_DECL_USAGE_NORMAL@GOTPAGE
Lloh95:
	ldr	x8, [x8, _WINED3D_DECL_USAGE_NORMAL@GOTPAGEOFF]
Lloh96:
	ldr	w2, [x8]
	add	x0, sp, #32
	mov	w3, #0
	bl	_append_decl_element
LBB0_32:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_34
; %bb.33:
Lloh97:
	adrp	x8, _WINED3DFMT_R32_FLOAT@GOTPAGE
Lloh98:
	ldr	x8, [x8, _WINED3DFMT_R32_FLOAT@GOTPAGEOFF]
Lloh99:
	ldr	w1, [x8]
Lloh100:
	adrp	x8, _WINED3D_DECL_USAGE_PSIZE@GOTPAGE
Lloh101:
	ldr	x8, [x8, _WINED3D_DECL_USAGE_PSIZE@GOTPAGEOFF]
Lloh102:
	ldr	w2, [x8]
	add	x0, sp, #32
	mov	w3, #0
	bl	_append_decl_element
LBB0_34:
Lloh103:
	adrp	x19, _WINED3D_DECL_USAGE_COLOR@GOTPAGE
Lloh104:
	ldr	x19, [x19, _WINED3D_DECL_USAGE_COLOR@GOTPAGEOFF]
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_36
; %bb.35:
	ldr	w1, [x23]
	ldr	w2, [x19]
	add	x0, sp, #32
	mov	w3, #0
	bl	_append_decl_element
LBB0_36:
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_38
; %bb.37:
	ldr	w1, [x23]
	ldr	w2, [x19]
	add	x0, sp, #32
	mov	w3, #1
	bl	_append_decl_element
LBB0_38:
	ldp	x9, x8, [sp, #24]               ; 8-byte Folded Reload
	str	x8, [x9]
LBB0_39:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_40:
Lloh105:
	adrp	x0, l_.str@PAGE
Lloh106:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_ERR
	cbz	w28, LBB0_30
	b	LBB0_18
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh103, Lloh104
	.loh AdrpAdd	Lloh105, Lloh106
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_23-LBB0_23)>>2
	.byte	(LBB0_25-LBB0_23)>>2
	.byte	(LBB0_26-LBB0_23)>>2
	.byte	(LBB0_27-LBB0_23)>>2
                                        ; -- End function
	.comm	_WINED3DFVF_POSITION_MASK,4,2   ; @WINED3DFVF_POSITION_MASK
	.comm	_WINED3DFVF_XYZB5,4,2           ; @WINED3DFVF_XYZB5
	.comm	_WINED3DFVF_XYZRHW,4,2          ; @WINED3DFVF_XYZRHW
	.comm	_WINED3DFVF_LASTBETA_D3DCOLOR,4,2 ; @WINED3DFVF_LASTBETA_D3DCOLOR
	.comm	_WINED3DFVF_LASTBETA_UBYTE4,4,2 ; @WINED3DFVF_LASTBETA_UBYTE4
	.comm	_WINED3DFVF_NORMAL,4,2          ; @WINED3DFVF_NORMAL
	.comm	_WINED3DFVF_PSIZE,4,2           ; @WINED3DFVF_PSIZE
	.comm	_WINED3DFVF_DIFFUSE,4,2         ; @WINED3DFVF_DIFFUSE
	.comm	_WINED3DFVF_SPECULAR,4,2        ; @WINED3DFVF_SPECULAR
	.comm	_WINED3DFVF_TEXCOUNT_MASK,4,2   ; @WINED3DFVF_TEXCOUNT_MASK
	.comm	_WINED3DFVF_TEXCOUNT_SHIFT,4,2  ; @WINED3DFVF_TEXCOUNT_SHIFT
	.comm	_WINED3DFVF_XYZB1,4,2           ; @WINED3DFVF_XYZB1
	.comm	_WINED3DFMT_R32G32B32A32_FLOAT,4,2 ; @WINED3DFMT_R32G32B32A32_FLOAT
	.comm	_WINED3D_DECL_USAGE_POSITIONT,4,2 ; @WINED3D_DECL_USAGE_POSITIONT
	.comm	_WINED3DFVF_XYZW,4,2            ; @WINED3DFVF_XYZW
	.comm	_WINED3D_DECL_USAGE_POSITION,4,2 ; @WINED3D_DECL_USAGE_POSITION
	.comm	_WINED3DFMT_R32G32B32_FLOAT,4,2 ; @WINED3DFMT_R32G32B32_FLOAT
	.comm	_WINED3DFVF_XYZB2,4,2           ; @WINED3DFVF_XYZB2
	.comm	_WINED3DFMT_B8G8R8A8_UNORM,4,2  ; @WINED3DFMT_B8G8R8A8_UNORM
	.comm	_WINED3D_DECL_USAGE_BLEND_WEIGHT,4,2 ; @WINED3D_DECL_USAGE_BLEND_WEIGHT
	.comm	_WINED3DFMT_R32_FLOAT,4,2       ; @WINED3DFMT_R32_FLOAT
	.comm	_WINED3DFMT_R32G32_FLOAT,4,2    ; @WINED3DFMT_R32G32_FLOAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected amount of blend values: %u\n"

	.comm	_WINED3DFMT_R8G8B8A8_UINT,4,2   ; @WINED3DFMT_R8G8B8A8_UINT
	.comm	_WINED3D_DECL_USAGE_BLEND_INDICES,4,2 ; @WINED3D_DECL_USAGE_BLEND_INDICES
	.comm	_WINED3D_DECL_USAGE_NORMAL,4,2  ; @WINED3D_DECL_USAGE_NORMAL
	.comm	_WINED3D_DECL_USAGE_PSIZE,4,2   ; @WINED3D_DECL_USAGE_PSIZE
	.comm	_WINED3D_DECL_USAGE_COLOR,4,2   ; @WINED3D_DECL_USAGE_COLOR
	.comm	_WINED3D_DECL_USAGE_TEXCOORD,4,2 ; @WINED3D_DECL_USAGE_TEXCOORD
	.no_dead_strip	_convert_fvf_to_declaration
.subsections_via_symbols
