	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_base_effect_get_value
_d3dx9_base_effect_get_value:           ## @d3dx9_base_effect_get_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_get_valid_parameter
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_D3DXPC_OBJECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movl	8(%r12), %edi
	callq	_is_param_type_sampler
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_E_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_5:
	testq	%r14, %r14
	je	LBB0_16
## %bb.6:
	cmpq	%r15, 16(%r12)
	jle	LBB0_7
LBB0_16:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_17
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_WARN
LBB0_17:
	movq	_D3DERR_INVALIDCALL@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	8(%r12), %edi
	callq	_debug_d3dxparameter_type
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movl	8(%r12), %edi
	leal	-128(%rdi), %eax
	cmpl	$11, %eax
	ja	LBB0_14
## %bb.8:
	movl	$382, %ecx                      ## imm = 0x17E
	btl	%eax, %ecx
	jae	LBB0_15
## %bb.9:
	movl	24(%r12), %eax
	testl	%eax, %eax
	js	LBB0_15
## %bb.10:
	xorl	%ebx, %ebx
	movl	$1, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	testl	%eax, %eax
	movl	%eax, %ecx
	cmovel	%r15d, %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	callq	_IUnknown_AddRef
	movl	24(%r12), %eax
	jmp	LBB0_13
LBB0_14:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_debug_d3dxparameter_type
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	callq	_FIXME
LBB0_15:
	movq	16(%r12), %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	16(%r12), %rdx
	movq	32(%r12), %rsi
	movq	%r14, %rdi
	callq	_memcpy
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid parameter %p specified\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ## @D3DERR_INVALIDCALL
	.comm	_D3DXPC_OBJECT,8,3              ## @D3DXPC_OBJECT
L_.str.1:                               ## @.str.1
	.asciz	"Sampler: returning E_FAIL\n"

	.comm	_E_FAIL,4,2                     ## @E_FAIL
L_.str.2:                               ## @.str.2
	.asciz	"Type %s\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"Copy %u bytes\n"

	.comm	_D3D_OK,4,2                     ## @D3D_OK
L_.str.5:                               ## @.str.5
	.asciz	"Parameter not found.\n"

	.no_dead_strip	_d3dx9_base_effect_get_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3dx9_base_effect_get_value
_d3dx9_base_effect_get_value:           ; @d3dx9_base_effect_get_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	bl	_get_valid_parameter
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _D3DXPC_OBJECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _D3DXPC_OBJECT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x20, #8]
	bl	_is_param_type_sampler
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
Lloh5:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	cbz	x19, LBB0_6
; %bb.5:
	ldr	x8, [x20, #16]
	cmp	x8, x21
	b.le	LBB0_10
LBB0_6:
Lloh7:
	adrp	x0, l_.str.5@PAGE
Lloh8:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_8
LBB0_7:
	str	x22, [sp]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
LBB0_8:
	bl	_WARN
Lloh11:
	adrp	x8, _D3DERR_INVALIDCALL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _D3DERR_INVALIDCALL@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	ldr	w0, [x20, #8]
	bl	_debug_d3dxparameter_type
	str	x0, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	ldr	w0, [x20, #8]
	sub	w8, w0, #128
	cmp	w8, #11
	b.hi	LBB0_17
; %bb.11:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #382
	tst	w8, w9
	b.eq	LBB0_18
; %bb.12:
	ldr	w8, [x20, #24]
	tbnz	w8, #31, LBB0_18
; %bb.13:
	mov	x21, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x21, x21, #1
	cmp	w8, #0
	csinc	w9, w8, wzr, ne
	cmp	x21, w9, sxtw
	b.ge	LBB0_18
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #32]
	ldr	x0, [x9, x21, lsl #3]
	cbz	x0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	bl	_IUnknown_AddRef
	ldr	w8, [x20, #24]
	b	LBB0_14
LBB0_17:
	bl	_debug_d3dxparameter_type
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_FIXME
LBB0_18:
	ldr	x8, [x20, #16]
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_TRACE
	ldr	x1, [x20, #32]
	ldr	x2, [x20, #16]
	mov	x0, x19
	bl	_memcpy
Lloh19:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid parameter %p specified\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ; @D3DERR_INVALIDCALL
	.comm	_D3DXPC_OBJECT,8,3              ; @D3DXPC_OBJECT
l_.str.1:                               ; @.str.1
	.asciz	"Sampler: returning E_FAIL\n"

	.comm	_E_FAIL,4,2                     ; @E_FAIL
l_.str.2:                               ; @.str.2
	.asciz	"Type %s\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"Copy %u bytes\n"

	.comm	_D3D_OK,4,2                     ; @D3D_OK
l_.str.5:                               ; @.str.5
	.asciz	"Parameter not found.\n"

	.no_dead_strip	_d3dx9_base_effect_get_value
.subsections_via_symbols
