	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_parse_init_value
_d3dx9_parse_init_value:                ## @d3dx9_parse_init_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)
	movq	8(%rsi), %r15
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_TRACE
	testq	%r15, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rbx
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movq	%r15, %rdx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	movl	(%r12), %edi
	leal	-128(%rdi), %eax
	cmpl	$5, %eax
	ja	LBB0_7
## %bb.5:
	cmpl	$3, %eax
	je	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_debugstr_an
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	callq	_TRACE
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	jmp	LBB0_8
LBB0_1:
	xorl	%r13d, %r13d
LBB0_8:
	leaq	-64(%rbp), %r8
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r9
	callq	_d3dx9_parse_value
	movq	%rax, %rbx
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	callq	_WARN
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_HeapFree
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_ERR
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_10:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_debug_d3dxparameter_class
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"param size: %u\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate data memory.\n"

	.comm	_E_OUTOFMEMORY,8,3              ## @E_OUTOFMEMORY
L_.str.2:                               ## @.str.2
	.asciz	"Data: %s.\n"

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

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

	.no_dead_strip	_d3dx9_parse_init_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_init_value
_d3dx9_parse_init_value:                ; @d3dx9_parse_init_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x4
	mov	x24, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	str	x3, [sp, #8]
	ldr	x25, [x1, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	bl	_TRACE
	cbz	x25, LBB0_5
; %bb.1:
	bl	_GetProcessHeap
Lloh2:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, x25
	bl	_HeapAlloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x23, x0
	ldr	w0, [x21]
	sub	w8, w0, #128
	cmp	w8, #5
	b.hi	LBB0_10
; %bb.3:
	cmp	w8, #3
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x24
	mov	x1, x25
	bl	_debugstr_an
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_memcpy
	b	LBB0_6
LBB0_5:
	mov	x23, #0
LBB0_6:
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	x3, x20
	mov	x5, x19
	bl	_d3dx9_parse_value
	mov	x19, x0
Lloh7:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.7:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_WARN
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x23
	bl	_HeapFree
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
Lloh14:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh16:
	ldr	x19, [x8]
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	bl	_debug_d3dxparameter_class
	mov	x1, x0
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_FIXME
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"param size: %u\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate data memory.\n"

	.comm	_E_OUTOFMEMORY,8,3              ; @E_OUTOFMEMORY
l_.str.2:                               ; @.str.2
	.asciz	"Data: %s.\n"

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

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

	.no_dead_strip	_d3dx9_parse_init_value
.subsections_via_symbols
