	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_parse_effect_technique
_d3dx9_parse_effect_technique:          ## @d3dx9_parse_effect_technique
	.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
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	$0, -80(%rbp)
	leaq	-44(%rbp), %rsi
	movq	%rcx, %rdi
	callq	_read_dword
	movl	-44(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movslq	-44(%rbp), %rsi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	addq	%rbx, %rsi
	leaq	-80(%rbp), %rdi
	callq	_d3dx9_parse_name
	movq	%rax, %r14
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_9
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_read_dword
	movl	(%r13), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_TRACE
	leaq	4(%r13), %rsi
	movq	%r12, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_read_dword
	movl	4(%r13), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_TRACE
	cmpl	$0, (%r13)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, %r14
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	%r14, -88(%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	(%r13), %edx
	movl	%eax, %edi
	callq	_HeapAlloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	cmpl	$0, (%r13)
	je	LBB0_10
## %bb.4:
	movq	%rax, %rdi
	callq	_param_set_magic_number
	movq	8(%r13), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_d3dx9_parse_effect_annotation
	movq	%rax, %r14
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_20
## %bb.5:
	movl	$1, %r15d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	cmpq	%rax, %r15
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	jae	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r13), %rdi
	addq	%r15, %rdi
	callq	_param_set_magic_number
	movq	8(%r13), %rsi
	addq	%r15, %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_d3dx9_parse_effect_annotation
	movq	%rax, %r14
	incq	%r15
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_6
## %bb.8:
	decl	%r15d
	jmp	LBB0_21
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_25
LBB0_10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_19
## %bb.11:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%r13), %edx
	movl	%eax, %edi
	callq	_HeapAlloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, (%rcx)
	je	LBB0_19
## %bb.13:
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_d3dx9_parse_effect_pass
	movq	%rax, %r14
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_22
## %bb.14:
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	cmpq	%rax, %r15
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	jae	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	16(%r13), %rsi
	addq	%r15, %rsi
	movq	%r12, %rdi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_d3dx9_parse_effect_pass
	movq	%rax, %r14
	incq	%r15
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_15
## %bb.17:
	decl	%r15d
	jmp	LBB0_23
LBB0_18:
	leaq	L_.str.4(%rip), %rdi
	callq	_ERR
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_25
LBB0_19:
	movq	-80(%rbp), %rax
	movq	%rax, 24(%r13)
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_38
LBB0_20:
	xorl	%r15d, %r15d
LBB0_21:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_24
LBB0_22:
	xorl	%r15d, %r15d
LBB0_23:
	leaq	L_.str.6(%rip), %rdi
LBB0_24:
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_WARN
LBB0_25:
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.26:
	cmpl	$0, 4(%r13)
	je	LBB0_30
## %bb.27:
	callq	_free_pass
	cmpl	$2, 4(%r13)
	jb	LBB0_30
## %bb.28:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rdi
	addq	%rbx, %rdi
	callq	_free_pass
	incq	%rbx
	movl	4(%r13), %eax
	cmpq	%rax, %rbx
	jb	LBB0_29
LBB0_30:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	16(%r13), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movq	$0, 16(%r13)
LBB0_31:
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_37
## %bb.32:
	cmpl	$0, (%r13)
	je	LBB0_36
## %bb.33:
	movq	_FALSE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	%edx, %esi
	callq	_free_parameter
	cmpl	$2, (%r13)
	jb	LBB0_36
## %bb.34:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	addq	%rbx, %rdi
	movl	(%r15), %edx
	movl	%edx, %esi
	callq	_free_parameter
	incq	%rbx
	movl	(%r13), %eax
	cmpq	%rax, %rbx
	jb	LBB0_35
LBB0_36:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	8(%r13), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movq	$0, 8(%r13)
LBB0_37:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-80(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
LBB0_38:
	movq	%r14, %rax
	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	"Technique name offset: %#x\n"

	.comm	_D3D_OK,8,3                     ## @D3D_OK
L_.str.1:                               ## @.str.1
	.asciz	"Failed to parse name\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"Pass count: %u\n"

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

	.comm	_E_OUTOFMEMORY,8,3              ## @E_OUTOFMEMORY
L_.str.5:                               ## @.str.5
	.asciz	"Failed to parse annotation %u\n"

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

	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_d3dx9_parse_effect_technique
.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_technique
_d3dx9_parse_effect_technique:          ; @d3dx9_parse_effect_technique
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x24, x0
	str	xzr, [sp, #16]
	add	x1, sp, #28
	mov	x0, x3
	bl	_read_dword
	ldr	w1, [sp, #28]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldrsw	x8, [sp, #28]
	add	x1, x23, x8
	add	x0, sp, #16
	bl	_d3dx9_parse_name
Lloh2:
	adrp	x26, _D3D_OK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _D3D_OK@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.1:
	mov	x0, x22
	mov	x1, x19
	bl	_read_dword
	ldr	w1, [x19]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	add	x25, x19, #4
	mov	x0, x22
	mov	x1, x25
	bl	_read_dword
	ldr	w1, [x19, #4]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	ldr	w8, [x19]
	cbz	w8, LBB0_12
; %bb.2:
	bl	_GetProcessHeap
Lloh8:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19]
	bl	_HeapAlloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_20
; %bb.3:
	ldr	w8, [x19]
	cbz	w8, LBB0_12
; %bb.4:
	bl	_param_set_magic_number
	ldr	x1, [x19, #8]
	mov	x0, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_d3dx9_parse_effect_annotation
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_34
; %bb.5:
	mov	w27, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	x27, x8
	b.hs	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x27
	bl	_param_set_magic_number
	ldr	x8, [x19, #8]
	add	x1, x8, x27
	mov	x0, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_d3dx9_parse_effect_annotation
	ldr	x8, [x26]
	add	x27, x27, #1
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.8:
	mov	x20, x0
	sub	w8, w27, #1
	b	LBB0_35
LBB0_9:
	mov	x20, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_WARN
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_21
LBB0_11:
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_26
	b	LBB0_31
LBB0_12:
	ldr	w8, [x25]
	cbz	w8, LBB0_33
; %bb.13:
	bl	_GetProcessHeap
Lloh13:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	bl	_HeapAlloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_20
; %bb.14:
	ldr	w8, [x25]
	cbz	w8, LBB0_33
; %bb.15:
	mov	x1, x0
	mov	x0, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_d3dx9_parse_effect_pass
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_36
; %bb.16:
	mov	w27, #1
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	cmp	x27, x8
	b.hs	LBB0_33
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x19, #16]
	add	x1, x8, x27
	mov	x0, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_d3dx9_parse_effect_pass
	ldr	x8, [x26]
	add	x27, x27, #1
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.19:
	mov	x20, x0
	sub	w8, w27, #1
	b	LBB0_37
LBB0_20:
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_ERR
Lloh18:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh20:
	ldr	x20, [x8]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_11
LBB0_21:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_25
; %bb.22:
	bl	_free_pass
	ldr	w8, [x19, #4]
	cmp	w8, #2
	b.lo	LBB0_25
; %bb.23:
	mov	w21, #1
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x21
	bl	_free_pass
	add	x21, x21, #1
	ldr	w8, [x19, #4]
	cmp	x21, x8
	b.lo	LBB0_24
LBB0_25:
	bl	_GetProcessHeap
	ldr	x2, [x19, #16]
	mov	w1, #0
	bl	_HeapFree
	str	xzr, [x19, #16]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_31
LBB0_26:
	ldr	w8, [x19]
	cbz	w8, LBB0_30
; %bb.27:
Lloh21:
	adrp	x21, _FALSE@GOTPAGE
Lloh22:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, x1
	bl	_free_parameter
	ldr	w8, [x19]
	cmp	w8, #2
	b.lo	LBB0_30
; %bb.28:
	mov	w22, #1
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x22
	ldr	w1, [x21]
	mov	x2, x1
	bl	_free_parameter
	add	x22, x22, #1
	ldr	w8, [x19]
	cmp	x22, x8
	b.lo	LBB0_29
LBB0_30:
	bl	_GetProcessHeap
	ldr	x2, [x19, #8]
	mov	w1, #0
	bl	_HeapFree
	str	xzr, [x19, #8]
LBB0_31:
	bl	_GetProcessHeap
	ldr	x2, [sp, #16]
	mov	w1, #0
	bl	_HeapFree
LBB0_32:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_33:
	ldr	x8, [sp, #16]
	str	x8, [x19, #24]
	ldr	x20, [x26]
	b	LBB0_32
LBB0_34:
	mov	x20, x0
	mov	w8, #0
LBB0_35:
	str	x8, [sp]
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_36:
	mov	x20, x0
	mov	w8, #0
LBB0_37:
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.6@PAGE
Lloh26:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_10
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Technique name offset: %#x\n"

	.comm	_D3D_OK,8,3                     ; @D3D_OK
l_.str.1:                               ; @.str.1
	.asciz	"Failed to parse name\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"Pass count: %u\n"

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

	.comm	_E_OUTOFMEMORY,8,3              ; @E_OUTOFMEMORY
l_.str.5:                               ; @.str.5
	.asciz	"Failed to parse annotation %u\n"

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

	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_d3dx9_parse_effect_technique
.subsections_via_symbols
