	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_base_effect_get_matrix_pointer_array
_d3dx9_base_effect_get_matrix_pointer_array: ## @d3dx9_base_effect_get_matrix_pointer_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
	movq	_D3D_OK@GOTPCREL(%rip), %r12
	testq	%r13, %r13
	je	LBB0_11
## %bb.1:
	testq	%r14, %r14
	je	LBB0_10
## %bb.2:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	cmpq	%r13, (%r15)
	jl	LBB0_10
## %bb.4:
	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	$3, %eax
	jb	LBB0_10
## %bb.5:
	cmpl	$131, %edi
	jne	LBB0_9
## %bb.6:
	testq	%r13, %r13
	jle	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	addq	%rbx, %rdi
	movq	(%r14,%rbx,2), %rsi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_get_matrix
	addq	$4, %rbx
	decq	%r13
	jne	LBB0_8
	jmp	LBB0_11
LBB0_9:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_debug_d3dxparameter_class
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	callq	_WARN
	movq	_D3DERR_INVALIDCALL@GOTPCREL(%rip), %r12
LBB0_11:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Class %s\n"

	.comm	_FALSE,4,2                      ## @FALSE
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_get_matrix_pointer_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_get_matrix_pointer_array
_d3dx9_base_effect_get_matrix_pointer_array: ; @d3dx9_base_effect_get_matrix_pointer_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	x19, LBB0_9
; %bb.1:
	cbz	x20, LBB0_11
; %bb.2:
	mov	x21, x0
	cbz	x0, LBB0_11
; %bb.3:
	ldr	x8, [x21]
	cmp	x8, x19
	b.lt	LBB0_11
; %bb.4:
	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, #3
	b.lo	LBB0_11
; %bb.5:
	cmp	w0, #131
	b.ne	LBB0_10
; %bb.6:
	cmp	x19, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x23, #0
Lloh2:
	adrp	x24, _FALSE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _FALSE@GOTPAGEOFF]
Lloh4:
	adrp	x22, _D3D_OK@GOTPAGE
Lloh5:
	ldr	x22, [x22, _D3D_OK@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	add	x0, x8, x23
	ldr	x1, [x20], #8
	ldr	w2, [x24]
	bl	_get_matrix
	add	x23, x23, #4
	subs	x19, x19, #1
	b.ne	LBB0_8
	b	LBB0_12
LBB0_9:
Lloh6:
	adrp	x22, _D3D_OK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _D3D_OK@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	bl	_debug_d3dxparameter_class
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
LBB0_11:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_WARN
Lloh12:
	adrp	x22, _D3DERR_INVALIDCALL@GOTPAGE
Lloh13:
	ldr	x22, [x22, _D3DERR_INVALIDCALL@GOTPAGEOFF]
LBB0_12:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Class %s\n"

	.comm	_FALSE,4,2                      ; @FALSE
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_get_matrix_pointer_array
.subsections_via_symbols
