	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_parse_effect
_d3dx9_parse_effect:                    ## @d3dx9_parse_effect
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -100(%rbp)                ## 4-byte Spill
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movslq	%ecx, %rax
	addq	%rsi, %rax
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_read_dword
	movslq	(%r15), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	leaq	4(%r15), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_read_dword
	movslq	4(%r15), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_TRACE
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_skip_dword_unknown
	leaq	8(%r15), %r13
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_read_dword
	movslq	8(%r15), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_TRACE
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	8(%r15), %ecx
	shll	$3, %ecx
	leal	(%rcx,%rcx,2), %edx
	movl	%eax, %edi
	callq	_HeapAlloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	leaq	56(%r15), %rdi
	movq	_param_rb_compare@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wine_rb_init
	cmpl	$0, (%r15)
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.2:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r15), %ecx
	shll	$3, %ecx
	leal	(%rcx,%rcx,2), %edx
	movl	%eax, %edi
	callq	_HeapAlloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_22
## %bb.3:
	cmpl	$0, (%r15)
	je	LBB0_10
## %bb.4:
	movq	%rax, %rdi
	callq	_param_set_magic_number
	movq	16(%r15), %r8
	movq	24(%r15), %rsi
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_d3dx9_parse_effect_parameter
	movq	_D3D_OK@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_33
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rdi
	addq	%rbx, %rdi
	movq	_param_set_top_level_param@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, %rdx
	callq	_walk_parameter_tree
	movq	24(%r15), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_add_param_to_tree
	incq	%r13
	movslq	(%r15), %rax
	cmpq	%rax, %r13
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jae	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%r15), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$24, %rdi
	callq	_param_set_magic_number
	movq	16(%r15), %r8
	movq	24(%r15), %rax
	leaq	(%rax,%rbx), %rsi
	addq	$24, %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	leaq	-56(%rbp), %rcx
	callq	_d3dx9_parse_effect_parameter
	addq	$24, %rbx
	cmpq	(%r14), %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %r12
	jmp	LBB0_34
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	callq	_ERR
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_40
LBB0_10:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	cmpl	$0, (%r14)
	je	LBB0_16
## %bb.11:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%r15), %ecx
	shll	$3, %ecx
	leal	(%rcx,%rcx,2), %edx
	movl	%eax, %edi
	callq	_HeapAlloc
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_32
## %bb.12:
	cmpl	$0, (%r14)
	je	LBB0_16
## %bb.13:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TRACE
	movq	32(%r15), %rsi
	addq	%r13, %rsi
	movq	16(%r15), %r8
	movq	%r15, %rdi
	movq	%r12, %rdx
	leaq	-56(%rbp), %rcx
	callq	_d3dx9_parse_effect_technique
	movq	%rax, %r12
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_35
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	addq	$24, %r13
	cmpq	%rax, %rbx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jb	LBB0_14
LBB0_16:
	leaq	-56(%rbp), %rbx
	leaq	-96(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_read_dword
	movq	-96(%rbp), %rsi
	leaq	L_.str.7(%rip), %rdi
	callq	_TRACE
	leaq	-88(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_read_dword
	movq	-88(%rbp), %rsi
	leaq	L_.str.8(%rip), %rdi
	callq	_TRACE
	cmpq	$0, -96(%rbp)
	je	LBB0_23
## %bb.17:
	leaq	-56(%rbp), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%rbx
	cmpq	-96(%rbp), %rbx
	jae	LBB0_23
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	leaq	-60(%rbp), %rsi
	xorl	%eax, %eax
	callq	_read_dword
	movslq	-60(%rbp), %rsi
	leaq	L_.str.9(%rip), %rdi
	callq	_TRACE
	movl	-60(%rbp), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_d3dx9_copy_data
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_37
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	16(%r15), %rax
	movslq	-60(%rbp), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	cmpq	$0, 16(%rax,%rcx,8)
	je	LBB0_18
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	leaq	(%rax,%rcx,8), %rsi
	movq	%r15, %rdi
	callq	_d3dx9_create_object
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_18
	jmp	LBB0_37
LBB0_22:
	leaq	L_.str.3(%rip), %rdi
	callq	_ERR
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_39
LBB0_23:
	cmpq	$0, -88(%rbp)
	je	LBB0_27
## %bb.24:
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r13
	movq	_D3D_OK@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	leaq	L_.str.10(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TRACE
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	-100(%rbp), %r8d                ## 4-byte Reload
	callq	_d3dx9_parse_resource
	cmpq	(%r14), %rax
	jne	LBB0_38
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	incq	%rbx
	cmpq	-88(%rbp), %rbx
	jb	LBB0_25
LBB0_27:
	cmpl	$0, (%r15)
	je	LBB0_31
## %bb.28:
	leaq	40(%r15), %r14
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%r15), %rdi
	movq	24(%r15), %rsi
	addq	%rbx, %rsi
	callq	_d3dx_pool_sync_shared_parameter
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_39
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	24(%r15), %rdi
	movq	48(%r15), %rax
	testq	%rax, %rax
	cmoveq	%r14, %rax
	movq	%rax, 8(%rdi,%rbx)
	addq	%rbx, %rdi
	callq	_set_dirty
	incq	%r13
	movslq	(%r15), %rax
	addq	$24, %rbx
	cmpq	%rax, %r13
	jb	LBB0_29
LBB0_31:
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_58
LBB0_32:
	leaq	L_.str.3(%rip), %rdi
	callq	_ERR
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_37
LBB0_33:
	movq	%rax, %r12
	xorl	%r13d, %r13d
LBB0_34:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	leaq	L_.str.4(%rip), %rdi
	movq	%r13, %rsi
	jmp	LBB0_36
LBB0_35:
	leaq	L_.str.6(%rip), %rdi
	movq	%rbx, %rsi
LBB0_36:
	callq	_WARN
LBB0_37:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_40
LBB0_38:
	movq	%rax, %r12
	leaq	L_.str.11(%rip), %rdi
	movq	%rbx, %rsi
	callq	_WARN
LBB0_39:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_40:
	movq	32(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_46
## %bb.41:
	cmpl	$0, (%r14)
	je	LBB0_45
## %bb.42:
	callq	_free_technique
	cmpl	$2, (%r14)
	jb	LBB0_45
## %bb.43:
	movl	$1, %r14d
	movl	$24, %ebx
	.p2align	4, 0x90
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rdi
	addq	%rbx, %rdi
	callq	_free_technique
	incq	%r14
	movslq	4(%r15), %rax
	addq	$24, %rbx
	cmpq	%rax, %r14
	jb	LBB0_44
LBB0_45:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	32(%r15), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movq	$0, 32(%r15)
LBB0_46:
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_52
## %bb.47:
	cmpl	$0, (%r15)
	je	LBB0_51
## %bb.48:
	callq	_free_top_level_parameter
	cmpl	$2, (%r15)
	jb	LBB0_51
## %bb.49:
	movl	$1, %r14d
	movl	$24, %ebx
	.p2align	4, 0x90
LBB0_50:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rdi
	addq	%rbx, %rdi
	callq	_free_top_level_parameter
	incq	%r14
	movslq	(%r15), %rax
	addq	$24, %rbx
	cmpq	%rax, %r14
	jb	LBB0_50
LBB0_51:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	24(%r15), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movq	$0, 24(%r15)
LBB0_52:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_58
## %bb.53:
	cmpl	$0, (%r13)
	je	LBB0_57
## %bb.54:
	callq	_free_object
	cmpl	$2, (%r13)
	jb	LBB0_57
## %bb.55:
	movl	$1, %r14d
	movl	$24, %ebx
	.p2align	4, 0x90
LBB0_56:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	addq	%rbx, %rdi
	callq	_free_object
	incq	%r14
	movslq	8(%r15), %rax
	addq	$24, %rbx
	cmpq	%rax, %r14
	jb	LBB0_56
LBB0_57:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	16(%r15), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movq	$0, 16(%r15)
LBB0_58:
	movq	%r12, %rax
	addq	$72, %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	"Parameter count: %u.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Technique count: %u.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Object count: %u.\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
L_.str.3:                               ## @.str.3
	.asciz	"Out of memory.\n"

	.comm	_E_OUTOFMEMORY,8,3              ## @E_OUTOFMEMORY
	.comm	_param_rb_compare,4,2           ## @param_rb_compare
	.comm	_D3D_OK,8,3                     ## @D3D_OK
L_.str.4:                               ## @.str.4
	.asciz	"Failed to parse parameter %u.\n"

	.comm	_param_set_top_level_param,4,2  ## @param_set_top_level_param
L_.str.5:                               ## @.str.5
	.asciz	"Parsing technique %u.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to parse technique %u.\n"

L_.str.7:                               ## @.str.7
	.asciz	"String count: %u.\n"

L_.str.8:                               ## @.str.8
	.asciz	"Resource count: %u.\n"

L_.str.9:                               ## @.str.9
	.asciz	"id: %u.\n"

L_.str.10:                              ## @.str.10
	.asciz	"parse resource %u.\n"

L_.str.11:                              ## @.str.11
	.asciz	"Failed to parse resource %u.\n"

	.no_dead_strip	_d3dx9_parse_effect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3dx9_parse_effect
_d3dx9_parse_effect:                    ; @d3dx9_parse_effect
	.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	x20, x5
	mov	x21, x4
	mov	x22, x1
	mov	x19, x0
	add	x8, x1, w3, sxtw
	str	x8, [sp, #56]
	str	x0, [sp]
	add	x0, sp, #56
	bl	_read_dword
	ldrsw	x1, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	add	x27, x19, #4
	str	x27, [sp]
	add	x0, sp, #56
	bl	_read_dword
	ldrsw	x1, [x19, #4]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	add	x0, sp, #56
	mov	w1, #1
	bl	_skip_dword_unknown
	add	x26, x19, #8
	str	x26, [sp]
	add	x0, sp, #56
	bl	_read_dword
	ldrsw	x1, [x19, #8]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	bl	_GetProcessHeap
Lloh6:
	adrp	x25, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh7:
	ldr	x25, [x25, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
	ldr	w1, [x25]
	ldr	w8, [x19, #8]
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #3
	bl	_HeapAlloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.1:
	str	w20, [sp, #20]                  ; 4-byte Folded Spill
	str	x26, [sp, #24]                  ; 8-byte Folded Spill
	add	x0, x19, #56
Lloh8:
	adrp	x8, _param_rb_compare@GOTPAGE
Lloh9:
	ldr	x8, [x8, _param_rb_compare@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_wine_rb_init
	ldr	w8, [x19]
	cbz	w8, LBB0_10
; %bb.2:
	bl	_GetProcessHeap
	ldr	w1, [x25]
	ldr	w8, [x19]
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #3
	bl	_HeapAlloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_22
; %bb.3:
	ldr	w8, [x19]
	cbz	w8, LBB0_10
; %bb.4:
	bl	_param_set_magic_number
	ldp	x4, x1, [x19, #16]
	add	x3, sp, #56
	mov	x0, x19
	mov	x2, x22
	bl	_d3dx9_parse_effect_parameter
Lloh11:
	adrp	x28, _D3D_OK@GOTPAGE
Lloh12:
	ldr	x28, [x28, _D3D_OK@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_33
; %bb.5:
	mov	x26, #0
	mov	x24, #0
Lloh13:
	adrp	x20, _param_set_top_level_param@GOTPAGE
Lloh14:
	ldr	x20, [x20, _param_set_top_level_param@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, x26
	ldr	w1, [x20]
	mov	x2, x0
	bl	_walk_parameter_tree
	ldr	x8, [x19, #24]
	add	x1, x8, x26
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_add_param_to_tree
	add	x24, x24, #1
	ldrsw	x8, [x19]
	cmp	x24, x8
	b.hs	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #24]
	add	x8, x8, x26
	add	x0, x8, #24
	bl	_param_set_magic_number
	ldp	x4, x8, [x19, #16]
	add	x8, x8, x26
	add	x1, x8, #24
	add	x3, sp, #56
	mov	x0, x19
	mov	x2, x22
	bl	_d3dx9_parse_effect_parameter
	ldr	x8, [x28]
	add	x26, x26, #24
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.8:
	mov	x23, x0
	b	LBB0_34
LBB0_9:
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ERR
Lloh17:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh19:
	ldr	x23, [x8]
	b	LBB0_38
LBB0_10:
	ldr	w8, [x27]
	cbz	w8, LBB0_16
; %bb.11:
	bl	_GetProcessHeap
	ldr	w1, [x25]
	ldr	w8, [x19, #4]
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #3
	bl	_HeapAlloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_22
; %bb.12:
	ldr	w8, [x27]
	cbz	w8, LBB0_16
; %bb.13:
	mov	x20, #0
	mov	x24, #0
Lloh20:
	adrp	x26, _D3D_OK@GOTPAGE
Lloh21:
	ldr	x26, [x26, _D3D_OK@GOTPAGEOFF]
Lloh22:
	adrp	x25, l_.str.5@PAGE
Lloh23:
	add	x25, x25, l_.str.5@PAGEOFF
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x24
	bl	_TRACE
	ldr	x8, [x19, #32]
	add	x1, x8, x20
	ldr	x4, [x19, #16]
	add	x3, sp, #56
	mov	x0, x19
	mov	x2, x22
	bl	_d3dx9_parse_effect_technique
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_35
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x27]
	add	x20, x20, #24
	cmp	x24, x8
	b.lo	LBB0_14
LBB0_16:
	add	x8, sp, #48
	str	x8, [sp]
	add	x0, sp, #56
	bl	_read_dword
	ldr	x1, [sp, #48]
Lloh24:
	adrp	x0, l_.str.7@PAGE
Lloh25:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_TRACE
	add	x8, sp, #40
	str	x8, [sp]
	add	x0, sp, #56
	bl	_read_dword
	ldr	x1, [sp, #40]
Lloh26:
	adrp	x0, l_.str.8@PAGE
Lloh27:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_TRACE
	ldr	x8, [sp, #48]
	ldr	w28, [sp, #20]                  ; 4-byte Folded Reload
	cbz	x8, LBB0_24
; %bb.17:
	mov	x25, #0
	add	x26, sp, #36
	mov	w20, #24
Lloh28:
	adrp	x24, l_.str.9@PAGE
Lloh29:
	add	x24, x24, l_.str.9@PAGEOFF
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x25, x25, #1
	ldr	x8, [sp, #48]
	cmp	x25, x8
	b.hs	LBB0_24
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	str	x26, [sp]
	add	x0, sp, #56
	bl	_read_dword
	ldrsw	x1, [sp, #36]
	mov	x0, x24
	bl	_TRACE
	ldr	w1, [sp, #36]
	add	x2, sp, #56
	mov	x0, x19
	bl	_d3dx9_copy_data
	mov	x23, x0
	bl	_FAILED
	cbnz	x0, LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x19, #16]
	ldrsw	x9, [sp, #36]
	madd	x10, x9, x20, x8
	ldr	x10, [x10, #16]
	cbz	x10, LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	madd	x1, x9, x20, x8
	mov	x0, x19
	bl	_d3dx9_create_object
	mov	x23, x0
	bl	_FAILED
	cbz	x0, LBB0_18
	b	LBB0_23
LBB0_22:
Lloh30:
	adrp	x0, l_.str.3@PAGE
Lloh31:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ERR
Lloh32:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh33:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh34:
	ldr	x23, [x8]
LBB0_23:
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_38
LBB0_24:
	ldr	x8, [sp, #40]
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	cbz	x8, LBB0_28
; %bb.25:
	mov	x24, #0
Lloh35:
	adrp	x25, l_.str.10@PAGE
Lloh36:
	add	x25, x25, l_.str.10@PAGEOFF
Lloh37:
	adrp	x20, _D3D_OK@GOTPAGE
Lloh38:
	ldr	x20, [x20, _D3D_OK@GOTPAGEOFF]
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x24
	bl	_TRACE
	add	x2, sp, #56
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	mov	x4, x28
	bl	_d3dx9_parse_resource
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_36
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	add	x24, x24, #1
	ldr	x8, [sp, #40]
	cmp	x24, x8
	b.lo	LBB0_26
LBB0_28:
	ldr	w8, [x19]
	cbz	w8, LBB0_32
; %bb.29:
	mov	x20, #0
	mov	x21, #0
	add	x22, x19, #40
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #48]
	ldr	x8, [x19, #24]
	add	x1, x8, x20
	bl	_d3dx_pool_sync_shared_parameter
	mov	x23, x0
	bl	_FAILED
	cbnz	x0, LBB0_38
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	ldr	x8, [x19, #48]
	cmp	x8, #0
	csel	x8, x22, x8, eq
	ldr	x9, [x19, #24]
	add	x0, x9, x20
	str	x8, [x0, #8]
	bl	_set_dirty
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x20, x20, #24
	cmp	x21, x8
	b.lo	LBB0_30
LBB0_32:
Lloh39:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh40:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
Lloh41:
	ldr	x23, [x8]
	b	LBB0_56
LBB0_33:
	mov	x23, x0
	mov	x24, #0
LBB0_34:
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
Lloh42:
	adrp	x0, l_.str.4@PAGE
Lloh43:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_37
LBB0_35:
	mov	x23, x0
Lloh44:
	adrp	x0, l_.str.6@PAGE
Lloh45:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x24
	bl	_WARN
	b	LBB0_23
LBB0_36:
	mov	x23, x0
Lloh46:
	adrp	x0, l_.str.11@PAGE
Lloh47:
	add	x0, x0, l_.str.11@PAGEOFF
LBB0_37:
	mov	x1, x24
	bl	_WARN
LBB0_38:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_44
; %bb.39:
	ldr	w8, [x27]
	cbz	w8, LBB0_43
; %bb.40:
	bl	_free_technique
	ldr	w8, [x27]
	cmp	w8, #2
	b.lo	LBB0_43
; %bb.41:
	mov	w20, #1
	mov	w21, #24
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x0, x8, x21
	bl	_free_technique
	add	x20, x20, #1
	ldrsw	x8, [x19, #4]
	add	x21, x21, #24
	cmp	x20, x8
	b.lo	LBB0_42
LBB0_43:
	bl	_GetProcessHeap
	ldr	x2, [x19, #32]
	mov	w1, #0
	bl	_HeapFree
	str	xzr, [x19, #32]
LBB0_44:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_50
; %bb.45:
	ldr	w8, [x19]
	cbz	w8, LBB0_49
; %bb.46:
	bl	_free_top_level_parameter
	ldr	w8, [x19]
	cmp	w8, #2
	b.lo	LBB0_49
; %bb.47:
	mov	w20, #1
	mov	w21, #24
LBB0_48:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, x21
	bl	_free_top_level_parameter
	add	x20, x20, #1
	ldrsw	x8, [x19]
	add	x21, x21, #24
	cmp	x20, x8
	b.lo	LBB0_48
LBB0_49:
	bl	_GetProcessHeap
	ldr	x2, [x19, #24]
	mov	w1, #0
	bl	_HeapFree
	str	xzr, [x19, #24]
LBB0_50:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_56
; %bb.51:
	ldr	w8, [x26]
	cbz	w8, LBB0_55
; %bb.52:
	bl	_free_object
	ldr	w8, [x26]
	cmp	w8, #2
	b.lo	LBB0_55
; %bb.53:
	mov	w20, #1
	mov	w21, #24
LBB0_54:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x21
	bl	_free_object
	add	x20, x20, #1
	ldrsw	x8, [x19, #8]
	add	x21, x21, #24
	cmp	x20, x8
	b.lo	LBB0_54
LBB0_55:
	bl	_GetProcessHeap
	ldr	x2, [x19, #16]
	mov	w1, #0
	bl	_HeapFree
	str	xzr, [x19, #16]
LBB0_56:
	mov	x0, x23
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Parameter count: %u.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Technique count: %u.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Object count: %u.\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
l_.str.3:                               ; @.str.3
	.asciz	"Out of memory.\n"

	.comm	_E_OUTOFMEMORY,8,3              ; @E_OUTOFMEMORY
	.comm	_param_rb_compare,4,2           ; @param_rb_compare
	.comm	_D3D_OK,8,3                     ; @D3D_OK
l_.str.4:                               ; @.str.4
	.asciz	"Failed to parse parameter %u.\n"

	.comm	_param_set_top_level_param,4,2  ; @param_set_top_level_param
l_.str.5:                               ; @.str.5
	.asciz	"Parsing technique %u.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to parse technique %u.\n"

l_.str.7:                               ; @.str.7
	.asciz	"String count: %u.\n"

l_.str.8:                               ; @.str.8
	.asciz	"Resource count: %u.\n"

l_.str.9:                               ; @.str.9
	.asciz	"id: %u.\n"

l_.str.10:                              ; @.str.10
	.asciz	"parse resource %u.\n"

l_.str.11:                              ; @.str.11
	.asciz	"Failed to parse resource %u.\n"

	.no_dead_strip	_d3dx9_parse_effect
.subsections_via_symbols
