	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function d3dx9_base_effect_set_vector
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_d3dx9_base_effect_set_vector:          ## @d3dx9_base_effect_set_vector
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_get_valid_parameter
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	cmpl	$0, 28(%rax)
	jne	LBB0_11
## %bb.2:
	movl	(%rbx), %edi
	callq	_debug_d3dxparameter_class
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movl	(%rbx), %edi
	leal	-128(%rdi), %eax
	cmpl	$4, %eax
	ja	LBB0_10
## %bb.3:
	movl	$26, %ecx
	btl	%eax, %ecx
	jb	LBB0_11
## %bb.4:
	movq	%rbx, %rdi
	callq	_set_dirty
	movl	24(%rbx), %eax
	movq	_D3DXPT_INT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.5:
	cmpl	$4, 4(%rbx)
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	12(%r14), %edi
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_min
	xorps	%xmm0, %xmm0
	movl	%eax, %edi
	callq	_max
	movl	%eax, %r15d
	movq	_INT_FLOAT_MULTI@GOTPCREL(%rip), %r13
	imull	(%r13), %r15d
	movl	8(%r14), %edi
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_min
	xorps	%xmm0, %xmm0
	movl	%eax, %edi
	callq	_max
	movl	%eax, %r12d
	imull	(%r13), %r12d
	shll	$8, %r12d
	addl	%r15d, %r12d
	movl	4(%r14), %edi
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_min
	xorps	%xmm0, %xmm0
	movl	%eax, %edi
	callq	_max
	movl	%eax, %r15d
	imull	(%r13), %r15d
	shll	$16, %r15d
	addl	%r12d, %r15d
	movl	(%r14), %edi
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_min
	xorps	%xmm0, %xmm0
	movl	%eax, %edi
	callq	_max
	imull	(%r13), %eax
	shll	$24, %eax
	addl	%r15d, %eax
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movq	_D3DXPT_FLOAT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.8:
	movq	16(%rbx), %rdi
	movl	8(%rbx), %edx
	shll	$2, %edx
	movq	%r14, %rsi
	callq	_memcpy
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_debug_d3dxparameter_class
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	callq	_WARN
	movq	_D3DERR_INVALIDCALL@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_set_vector
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Class %s\n"

	.comm	_D3DXPT_INT,4,2                 ## @D3DXPT_INT
L_.str.1:                               ## @.str.1
	.asciz	"INT fixup\n"

	.comm	_INT_FLOAT_MULTI,4,2            ## @INT_FLOAT_MULTI
	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.comm	_D3DXPT_FLOAT,4,2               ## @D3DXPT_FLOAT
L_.str.2:                               ## @.str.2
	.asciz	"Unhandled class %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Parameter not found.\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ## @D3DERR_INVALIDCALL
	.no_dead_strip	_d3dx9_base_effect_set_vector
.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_set_vector
_d3dx9_base_effect_set_vector:          ; @d3dx9_base_effect_set_vector
	.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	x20, x2
	bl	_get_valid_parameter
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #28]
	cbnz	w8, LBB0_10
; %bb.2:
	ldr	w0, [x19]
	bl	_debug_d3dxparameter_class
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	w0, [x19]
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.3:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #26
	tst	w8, w9
	b.ne	LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_set_dirty
	ldr	w8, [x19, #24]
Lloh2:
	adrp	x9, _D3DXPT_INT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _D3DXPT_INT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.5:
	ldr	w9, [x19, #4]
	cmp	w9, #4
	b.ne	LBB0_7
; %bb.6:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldr	w0, [x20, #12]
	fmov	s0, #1.00000000
	bl	_min
	movi	d0, #0000000000000000
	bl	_max
Lloh7:
	adrp	x21, _INT_FLOAT_MULTI@GOTPAGE
Lloh8:
	ldr	x21, [x21, _INT_FLOAT_MULTI@GOTPAGEOFF]
	ldr	w8, [x21]
	mul	w22, w8, w0
	ldr	w0, [x20, #8]
	fmov	s0, #1.00000000
	bl	_min
	movi	d0, #0000000000000000
	bl	_max
	ldr	w8, [x21]
	mul	w8, w0, w8
	add	w22, w22, w8, lsl #8
	ldr	w0, [x20, #4]
	fmov	s0, #1.00000000
	bl	_min
	movi	d0, #0000000000000000
	bl	_max
	ldr	w8, [x21]
	mul	w8, w0, w8
	add	w22, w22, w8, lsl #16
	ldr	w0, [x20]
	fmov	s0, #1.00000000
	bl	_min
	movi	d0, #0000000000000000
	bl	_max
	ldr	w8, [x21]
	mul	w8, w0, w8
	add	w8, w22, w8, lsl #24
	ldr	x9, [x19, #16]
	str	w8, [x9]
	b	LBB0_13
LBB0_7:
Lloh9:
	adrp	x9, _D3DXPT_FLOAT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _D3DXPT_FLOAT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.8:
	ldr	x0, [x19, #16]
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	mov	x1, x20
	bl	_memcpy
	b	LBB0_13
LBB0_9:
	bl	_debug_d3dxparameter_class
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FIXME
LBB0_10:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_WARN
Lloh16:
	adrp	x8, _D3DERR_INVALIDCALL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _D3DERR_INVALIDCALL@GOTPAGEOFF]
LBB0_11:
	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_12:
	mov	x0, x19
	mov	x1, x20
	bl	_set_vector
LBB0_13:
Lloh18:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Class %s\n"

	.comm	_D3DXPT_INT,4,2                 ; @D3DXPT_INT
l_.str.1:                               ; @.str.1
	.asciz	"INT fixup\n"

	.comm	_INT_FLOAT_MULTI,4,2            ; @INT_FLOAT_MULTI
	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.comm	_D3DXPT_FLOAT,4,2               ; @D3DXPT_FLOAT
l_.str.2:                               ; @.str.2
	.asciz	"Unhandled class %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Parameter not found.\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ; @D3DERR_INVALIDCALL
	.no_dead_strip	_d3dx9_base_effect_set_vector
.subsections_via_symbols
