	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function instr_dcl
_instr_dcl:                             ## @instr_dcl
	.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
	movq	%rcx, %rax
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	(%rsi), %rcx
	movl	4(%rcx), %edx
	leaq	8(%rcx), %rsi
	movq	%rsi, (%r12)
	movl	8(%rcx), %r15d
	movq	_D3DSP_DCL_USAGE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%edx, %esi
	movq	_D3DSP_DCL_USAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %esi
	movq	_D3DSP_DCL_USAGEINDEX_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%edx, %ebx
	movq	_D3DSP_DCL_USAGEINDEX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %ebx
	movabsq	$30508579171606560, %rcx        ## imm = 0x6C636420202020
	movq	%rcx, (%r14)
	leaq	7(%r14), %r13
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_D3DSP_TEXTURETYPE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	je	LBB0_12
## %bb.2:
	movq	_D3DSTT_VOLUME@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jle	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_5
LBB0_6:
	movq	_D3DDECLUSAGE_COLOR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jle	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_9
LBB0_4:
	movq	_D3DSP_TEXTURETYPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movq	_tex_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edx, %rcx
	movq	(%rax,%rcx,8), %rdx
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	jmp	LBB0_11
LBB0_8:
	movq	_decl_usage@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rdx
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	cltq
	addq	%rax, %r13
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_sprintf
LBB0_11:
	cltq
	addq	%rax, %r13
LBB0_12:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_add_modifier
	cltq
	leaq	(%rax,%r13), %rbx
	movw	$32, (%r13,%rax)
	leaq	(%rax,%r13), %rdi
	incq	%rdi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %esi
	movl	%ecx, %edx
	callq	_add_register
	cltq
	movw	$10, 1(%rax,%rbx)
	addq	$4, (%r12)
	addq	%rbx, %rax
	incq	%rax
	subl	%r14d, %eax
	incl	%eax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DSP_DCL_USAGE_MASK,4,2       ## @D3DSP_DCL_USAGE_MASK
	.comm	_D3DSP_DCL_USAGE_SHIFT,4,2      ## @D3DSP_DCL_USAGE_SHIFT
	.comm	_D3DSP_DCL_USAGEINDEX_MASK,4,2  ## @D3DSP_DCL_USAGEINDEX_MASK
	.comm	_D3DSP_DCL_USAGEINDEX_SHIFT,4,2 ## @D3DSP_DCL_USAGEINDEX_SHIFT
	.comm	_D3DSP_TEXTURETYPE_MASK,4,2     ## @D3DSP_TEXTURETYPE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"_%s"

	.comm	_D3DSTT_VOLUME,4,2              ## @D3DSTT_VOLUME
	.comm	_tex_type,8,3                   ## @tex_type
	.comm	_D3DSP_TEXTURETYPE_SHIFT,4,2    ## @D3DSP_TEXTURETYPE_SHIFT
L_.str.2:                               ## @.str.2
	.asciz	"???"

	.comm	_D3DDECLUSAGE_COLOR,4,2         ## @D3DDECLUSAGE_COLOR
	.comm	_decl_usage,8,3                 ## @decl_usage
L_.str.3:                               ## @.str.3
	.asciz	"%d"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function instr_dcl
_instr_dcl:                             ; @instr_dcl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	x8, [x1]
	ldr	w21, [x8, #8]!
	ldur	w9, [x8, #-4]
	str	x8, [x1]
Lloh0:
	adrp	x8, _D3DSP_DCL_USAGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3DSP_DCL_USAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w9
Lloh3:
	adrp	x10, _D3DSP_DCL_USAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _D3DSP_DCL_USAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	asr	w8, w8, w10
Lloh6:
	adrp	x10, _D3DSP_DCL_USAGEINDEX_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _D3DSP_DCL_USAGEINDEX_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x12, _D3DSP_DCL_USAGEINDEX_SHIFT@GOTPAGE
Lloh9:
	ldr	x12, [x12, _D3DSP_DCL_USAGEINDEX_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x10]
Lloh11:
	ldr	w10, [x12]
	mov	x12, #2314885530818453536
	movk	x12, #25444, lsl #32
	movk	x12, #108, lsl #48
	mov	x22, x2
	str	x12, [x22], #7
	cbz	x3, LBB0_4
; %bb.1:
Lloh12:
	adrp	x10, _D3DSP_TEXTURETYPE_MASK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _D3DSP_TEXTURETYPE_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	ands	w9, w10, w9
	b.eq	LBB0_12
; %bb.2:
Lloh15:
	adrp	x10, _D3DSTT_VOLUME@GOTPAGE
Lloh16:
	ldr	x10, [x10, _D3DSTT_VOLUME@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w8, w10
	b.le	LBB0_6
; %bb.3:
Lloh18:
	adrp	x8, l_.str.2@PAGE
Lloh19:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_4:
	and	w9, w11, w9
	asr	w23, w9, w10
Lloh20:
	adrp	x9, _D3DDECLUSAGE_COLOR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _D3DDECLUSAGE_COLOR@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_8
; %bb.5:
Lloh23:
	adrp	x8, l_.str.2@PAGE
Lloh24:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh25:
	adrp	x8, _tex_type@GOTPAGE
Lloh26:
	ldr	x8, [x8, _tex_type@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
Lloh28:
	adrp	x10, _D3DSP_TEXTURETYPE_SHIFT@GOTPAGE
Lloh29:
	ldr	x10, [x10, _D3DSP_TEXTURETYPE_SHIFT@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	asr	w9, w9, w10
	ldr	x8, [x8, w9, sxtw #3]
LBB0_7:
	str	x8, [sp]
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh33:
	adrp	x9, _decl_usage@GOTPAGE
Lloh34:
	ldr	x9, [x9, _decl_usage@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	ldr	x8, [x9, w8, sxtw #3]
LBB0_9:
	str	x8, [sp]
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_sprintf
	add	x22, x22, w0, sxtw
	cbz	w23, LBB0_12
; %bb.10:
	str	x23, [sp]
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:
	mov	x0, x22
	bl	_sprintf
	add	x22, x22, w0, sxtw
LBB0_12:
	mov	x0, x22
	mov	x1, x21
	bl	_add_modifier
	add	x22, x22, w0, sxtw
	mov	w8, #32
	strh	w8, [x22], #1
Lloh40:
	adrp	x8, _TRUE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x3, x2
	bl	_add_register
	add	x8, x22, w0, sxtw
	mov	w9, #10
	strh	w9, [x8]
	ldr	x9, [x20]
	add	x9, x9, #4
	str	x9, [x20]
	sub	w8, w8, w19
	add	w0, w8, #1
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DSP_DCL_USAGE_MASK,4,2       ; @D3DSP_DCL_USAGE_MASK
	.comm	_D3DSP_DCL_USAGE_SHIFT,4,2      ; @D3DSP_DCL_USAGE_SHIFT
	.comm	_D3DSP_DCL_USAGEINDEX_MASK,4,2  ; @D3DSP_DCL_USAGEINDEX_MASK
	.comm	_D3DSP_DCL_USAGEINDEX_SHIFT,4,2 ; @D3DSP_DCL_USAGEINDEX_SHIFT
	.comm	_D3DSP_TEXTURETYPE_MASK,4,2     ; @D3DSP_TEXTURETYPE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"_%s"

	.comm	_D3DSTT_VOLUME,4,2              ; @D3DSTT_VOLUME
	.comm	_tex_type,8,3                   ; @tex_type
	.comm	_D3DSP_TEXTURETYPE_SHIFT,4,2    ; @D3DSP_TEXTURETYPE_SHIFT
l_.str.2:                               ; @.str.2
	.asciz	"???"

	.comm	_D3DDECLUSAGE_COLOR,4,2         ; @D3DDECLUSAGE_COLOR
	.comm	_decl_usage,8,3                 ; @decl_usage
l_.str.3:                               ; @.str.3
	.asciz	"%d"

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