	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_base_effect_set_vector_array
_d3dx9_base_effect_set_vector_array:    ## @d3dx9_base_effect_set_vector_array
	.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	%rcx, %r14
	movq	%rdx, %r13
	callq	_get_valid_parameter
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %r15
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	cmpq	%r14, %rax
	jl	LBB0_15
## %bb.3:
	movl	8(%r15), %edi
	callq	_debug_d3dxparameter_class
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movl	8(%r15), %edi
	leal	-129(%rdi), %eax
	cmpl	$4, %eax
	jb	LBB0_15
## %bb.4:
	cmpl	$128, %edi
	jne	LBB0_14
## %bb.5:
	movq	%r15, %rdi
	callq	_set_dirty
	movl	32(%r15), %eax
	movq	_D3DXPT_FLOAT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.9:
	movl	12(%r15), %edx
	cmpl	$4, %edx
	jne	LBB0_10
## %bb.17:
	movq	16(%r15), %rdi
	shll	$4, %r14d
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	_D3D_OK@GOTPCREL(%rip), %r12
	jmp	LBB0_16
LBB0_14:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_debug_d3dxparameter_class
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
	callq	_WARN
	movq	_D3DERR_INVALIDCALL@GOTPCREL(%rip), %r12
LBB0_16:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_D3D_OK@GOTPCREL(%rip), %r12
	testq	%r14, %r14
	jle	LBB0_16
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rdi
	addq	%rbx, %rdi
	leaq	(%rbx,%r13), %rsi
	callq	_set_vector
	addq	$4, %rbx
	decq	%r14
	jne	LBB0_8
	jmp	LBB0_16
LBB0_10:
	movq	_D3D_OK@GOTPCREL(%rip), %r12
	testq	%r14, %r14
	jle	LBB0_16
## %bb.11:
	movq	16(%r15), %rdi
	shll	$2, %edx
	movq	%r13, %rsi
	callq	_memcpy
	cmpq	$1, %r14
	je	LBB0_16
## %bb.12:
	addq	$4, %r13
	movq	%r13, %rbx
	movl	$1, %r13d
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movslq	12(%r15), %rdi
	leal	(,%rdi,4), %edx
	imulq	%r13, %rdi
	shlq	$2, %rdi
	addq	16(%r15), %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	incq	%r13
	addq	$4, %rbx
	cmpq	%r13, %r14
	jne	LBB0_13
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Class %s\n"

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

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

	.comm	_D3DERR_INVALIDCALL,4,2         ## @D3DERR_INVALIDCALL
	.no_dead_strip	_d3dx9_base_effect_set_vector_array
.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_array
_d3dx9_base_effect_set_vector_array:    ; @d3dx9_base_effect_set_vector_array
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x21, x2
	bl	_get_valid_parameter
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	cmp	x8, #0
	ccmp	x8, x19, #8, ne
	b.lt	LBB0_8
; %bb.2:
	ldr	w0, [x20, #8]
	bl	_debug_d3dxparameter_class
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	w0, [x20, #8]
	sub	w8, w0, #129
	cmp	w8, #4
	b.lo	LBB0_8
; %bb.3:
	cmp	w0, #128
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_set_dirty
	ldr	w8, [x20, #32]
Lloh2:
	adrp	x9, _D3DXPT_FLOAT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _D3DXPT_FLOAT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.5:
	ldr	w8, [x20, #12]
	cmp	w8, #4
	b.ne	LBB0_13
; %bb.6:
	ldr	x0, [x20, #16]
	lsl	w2, w19, #4
	mov	x1, x21
	bl	_memcpy
	b	LBB0_15
LBB0_7:
	bl	_debug_d3dxparameter_class
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
LBB0_8:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_WARN
Lloh9:
	adrp	x22, _D3DERR_INVALIDCALL@GOTPAGE
Lloh10:
	ldr	x22, [x22, _D3DERR_INVALIDCALL@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x22]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	cmp	x19, #1
	b.lt	LBB0_15
; %bb.11:
	mov	x23, #0
Lloh11:
	adrp	x22, _D3D_OK@GOTPAGE
Lloh12:
	ldr	x22, [x22, _D3D_OK@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	add	x0, x8, x23
	add	x1, x21, x23
	bl	_set_vector
	add	x23, x23, #4
	subs	x19, x19, #1
	b.ne	LBB0_12
	b	LBB0_9
LBB0_13:
	cmp	x19, #1
	b.lt	LBB0_15
; %bb.14:
	ldr	x0, [x20, #16]
	lsl	w2, w8, #2
	mov	x1, x21
	bl	_memcpy
	cmp	x19, #1
	b.ne	LBB0_16
LBB0_15:
Lloh13:
	adrp	x22, _D3D_OK@GOTPAGE
Lloh14:
	ldr	x22, [x22, _D3D_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_16:
	add	x21, x21, #4
	mov	w23, #1
Lloh15:
	adrp	x22, _D3D_OK@GOTPAGE
Lloh16:
	ldr	x22, [x22, _D3D_OK@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x20, #12]
	ldr	x9, [x20, #16]
	mul	x10, x23, x8
	add	x0, x9, x10, lsl #2
	lsl	w2, w8, #2
	mov	x1, x21
	bl	_memcpy
	add	x23, x23, #1
	add	x21, x21, #4
	cmp	x19, x23
	b.ne	LBB0_17
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Class %s\n"

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

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

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