	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_declarations
_write_declarations:                    ## @write_declarations
	.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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r13d
	movq	%rcx, %rbx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_D3DSIO_DCL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	-64(%rbp), %rdi
	movl	$12, %esi
	callq	_ZeroMemory
	movq	_D3DSI_INSTLENGTH_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$2, %eax
	shll	%cl, %eax
	xorl	%ecx, %ecx
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	cmovnel	%eax, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.1:
	orl	%r14d, -48(%rbp)                ## 4-byte Folded Spill
	movl	%r13d, %r14d
	shlq	$5, %r14
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$32, %r13
	cmpq	%r13, %r14
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%rbx,%r13)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_put_dword
	movq	_D3DSP_DCL_USAGE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movl	(%rbx,%r13), %eax
	shll	%cl, %eax
	movl	4(%rbx,%r13), %esi
	movq	_D3DSP_DCL_USAGE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_D3DSP_DCL_USAGEINDEX_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %esi
	movq	_D3DSP_DCL_USAGEINDEX_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	orl	%eax, %esi
	orl	$-2147483648, %esi              ## imm = 0x80000000
	movq	%r15, %rdi
	callq	_put_dword
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -64(%rbp)
	movl	16(%rbx,%r13), %eax
	movl	%eax, -56(%rbp)
	movl	12(%rbx,%r13), %eax
	movl	%eax, -60(%rbp)
	movq	(%r12), %rax
	movl	8(%rbx,%r13), %r8d
	movq	%r12, %rdi
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	*(%rax)
	jmp	LBB0_4
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DSIO_DCL,4,2                 ## @D3DSIO_DCL
	.comm	_D3DSI_INSTLENGTH_SHIFT,4,2     ## @D3DSI_INSTLENGTH_SHIFT
	.comm	_D3DSP_DCL_USAGE_SHIFT,4,2      ## @D3DSP_DCL_USAGE_SHIFT
	.comm	_D3DSP_DCL_USAGE_MASK,4,2       ## @D3DSP_DCL_USAGE_MASK
	.comm	_D3DSP_DCL_USAGEINDEX_SHIFT,4,2 ## @D3DSP_DCL_USAGEINDEX_SHIFT
	.comm	_D3DSP_DCL_USAGEINDEX_MASK,4,2  ## @D3DSP_DCL_USAGEINDEX_MASK
	.no_dead_strip	_write_declarations
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_declarations
_write_declarations:                    ; @write_declarations
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x5
	mov	x23, x4
	mov	x24, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _D3DSIO_DCL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3DSIO_DCL@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	mov	x0, sp
	mov	w1, #12
	bl	_ZeroMemory
Lloh3:
	adrp	x8, _D3DSI_INSTLENGTH_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D3DSI_INSTLENGTH_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #2
	lsl	w8, w9, w8
	cmp	x22, #0
	csel	w8, wzr, w8, eq
	cbz	w23, LBB0_5
; %bb.1:
	orr	w22, w8, w25
Lloh6:
	adrp	x25, _D3DSP_DCL_USAGE_SHIFT@GOTPAGE
Lloh7:
	ldr	x25, [x25, _D3DSP_DCL_USAGE_SHIFT@GOTPAGEOFF]
Lloh8:
	adrp	x26, _D3DSP_DCL_USAGE_MASK@GOTPAGE
Lloh9:
	ldr	x26, [x26, _D3DSP_DCL_USAGE_MASK@GOTPAGEOFF]
	add	x24, x24, #12
Lloh10:
	adrp	x27, _D3DSP_DCL_USAGEINDEX_SHIFT@GOTPAGE
Lloh11:
	ldr	x27, [x27, _D3DSP_DCL_USAGEINDEX_SHIFT@GOTPAGEOFF]
Lloh12:
	adrp	x28, _D3DSP_DCL_USAGEINDEX_MASK@GOTPAGE
Lloh13:
	ldr	x28, [x28, _D3DSP_DCL_USAGEINDEX_MASK@GOTPAGEOFF]
	mov	w23, w23
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #32
	subs	x23, x23, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x24, #12]
	cbnz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_put_dword
	ldr	w8, [x25]
	ldp	w9, w10, [x24, #-12]
	lsl	w8, w9, w8
	ldr	w9, [x26]
	and	w8, w8, w9
	ldr	w9, [x27]
	lsl	w9, w10, w9
	ldr	w10, [x28]
	and	w9, w9, w10
	orr	w8, w8, w9
	orr	w1, w8, #0x80000000
	mov	x0, x20
	bl	_put_dword
	str	w19, [sp]
	ldr	d0, [x24]
	stur	d0, [sp, #4]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldur	w4, [x24, #-4]
	mov	x1, sp
	mov	x0, x21
	mov	x2, x20
	mov	w3, #0
	blr	x8
	b	LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DSIO_DCL,4,2                 ; @D3DSIO_DCL
	.comm	_D3DSI_INSTLENGTH_SHIFT,4,2     ; @D3DSI_INSTLENGTH_SHIFT
	.comm	_D3DSP_DCL_USAGE_SHIFT,4,2      ; @D3DSP_DCL_USAGE_SHIFT
	.comm	_D3DSP_DCL_USAGE_MASK,4,2       ; @D3DSP_DCL_USAGE_MASK
	.comm	_D3DSP_DCL_USAGEINDEX_SHIFT,4,2 ; @D3DSP_DCL_USAGEINDEX_SHIFT
	.comm	_D3DSP_DCL_USAGEINDEX_MASK,4,2  ; @D3DSP_DCL_USAGEINDEX_MASK
	.no_dead_strip	_write_declarations
.subsections_via_symbols
