	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_base_effect_set_int
_d3dx9_base_effect_set_int:             ## @d3dx9_base_effect_set_int
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movl	%edx, -20(%rbp)
	callq	_get_valid_parameter
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %rbx
	cmpl	$0, 32(%rax)
	je	LBB0_2
LBB0_17:
	leaq	L_.str.1(%rip), %rdi
	callq	_WARN
	movq	_D3DERR_INVALIDCALL@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	(%rbx), %eax
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.3:
	cmpl	$1, 4(%rbx)
	jne	LBB0_8
## %bb.4:
	movq	8(%rbx), %rsi
	movq	_D3DXPT_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %rdi
	leaq	-20(%rbp), %rdx
	callq	_set_number
	movq	-32(%rbp), %rax
	movq	24(%rbx), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_set_dirty
	movq	-32(%rbp), %rax
	movq	24(%rbx), %rcx
LBB0_6:
	movq	%rax, (%rcx)
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_8:
	movq	8(%rbx), %rcx
	movq	_D3DXPT_FLOAT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_17
## %bb.9:
	movq	16(%rbx), %rcx
	movq	_D3DXPC_VECTOR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.10:
	cmpl	$2, 4(%rbx)
	jne	LBB0_14
LBB0_11:
	movq	_D3DXPC_MATRIX_ROWS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_17
## %bb.12:
	cmpl	$2, %eax
	je	LBB0_17
## %bb.13:
	cmpl	$1, 4(%rbx)
	jne	LBB0_17
LBB0_14:
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	shrl	$16, %r14d
	movzbl	%r14b, %ecx
	movq	_INT_FLOAT_MULTI_INVERSE@GOTPCREL(%rip), %rdx
	imull	(%rdx), %ecx
	movq	24(%rbx), %rax
	movl	%ecx, (%rax)
	movl	-20(%rbp), %ecx
	movzbl	%ch, %esi
	movl	(%rdx), %edx
	imull	%edx, %esi
	movl	%esi, 4(%rax)
	movzbl	%cl, %esi
	imull	%edx, %esi
	movl	%esi, 8(%rax)
	movl	4(%rbx), %esi
	imull	(%rbx), %esi
	cmpl	$4, %esi
	jl	LBB0_16
## %bb.15:
	shrl	$24, %ecx
	imull	%edx, %ecx
	movl	%ecx, 12(%rax)
LBB0_16:
	movq	%rbx, %rdi
	callq	_set_dirty
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DXPT_INT,4,2                 ## @D3DXPT_INT
	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.comm	_D3DXPT_FLOAT,8,3               ## @D3DXPT_FLOAT
	.comm	_D3DXPC_VECTOR,8,3              ## @D3DXPC_VECTOR
	.comm	_D3DXPC_MATRIX_ROWS,8,3         ## @D3DXPC_MATRIX_ROWS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Vector fixup\n"

	.comm	_INT_FLOAT_MULTI_INVERSE,4,2    ## @INT_FLOAT_MULTI_INVERSE
L_.str.1:                               ## @.str.1
	.asciz	"Parameter not found.\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ## @D3DERR_INVALIDCALL
	.no_dead_strip	_d3dx9_base_effect_set_int
.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_int
_d3dx9_base_effect_set_int:             ; @d3dx9_base_effect_set_int
	.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	x20, x2
	str	w2, [sp, #12]
	bl	_get_valid_parameter
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #32]
	cbz	w8, LBB0_4
LBB0_2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
Lloh2:
	adrp	x8, _D3DERR_INVALIDCALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _D3DERR_INVALIDCALL@GOTPAGEOFF]
LBB0_3:
	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
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.5:
	ldr	w9, [x19, #4]
	cmp	w9, #1
	b.ne	LBB0_9
; %bb.6:
	ldr	x1, [x19, #8]
Lloh4:
	adrp	x8, _D3DXPT_INT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _D3DXPT_INT@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	mov	x0, sp
	add	x2, sp, #12
	bl	_set_number
	ldr	x8, [sp]
	ldr	x9, [x19, #24]
	ldr	x10, [x9]
	cmp	x8, x10
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_set_dirty
	ldr	x8, [sp]
	ldr	x9, [x19, #24]
LBB0_8:
	str	x8, [x9]
	b	LBB0_17
LBB0_9:
	ldr	x9, [x19, #8]
Lloh7:
	adrp	x10, _D3DXPT_FLOAT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _D3DXPT_FLOAT@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.10:
	ldr	x9, [x19, #16]
Lloh10:
	adrp	x10, _D3DXPC_VECTOR@GOTPAGE
Lloh11:
	ldr	x10, [x10, _D3DXPC_VECTOR@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.11:
	ldr	w10, [x19, #4]
	cmp	w10, #2
	b.ne	LBB0_14
LBB0_12:
Lloh13:
	adrp	x10, _D3DXPC_MATRIX_ROWS@GOTPAGE
Lloh14:
	ldr	x10, [x10, _D3DXPC_MATRIX_ROWS@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x9, x10
	ccmp	w8, #2, #4, eq
	b.eq	LBB0_2
; %bb.13:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.ne	LBB0_2
LBB0_14:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ubfx	w8, w20, #16, #8
Lloh18:
	adrp	x10, _INT_FLOAT_MULTI_INVERSE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _INT_FLOAT_MULTI_INVERSE@GOTPAGEOFF]
	ldr	w9, [x10]
	mul	w9, w8, w9
	ldr	x8, [x19, #24]
	str	w9, [x8]
	ldr	w9, [sp, #12]
	ubfx	w11, w9, #8, #8
	ldr	w10, [x10]
	mul	w11, w11, w10
	and	w12, w9, #0xff
	mul	w12, w12, w10
	stp	w11, w12, [x8, #4]
	ldp	w11, w12, [x19]
	mul	w11, w12, w11
	cmp	w11, #4
	b.lt	LBB0_16
; %bb.15:
	lsr	w9, w9, #24
	mul	w9, w9, w10
	str	w9, [x8, #12]
LBB0_16:
	mov	x0, x19
	bl	_set_dirty
LBB0_17:
Lloh20:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DXPT_INT,4,2                 ; @D3DXPT_INT
	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.comm	_D3DXPT_FLOAT,8,3               ; @D3DXPT_FLOAT
	.comm	_D3DXPC_VECTOR,8,3              ; @D3DXPC_VECTOR
	.comm	_D3DXPC_MATRIX_ROWS,8,3         ; @D3DXPC_MATRIX_ROWS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Vector fixup\n"

	.comm	_INT_FLOAT_MULTI_INVERSE,4,2    ; @INT_FLOAT_MULTI_INVERSE
l_.str.1:                               ; @.str.1
	.asciz	"Parameter not found.\n"

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