	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_parse_array_selector
_d3dx9_parse_array_selector:            ## @d3dx9_parse_array_selector
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	addq	$8, %rsi
	movq	(%rdi), %rax
	movq	8(%r12), %rcx
	shlq	$4, %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx), %rbx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movslq	(%rbx), %r13
	leaq	4(%rbx), %r15
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r12, %r14
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_get_parameter_by_name
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movl	36(%rax), %edi
	callq	_debugstr_a
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movl	(%rbx,%r13), %esi
	addq	%r13, %rbx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	testb	$3, %r13b
	je	LBB0_3
## %bb.2:
	leaq	L_.str.4(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_FIXME
LBB0_3:
	addq	$4, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rax,%rcx), %rax
	negq	%r13
	leaq	(%rax,%r13), %r15
	addq	$-4, %r15
	movq	_D3DXPT_INT@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	40(%r14), %r12
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_get_version_counter_ptr
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movq	%r12, %r8
	movl	%eax, %r9d
	pushq	$0
	pushq	$0
	callq	_d3dx_create_param_eval
	addq	$16, %rsp
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_16
## %bb.4:
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	movq	8(%r14), %rdx
	movq	_D3DXPT_VERTEXSHADER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_6
## %bb.5:
	movq	_D3DXPT_PIXELSHADER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_16
LBB0_6:
	movl	16(%r14), %eax
	testl	%eax, %eax
	je	LBB0_16
## %bb.7:
	movq	24(%r14), %rcx
	movq	(%rcx), %rsi
	cmpq	%rdx, %rsi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_14
## %bb.8:
	movl	$8, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 4(%rcx,%r15)
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rcx,%r15), %esi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	(%r12), %rax
	movq	8(%r14), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	24(%r14), %rcx
	movslq	(%rcx,%r15), %rdx
	shlq	$4, %rdx
	movq	(%rax,%rdx), %r13
	movq	8(%rax,%rdx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%r15), %rax
	addq	$4, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_get_version_counter_ptr
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	%eax, %r9d
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_d3dx_create_param_eval
	addq	$16, %rsp
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	16(%r14), %eax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r14), %rdx
	movq	24(%r14), %rcx
	movq	8(%rcx,%r15), %rsi
	addq	$16, %r15
	cmpq	%rdx, %rsi
	je	LBB0_9
LBB0_14:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
	jmp	LBB0_15
LBB0_17:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_FIXME
LBB0_15:
	movq	_D3DXERR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_16:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Parsing array entry selection state for parameter %p.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Mapping to parameter %s.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Referenced parameter %s not found.\n"

	.comm	_D3DXERR_INVALIDDATA,4,2        ## @D3DXERR_INVALIDDATA
L_.str.3:                               ## @.str.3
	.asciz	"Unknown DWORD: 0x%.8x.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unaligned string_size %u.\n"

	.comm	_D3DXPT_INT,8,3                 ## @D3DXPT_INT
	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.comm	_D3DXPT_VERTEXSHADER,8,3        ## @D3DXPT_VERTEXSHADER
	.comm	_D3DXPT_PIXELSHADER,8,3         ## @D3DXPT_PIXELSHADER
L_.str.5:                               ## @.str.5
	.asciz	"Unexpected member parameter type %u, expected %u.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Creating preshader for object %u.\n"

	.no_dead_strip	_d3dx9_parse_array_selector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3dx9_parse_array_selector
_d3dx9_parse_array_selector:            ; @d3dx9_parse_array_selector
	.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, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	ldr	x25, [x0]
	mov	x8, x1
	ldr	x26, [x8, #8]!
	lsl	x9, x26, #4
	ldr	x27, [x25, x9]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x24, x27
	ldrsw	x22, [x24], #4
	mov	x0, x21
	mov	x1, #0
	mov	x2, x24
	bl	_get_parameter_by_name
	str	x0, [x23]
	cbz	x0, LBB0_15
; %bb.1:
	ldr	w0, [x0, #36]
	bl	_debugstr_a
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	add	x24, x27, x22
	ldr	w8, [x24]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	tst	x22, #0x3
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x22
	bl	_FIXME
LBB0_3:
	add	x24, x24, #4
	add	x8, x25, x26, lsl #4
	ldr	x8, [x8, #8]
	sub	x8, x8, x22
	sub	x22, x8, #4
Lloh8:
	adrp	x8, _D3DXPT_INT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _D3DXPT_INT@GOTPAGEOFF]
Lloh10:
	ldr	x25, [x8]
	add	x26, x23, #40
	mov	x0, x21
	bl	_get_version_counter_ptr
	mov	x5, x0
	mov	x0, x21
	mov	x1, x24
	mov	x2, x22
	mov	x3, x25
	mov	x4, x26
	mov	x6, #0
	mov	w7, #0
	bl	_d3dx_create_param_eval
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_17
; %bb.4:
Lloh11:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	ldr	x27, [x23]
	ldr	x9, [x27, #8]
Lloh14:
	adrp	x8, _D3DXPT_VERTEXSHADER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _D3DXPT_VERTEXSHADER@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_6
; %bb.5:
Lloh17:
	adrp	x8, _D3DXPT_PIXELSHADER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _D3DXPT_PIXELSHADER@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_17
LBB0_6:
	ldr	w8, [x27, #16]
	cbz	w8, LBB0_17
; %bb.7:
	ldr	x10, [x27, #24]
	ldr	x1, [x10]
	cmp	x1, x9
	b.ne	LBB0_14
; %bb.8:
	mov	x23, #0
	mov	x28, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x10, x23
	ldr	w10, [x9, #12]
	cbnz	w10, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x9, #8]
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str.6@PAGE
Lloh21:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_TRACE
	ldr	x8, [x21]
	ldr	x9, [x27, #24]
	add	x9, x9, x23
	ldrsw	x10, [x9, #8]
	add	x8, x8, x10, lsl #4
	ldp	x22, x24, [x8]
	ldr	x25, [x27, #8]
	add	x26, x9, #12
	mov	x0, x21
	bl	_get_version_counter_ptr
	mov	x5, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x24
	mov	x3, x25
	mov	x4, x26
	mov	x6, x20
	mov	x7, x19
	bl	_d3dx_create_param_eval
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x27, #16]
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x28, x28, #1
	cmp	x28, w8, uxtw
	b.hs	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x10, [x27, #24]
	add	x11, x10, x23
	add	x23, x23, #16
	ldr	x9, [x27, #8]
	ldr	x1, [x11, #16]
	cmp	x1, x9
	b.eq	LBB0_9
LBB0_14:
	str	x9, [sp]
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x24
LBB0_16:
	bl	_FIXME
Lloh26:
	adrp	x8, _D3DXERR_INVALIDDATA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _D3DXERR_INVALIDDATA@GOTPAGEOFF]
Lloh28:
	ldr	w22, [x8]
LBB0_17:
	mov	x0, x22
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Parsing array entry selection state for parameter %p.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Mapping to parameter %s.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Referenced parameter %s not found.\n"

	.comm	_D3DXERR_INVALIDDATA,4,2        ; @D3DXERR_INVALIDDATA
l_.str.3:                               ; @.str.3
	.asciz	"Unknown DWORD: 0x%.8x.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unaligned string_size %u.\n"

	.comm	_D3DXPT_INT,8,3                 ; @D3DXPT_INT
	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.comm	_D3DXPT_VERTEXSHADER,8,3        ; @D3DXPT_VERTEXSHADER
	.comm	_D3DXPT_PIXELSHADER,8,3         ; @D3DXPT_PIXELSHADER
l_.str.5:                               ; @.str.5
	.asciz	"Unexpected member parameter type %u, expected %u.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Creating preshader for object %u.\n"

	.no_dead_strip	_d3dx9_parse_array_selector
.subsections_via_symbols
