	.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
_d3dx9_base_effect_get_matrix:          ## @d3dx9_base_effect_get_matrix
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_get_valid_parameter
	testq	%r14, %r14
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	cmpl	$0, 4(%rbx)
	jne	LBB0_7
## %bb.3:
	movl	(%rbx), %edi
	callq	_debug_d3dxparameter_class
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movl	(%rbx), %edi
	leal	-128(%rdi), %eax
	cmpl	$4, %eax
	jb	LBB0_7
## %bb.4:
	cmpl	$132, %edi
	jne	LBB0_6
## %bb.5:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_get_matrix
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_debug_d3dxparameter_class
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	callq	_WARN
	movq	_D3DERR_INVALIDCALL@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Class %s\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.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_get_matrix
.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
_d3dx9_base_effect_get_matrix:          ; @d3dx9_base_effect_get_matrix
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_get_valid_parameter
	cbz	x19, LBB0_7
; %bb.1:
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_7
; %bb.3:
	ldr	w0, [x20]
	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]
	sub	w8, w0, #128
	cmp	w8, #4
	b.lo	LBB0_7
; %bb.4:
	cmp	w0, #132
	b.ne	LBB0_6
; %bb.5:
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_get_matrix
Lloh5:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	bl	_debug_d3dxparameter_class
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
LBB0_7:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_WARN
Lloh11:
	adrp	x8, _D3DERR_INVALIDCALL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _D3DERR_INVALIDCALL@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Class %s\n"

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