	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_parse_state
_d3dx9_parse_state:                     ## @d3dx9_parse_state
	.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, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_ST_CONSTANT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rsi)
	movq	%rcx, %rdi
	callq	_read_dword
	movslq	(%rbx), %rsi
	movq	_state_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rsi,4), %edx
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_TRACE
	leaq	4(%rbx), %rsi
	movq	%r13, %rdi
	callq	_read_dword
	movl	4(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_read_dword
	movl	-44(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movslq	-44(%rbp), %rax
	addq	%r15, %rax
	movq	%rax, -64(%rbp)
	addq	$8, %rbx
	leaq	-64(%rbp), %rcx
	movq	%r14, %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_d3dx9_parse_effect_typedef
	movq	%rax, %r14
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_1
## %bb.2:
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	movq	%rax, %r13
	callq	_read_dword
	movl	-44(%rbp), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movslq	-44(%rbp), %rcx
	addq	%r15, %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_d3dx9_parse_init_value
	movq	%rax, %r14
	cmpq	(%r13), %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str.3(%rip), %rdi
LBB0_4:
	callq	_WARN
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%edx, %esi
	callq	_free_parameter
LBB0_5:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_CONSTANT,4,2                ## @ST_CONSTANT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Operation: %#x (%s)\n"

	.comm	_state_table,8,3                ## @state_table
L_.str.1:                               ## @.str.1
	.asciz	"Index: %#x\n"

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

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

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

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

	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_d3dx9_parse_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3dx9_parse_state
_d3dx9_parse_state:                     ; @d3dx9_parse_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ST_CONSTANT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST_CONSTANT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1, #12]
	mov	x0, x3
	bl	_read_dword
	ldrsw	x1, [x23]
Lloh3:
	adrp	x8, _state_table@GOTPAGE
Lloh4:
	ldr	x8, [x8, _state_table@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x8, x1, lsl #2]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_TRACE
	add	x1, x23, #4
	mov	x0, x22
	bl	_read_dword
	ldr	w1, [x23, #4]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	add	x1, sp, #28
	mov	x0, x22
	bl	_read_dword
	ldr	w1, [sp, #28]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	ldrsw	x8, [sp, #28]
	add	x8, x20, x8
	str	x8, [sp, #16]
	add	x23, x23, #8
	add	x3, sp, #16
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	mov	x4, #0
	mov	w5, #0
	bl	_d3dx9_parse_effect_typedef
Lloh12:
	adrp	x25, _D3D_OK@GOTPAGE
Lloh13:
	ldr	x25, [x25, _D3D_OK@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	add	x1, sp, #28
	mov	x0, x22
	bl	_read_dword
	ldr	w1, [sp, #28]
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_TRACE
	ldrsw	x8, [sp, #28]
	add	x3, x20, x8
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	mov	x4, x19
	bl	_d3dx9_parse_init_value
	mov	x24, x0
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.2:
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_3:
	mov	x24, x0
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_4:
	bl	_WARN
Lloh20:
	adrp	x8, _FALSE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x1
	bl	_free_parameter
LBB0_5:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_CONSTANT,4,2                ; @ST_CONSTANT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Operation: %#x (%s)\n"

	.comm	_state_table,8,3                ; @state_table
l_.str.1:                               ; @.str.1
	.asciz	"Index: %#x\n"

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

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

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

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

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