	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_parse_value
_d3dx9_parse_value:                     ## @d3dx9_parse_value
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rax
	movq	%rsi, %r15
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rsi)
	je	LBB0_5
## %bb.1:
	movq	%rax, 32(%r15)
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %r14
	leaq	(%r14,%r13), %rsi
	movslq	%ebx, %rdx
	addq	%rax, %rdx
	testq	%rax, %rax
	cmoveq	%rax, %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_d3dx9_parse_value
	movq	%rax, %rcx
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	4(%r14,%r13), %ebx
	incq	%r12
	movl	(%r15), %eax
	addq	$48, %r13
	cmpq	%rax, %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jb	LBB0_2
	jmp	LBB0_25
LBB0_5:
	movl	8(%r15), %edi
	leal	-141(%rdi), %edx
	cmpl	$5, %edx
	ja	LBB0_21
## %bb.6:
	movl	$53, %ecx
	btl	%edx, %ecx
	jae	LBB0_7
## %bb.26:
	movq	%rax, 32(%r15)
	jmp	LBB0_23
LBB0_7:
	cmpl	$1, %edx
	jne	LBB0_12
## %bb.8:
	movq	%rax, 32(%r15)
	cmpl	$0, 12(%r15)
	je	LBB0_23
## %bb.9:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %r14
	leaq	(%r14,%rbx), %rsi
	movslq	%r13d, %rdx
	addq	%rax, %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_d3dx9_parse_value
	movq	%rax, %rcx
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	addl	4(%r14,%rbx), %r13d
	incq	%r12
	movl	12(%r15), %eax
	addq	$48, %rbx
	cmpq	%rax, %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jb	LBB0_10
	jmp	LBB0_23
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	movq	%rcx, %rbx
	callq	_WARN
	movq	%rbx, %rcx
	jmp	LBB0_25
LBB0_12:
	movl	24(%r15), %edi
	leal	-128(%rdi), %edx
	cmpl	$12, %edx
	ja	LBB0_20
## %bb.13:
	movl	$4223, %ecx                     ## imm = 0x107F
	btl	%edx, %ecx
	jae	LBB0_15
## %bb.14:
	leaq	16(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rbx
	callq	_read_dword
	movq	16(%r15), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_TRACE
	movq	16(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, (%rcx,%rax,8)
	movq	%rbx, 32(%r15)
	jmp	LBB0_23
LBB0_21:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_debug_d3dxparameter_class
	leaq	L_.str.4(%rip), %rdi
LBB0_22:
	movl	%eax, %esi
	callq	_FIXME
LBB0_23:
	movq	_D3D_OK@GOTPCREL(%rip), %rax
LBB0_24:
	movq	(%rax), %rcx
LBB0_25:
	movq	%rcx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	%rax, %r14
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_d3dx9_parse_sampler
	movq	%rax, %rcx
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_18
## %bb.19:
	movq	%r14, 32(%r15)
	jmp	LBB0_23
LBB0_16:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_18:
	xorl	%eax, %eax
	movq	%rcx, %rbx
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_HeapFree
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_WARN
	movq	%rbx, %rcx
	jmp	LBB0_25
LBB0_20:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_debug_d3dxparameter_type
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_D3D_OK,8,3                     ## @D3D_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to parse value %u\n"

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

	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.comm	_E_OUTOFMEMORY,8,3              ## @E_OUTOFMEMORY
L_.str.2:                               ## @.str.2
	.asciz	"Failed to parse sampler\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unhandled type %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unhandled class %s\n"

	.no_dead_strip	_d3dx9_parse_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3dx9_parse_value
_d3dx9_parse_value:                     ; @d3dx9_parse_value
	.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
	stp	x4, x5, [sp, #16]               ; 16-byte Folded Spill
	mov	x22, x3
	mov	x24, x2
	mov	x19, x1
	mov	x23, x0
	ldr	w8, [x1]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x28, #0
	mov	x27, #0
	mov	w20, #0
	str	x24, [x19, #32]
Lloh0:
	adrp	x21, _D3D_OK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _D3D_OK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	add	x26, x8, x28
	add	x8, x24, w20, sxtw
	cmp	x24, #0
	csel	x2, xzr, x8, eq
	mov	x0, x23
	mov	x1, x26
	mov	x3, x22
	ldp	x4, x5, [sp, #16]               ; 16-byte Folded Reload
	bl	_d3dx9_parse_value
	mov	x25, x0
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x26, #4]
	add	w20, w8, w20
	add	x27, x27, #1
	ldr	w8, [x19]
	add	x28, x28, #48
	cmp	x27, x8
	b.lo	LBB0_2
	b	LBB0_21
LBB0_4:
	ldr	w0, [x19, #8]
	sub	w8, w0, #141
	cmp	w8, #5
	b.hi	LBB0_17
; %bb.5:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #53
	tst	w9, w10
	b.eq	LBB0_9
LBB0_6:
	str	x24, [x19, #32]
	b	LBB0_19
LBB0_7:
	str	x27, [sp]
LBB0_8:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
	b	LBB0_21
LBB0_9:
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.10:
	str	x24, [x19, #32]
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_19
; %bb.11:
	mov	x21, #0
	mov	x20, #0
	mov	w27, #0
Lloh4:
	adrp	x28, _D3D_OK@GOTPAGE
Lloh5:
	ldr	x28, [x28, _D3D_OK@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	add	x26, x8, x21
	add	x2, x24, w27, sxtw
	mov	x0, x23
	mov	x1, x26
	mov	x3, x22
	ldp	x4, x5, [sp, #16]               ; 16-byte Folded Reload
	bl	_d3dx9_parse_value
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_25
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x26, #4]
	add	w27, w8, w27
	add	x20, x20, #1
	ldr	w8, [x19, #12]
	add	x21, x21, #48
	cmp	x20, x8
	b.lo	LBB0_12
	b	LBB0_19
LBB0_14:
	ldr	w0, [x19, #24]
	sub	w8, w0, #128
	cmp	w8, #12
	b.hi	LBB0_27
; %bb.15:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #4223
	tst	w8, w9
	b.eq	LBB0_22
; %bb.16:
	add	x1, x19, #16
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_read_dword
	ldr	x1, [x19, #16]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldr	x8, [x19, #16]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	str	x19, [x9, x8, lsl #3]
	str	x24, [x19, #32]
	b	LBB0_19
LBB0_17:
	bl	_debug_d3dxparameter_class
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_18:
	bl	_FIXME
LBB0_19:
Lloh10:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
LBB0_20:
	ldr	x25, [x8]
LBB0_21:
	mov	x0, x25
	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_22:
	bl	_GetProcessHeap
Lloh12:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_HeapAlloc
	cbz	x0, LBB0_26
; %bb.23:
	mov	x24, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	ldp	x3, x4, [sp, #16]               ; 16-byte Folded Reload
	bl	_d3dx9_parse_sampler
Lloh15:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.24:
	mov	x25, x0
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x24
	bl	_HeapFree
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_WARN
	b	LBB0_21
LBB0_25:
	mov	x25, x0
	str	x20, [sp]
	b	LBB0_8
LBB0_26:
Lloh20:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_20
LBB0_27:
	bl	_debug_d3dxparameter_type
	mov	x1, x0
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_D3D_OK,8,3                     ; @D3D_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to parse value %u\n"

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

	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.comm	_E_OUTOFMEMORY,8,3              ; @E_OUTOFMEMORY
l_.str.2:                               ; @.str.2
	.asciz	"Failed to parse sampler\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unhandled type %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unhandled class %s\n"

	.no_dead_strip	_d3dx9_parse_value
.subsections_via_symbols
