	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_base_effect_get_vector
_d3dx9_base_effect_get_vector:          ## @d3dx9_base_effect_get_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_get_valid_parameter
	testq	%r14, %r14
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	cmpl	$0, 20(%rbx)
	jne	LBB0_10
## %bb.3:
	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_9
## %bb.4:
	movl	$26, %ecx
	btl	%eax, %ecx
	jb	LBB0_10
## %bb.5:
	movl	16(%rbx), %eax
	movq	_D3DXPT_INT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.6:
	cmpl	$4, 4(%rbx)
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	8(%rbx), %rax
	movzbl	2(%rax), %ecx
	movq	_INT_FLOAT_MULTI_INVERSE@GOTPCREL(%rip), %rdx
	imull	(%rdx), %ecx
	movl	%ecx, (%r14)
	movzbl	1(%rax), %ecx
	movl	(%rdx), %edx
	imull	%edx, %ecx
	movl	%ecx, 4(%r14)
	movzbl	(%rax), %ecx
	imull	%edx, %ecx
	movl	%ecx, 8(%r14)
	movzbl	3(%rax), %eax
	imull	%edx, %eax
	movl	%eax, 12(%r14)
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_get_vector
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_debug_d3dxparameter_class
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	callq	_WARN
	movq	_D3DERR_INVALIDCALL@GOTPCREL(%rip), %rax
LBB0_11:
	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	_D3DXPT_INT,4,2                 ## @D3DXPT_INT
L_.str.1:                               ## @.str.1
	.asciz	"INT fixup\n"

	.comm	_INT_FLOAT_MULTI_INVERSE,4,2    ## @INT_FLOAT_MULTI_INVERSE
	.comm	_D3D_OK,4,2                     ## @D3D_OK
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_get_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_get_vector
_d3dx9_base_effect_get_vector:          ; @d3dx9_base_effect_get_vector
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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_11
; %bb.1:
	mov	x20, x0
	cbz	x0, LBB0_11
; %bb.2:
	ldr	w8, [x20, #20]
	cbnz	w8, LBB0_11
; %bb.3:
	ldr	w0, [x20]
	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, [x20]
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_10
; %bb.4:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #26
	tst	w8, w9
	b.ne	LBB0_11
; %bb.5:
	ldr	w8, [x20, #16]
Lloh2:
	adrp	x9, _D3DXPT_INT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _D3DXPT_INT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [x20, #4]
	cmp	w8, #4
	b.ne	LBB0_8
; %bb.7:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldr	x8, [x20, #8]
	ldrb	w9, [x8, #2]
Lloh7:
	adrp	x10, _INT_FLOAT_MULTI_INVERSE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _INT_FLOAT_MULTI_INVERSE@GOTPAGEOFF]
	ldr	w11, [x10]
	mul	w9, w9, w11
	str	w9, [x19]
	ldrb	w9, [x8, #1]
	ldr	w10, [x10]
	mul	w9, w9, w10
	str	w9, [x19, #4]
	ldrb	w9, [x8]
	mul	w9, w9, w10
	str	w9, [x19, #8]
	ldrb	w8, [x8, #3]
	mul	w8, w8, w10
	str	w8, [x19, #12]
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_get_vector
LBB0_9:
Lloh9:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	bl	_debug_d3dxparameter_class
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FIXME
LBB0_11:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_WARN
Lloh15:
	adrp	x8, _D3DERR_INVALIDCALL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _D3DERR_INVALIDCALL@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.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_INVERSE,4,2    ; @INT_FLOAT_MULTI_INVERSE
	.comm	_D3D_OK,4,2                     ; @D3D_OK
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_get_vector
.subsections_via_symbols
