	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_base_effect_set_matrix_array
_d3dx9_base_effect_set_matrix_array:    ## @d3dx9_base_effect_set_matrix_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, %r13
	movq	%rdx, %r14
	callq	_get_valid_parameter
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r15
	cmpq	%r13, (%rax)
	jl	LBB0_8
## %bb.2:
	movl	8(%r15), %edi
	callq	_debug_d3dxparameter_class
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movl	8(%r15), %edi
	leal	-128(%rdi), %eax
	cmpl	$4, %eax
	jae	LBB0_3
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	callq	_WARN
	movq	_D3DERR_INVALIDCALL@GOTPCREL(%rip), %r12
LBB0_9:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$132, %edi
	jne	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	callq	_set_dirty
	movq	_D3D_OK@GOTPCREL(%rip), %r12
	testq	%r13, %r13
	jle	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	addq	%rbx, %rdi
	leaq	(%r14,%rbx), %rsi
	callq	_set_matrix
	addq	$4, %rbx
	decq	%r13
	jne	LBB0_6
	jmp	LBB0_9
LBB0_7:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_debug_d3dxparameter_class
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Class %s\n"

	.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_matrix_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_matrix_array
_d3dx9_base_effect_set_matrix_array:    ; @d3dx9_base_effect_set_matrix_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	x20, x2
	bl	_get_valid_parameter
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
	cmp	x8, x19
	b.lt	LBB0_8
; %bb.2:
	ldr	w0, [x21, #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, [x21, #8]
	sub	w8, w0, #128
	cmp	w8, #4
	b.lo	LBB0_8
; %bb.3:
	cmp	w0, #132
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x21
	bl	_set_dirty
	cmp	x19, #1
	b.lt	LBB0_10
; %bb.5:
	mov	x23, #0
Lloh2:
	adrp	x22, _D3D_OK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _D3D_OK@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	add	x0, x8, x23
	add	x1, x20, x23
	bl	_set_matrix
	add	x23, x23, #4
	subs	x19, x19, #1
	b.ne	LBB0_6
	b	LBB0_9
LBB0_7:
	bl	_debug_d3dxparameter_class
	mov	x1, x0
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
LBB0_8:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_WARN
Lloh8:
	adrp	x22, _D3DERR_INVALIDCALL@GOTPAGE
Lloh9:
	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:
Lloh10:
	adrp	x22, _D3D_OK@GOTPAGE
Lloh11:
	ldr	x22, [x22, _D3D_OK@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Class %s\n"

	.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_matrix_array
.subsections_via_symbols
