	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_parse_effect_annotation
_d3dx9_parse_effect_annotation:         ## @d3dx9_parse_effect_annotation
	.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, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_D3DX_PARAMETER_ANNOTATION@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, (%rsi)
	leaq	-44(%rbp), %rsi
	movq	%rcx, %rdi
	callq	_read_dword
	movl	-44(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movslq	-44(%rbp), %rax
	addq	%rbx, %rax
	movq	%rax, -64(%rbp)
	movl	(%r14), %r9d
	leaq	-64(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	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.2(%rip), %rdi
	callq	_TRACE
	movslq	-44(%rbp), %rcx
	addq	%rbx, %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %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.3(%rip), %rdi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	callq	_WARN
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	_D3DX_PARAMETER_ANNOTATION,4,2  ## @D3DX_PARAMETER_ANNOTATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Typedef offset: %#x\n"

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

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

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

	.no_dead_strip	_d3dx9_parse_effect_annotation
.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_annotation
_d3dx9_parse_effect_annotation:         ; @d3dx9_parse_effect_annotation
	.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	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _D3DX_PARAMETER_ANNOTATION@GOTPAGE
Lloh1:
	ldr	x24, [x24, _D3DX_PARAMETER_ANNOTATION@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [x1]
	add	x1, sp, #12
	mov	x0, x3
	bl	_read_dword
	ldr	w1, [sp, #12]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldrsw	x8, [sp, #12]
	add	x8, x20, x8
	str	x8, [sp]
	ldr	w5, [x24]
	mov	x3, sp
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x4, #0
	bl	_d3dx9_parse_effect_typedef
Lloh4:
	adrp	x25, _D3D_OK@GOTPAGE
Lloh5:
	ldr	x25, [x25, _D3D_OK@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	add	x1, sp, #12
	mov	x0, x23
	bl	_read_dword
	ldr	w1, [sp, #12]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	ldrsw	x8, [sp, #12]
	add	x3, x20, x8
	mov	x0, x22
	mov	x1, x21
	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:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_3:
	mov	x24, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_WARN
LBB0_5:
	mov	x0, x24
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DX_PARAMETER_ANNOTATION,4,2  ; @D3DX_PARAMETER_ANNOTATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Typedef offset: %#x\n"

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

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

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

	.no_dead_strip	_d3dx9_parse_effect_annotation
.subsections_via_symbols
