	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_parse_effect_parameter
_d3dx9_parse_effect_parameter:          ## @d3dx9_parse_effect_parameter
	.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, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	-44(%rbp), %r13
	movq	%rcx, %rdi
	movq	%r13, %rsi
	callq	_read_dword
	movl	-44(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movslq	-44(%rbp), %rax
	addq	%rbx, %rax
	movq	%rax, -88(%rbp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_read_dword
	movl	-44(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_TRACE
	leaq	16(%r14), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_read_dword
	movl	16(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_TRACE
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_read_dword
	movl	(%r14), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_TRACE
	movl	16(%r14), %r9d
	leaq	-88(%rbp), %rcx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	callq	_d3dx9_parse_effect_typedef
	movq	%rax, %r12
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_1
## %bb.2:
	movslq	-44(%rbp), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	addq	%rdx, %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_d3dx9_parse_init_value
	movq	%rax, %r12
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_3
## %bb.4:
	cmpl	$0, (%r14)
	je	LBB0_20
## %bb.5:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %edx
	shll	$2, %edx
	movl	%eax, %edi
	callq	_HeapAlloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	cmpl	$0, (%r14)
	je	LBB0_12
## %bb.7:
	movq	%rax, %rdi
	callq	_param_set_magic_number
	movq	8(%r14), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_d3dx9_parse_effect_annotation
	movq	%rax, %r12
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_11
## %bb.8:
	movl	$4, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	incq	%r13
	movl	(%r14), %eax
	cmpq	%rax, %r13
	jae	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	4(%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rdi
	addq	%rbx, %rdi
	callq	_param_set_magic_number
	addq	8(%r14), %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_d3dx9_parse_effect_annotation
	movq	%rax, %r12
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_9
LBB0_11:
	leaq	L_.str.7(%rip), %rdi
	callq	_WARN
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str.4(%rip), %rdi
	callq	_WARN
	jmp	LBB0_20
LBB0_3:
	leaq	L_.str.5(%rip), %rdi
	callq	_WARN
	jmp	LBB0_20
LBB0_13:
	leaq	L_.str.6(%rip), %rdi
	callq	_ERR
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_14:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.15:
	cmpl	$0, (%r14)
	je	LBB0_19
## %bb.16:
	movq	_FALSE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	%edx, %esi
	callq	_free_parameter
	cmpl	$2, (%r14)
	jb	LBB0_19
## %bb.17:
	movl	$1, %r13d
	movl	$4, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	addq	%rbx, %rdi
	movl	(%r15), %edx
	movl	%edx, %esi
	callq	_free_parameter
	incq	%r13
	movl	(%r14), %eax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jb	LBB0_18
LBB0_19:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	8(%r14), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movq	$0, 8(%r14)
	jmp	LBB0_20
LBB0_12:
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_20:
	movq	%r12, %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	"Typedef offset: %#x.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Value offset: %#x.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Flags: %#x.\n"

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

	.comm	_D3D_OK,8,3                     ## @D3D_OK
L_.str.4:                               ## @.str.4
	.asciz	"Failed to parse type definition.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to parse value.\n"

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

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

	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_d3dx9_parse_effect_parameter
.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_parameter
_d3dx9_parse_effect_parameter:          ; @d3dx9_parse_effect_parameter
	.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	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	add	x1, sp, #12
	mov	x0, x3
	bl	_read_dword
	ldr	w1, [sp, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldrsw	x8, [sp, #12]
	add	x8, x22, x8
	str	x8, [sp]
	add	x1, sp, #12
	mov	x0, x21
	bl	_read_dword
	ldr	w1, [sp, #12]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	add	x25, x19, #16
	mov	x0, x21
	mov	x1, x25
	bl	_read_dword
	ldr	w1, [x19, #16]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	mov	x0, x21
	mov	x1, x19
	bl	_read_dword
	ldr	w1, [x19]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	ldr	w5, [x19, #16]
	mov	x3, sp
	mov	x0, x23
	mov	x1, x25
	mov	x2, x22
	mov	x4, #0
	bl	_d3dx9_parse_effect_typedef
Lloh8:
	adrp	x26, _D3D_OK@GOTPAGE
Lloh9:
	ldr	x26, [x26, _D3D_OK@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.1:
	ldrsw	x8, [sp, #12]
	add	x3, x22, x8
	mov	x0, x23
	mov	x1, x25
	mov	x2, x22
	mov	x4, x20
	bl	_d3dx9_parse_init_value
	mov	x24, x0
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.2:
	ldr	w8, [x19]
	cbz	w8, LBB0_20
; %bb.3:
	bl	_GetProcessHeap
Lloh10:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w8, [x19]
	lsl	w2, w8, #2
	bl	_HeapAlloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.4:
	ldr	w8, [x19]
	cbz	w8, LBB0_19
; %bb.5:
	bl	_param_set_magic_number
	ldr	x1, [x19, #8]
	mov	x0, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_d3dx9_parse_effect_annotation
	mov	x24, x0
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.6:
	mov	x25, #0
	mov	w27, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x25, #1
	ldr	w8, [x19]
	cmp	x25, x8
	b.hs	LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x28, x27, #4
	ldr	x8, [x19, #8]
	add	x0, x8, x27
	bl	_param_set_magic_number
	ldr	x8, [x19, #8]
	add	x1, x8, x27
	mov	x0, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_d3dx9_parse_effect_annotation
	mov	x24, x0
	ldr	x8, [x26]
	mov	x27, x28
	cmp	x0, x8
	b.eq	LBB0_7
LBB0_9:
Lloh13:
	adrp	x0, l_.str.7@PAGE
Lloh14:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_WARN
	b	LBB0_13
LBB0_10:
	mov	x24, x0
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_WARN
	b	LBB0_20
LBB0_11:
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_WARN
	b	LBB0_20
LBB0_12:
Lloh19:
	adrp	x0, l_.str.6@PAGE
Lloh20:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_ERR
Lloh21:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh23:
	ldr	x24, [x8]
LBB0_13:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_20
; %bb.14:
	ldr	w8, [x19]
	cbz	w8, LBB0_18
; %bb.15:
Lloh24:
	adrp	x20, _FALSE@GOTPAGE
Lloh25:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x2, x1
	bl	_free_parameter
	ldr	w8, [x19]
	cmp	w8, #2
	b.lo	LBB0_18
; %bb.16:
	mov	w21, #1
	mov	w22, #4
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x22
	ldr	w1, [x20]
	mov	x2, x1
	bl	_free_parameter
	add	x21, x21, #1
	ldr	w8, [x19]
	add	x22, x22, #4
	cmp	x21, x8
	b.lo	LBB0_17
LBB0_18:
	bl	_GetProcessHeap
	ldr	x2, [x19, #8]
	mov	w1, #0
	bl	_HeapFree
	str	xzr, [x19, #8]
	b	LBB0_20
LBB0_19:
	ldr	x24, [x26]
LBB0_20:
	mov	x0, x24
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Typedef offset: %#x.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Value offset: %#x.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Flags: %#x.\n"

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

	.comm	_D3D_OK,8,3                     ; @D3D_OK
l_.str.4:                               ; @.str.4
	.asciz	"Failed to parse type definition.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to parse value.\n"

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

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

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