	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function d3dx9_base_effect_get_int
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_d3dx9_base_effect_get_int:             ## @d3dx9_base_effect_get_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_get_valid_parameter
	testq	%r14, %r14
	je	LBB0_16
## %bb.1:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	cmpl	$0, 32(%rbx)
	je	LBB0_3
LBB0_16:
	leaq	L_.str.2(%rip), %rdi
	callq	_WARN
	movq	_D3DERR_INVALIDCALL@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%rbx), %eax
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.4:
	cmpl	$1, 4(%rbx)
	jne	LBB0_6
## %bb.5:
	movq	_D3DXPT_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rcx
	movq	24(%rbx), %rdx
	movq	%r14, %rdi
	callq	_set_number
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_15
LBB0_6:
	movq	8(%rbx), %rcx
	movq	_D3DXPT_FLOAT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.7:
	movq	16(%rbx), %rcx
	movq	_D3DXPC_VECTOR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.8:
	cmpl	$2, %eax
	je	LBB0_9
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	24(%rbx), %rax
	movl	8(%rax), %edi
	xorps	%xmm0, %xmm0
	callq	_max
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	%eax, %edi
	callq	_min
	movq	_INT_FLOAT_MULTI@GOTPCREL(%rip), %r15
	imull	(%r15), %eax
	movl	%eax, (%r14)
	movq	24(%rbx), %rax
	movl	4(%rax), %edi
	xorps	%xmm0, %xmm0
	callq	_max
	movl	%eax, %edi
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_min
	imull	(%r15), %eax
	shll	$8, %eax
	addl	%eax, (%r14)
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	xorps	%xmm0, %xmm0
	callq	_max
	movl	%eax, %edi
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_min
	imull	(%r15), %eax
	shll	$16, %eax
	addl	(%r14), %eax
	movl	%eax, (%r14)
	movl	4(%rbx), %ecx
	imull	(%rbx), %ecx
	cmpl	$4, %ecx
	jl	LBB0_14
## %bb.13:
	movq	24(%rbx), %rax
	movl	12(%rax), %edi
	xorps	%xmm0, %xmm0
	callq	_max
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movl	%eax, %edi
	callq	_min
	imull	(%r15), %eax
	shll	$24, %eax
	addl	(%r14), %eax
	movl	%eax, (%r14)
LBB0_14:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
LBB0_15:
	xorl	%eax, %eax
	callq	_TRACE
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_9:
	movq	_D3DXPC_MATRIX_ROWS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.10:
	cmpl	$2, 4(%rbx)
	je	LBB0_16
## %bb.11:
	cmpl	$1, %eax
	je	LBB0_12
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DXPT_INT,4,2                 ## @D3DXPT_INT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Returning %i\n"

	.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
L_.str.1:                               ## @.str.1
	.asciz	"Vector fixup\n"

	.comm	_INT_FLOAT_MULTI,4,2            ## @INT_FLOAT_MULTI
L_.str.2:                               ## @.str.2
	.asciz	"Parameter not found.\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ## @D3DERR_INVALIDCALL
	.no_dead_strip	_d3dx9_base_effect_get_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_get_int
_d3dx9_base_effect_get_int:             ; @d3dx9_base_effect_get_int
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	bl	_get_valid_parameter
	cbz	x19, LBB0_3
; %bb.1:
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_5
LBB0_3:
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_WARN
Lloh2:
	adrp	x8, _D3DERR_INVALIDCALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _D3DERR_INVALIDCALL@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.6:
	ldr	w9, [x20, #4]
	cmp	w9, #1
	b.ne	LBB0_8
; %bb.7:
Lloh4:
	adrp	x8, _D3DXPT_INT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _D3DXPT_INT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	x2, [x20, #24]
	ldr	x3, [x20, #8]
	mov	x0, x19
	bl	_set_number
	ldr	w8, [x19]
	b	LBB0_15
LBB0_8:
	ldr	x9, [x20, #8]
Lloh7:
	adrp	x10, _D3DXPT_FLOAT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _D3DXPT_FLOAT@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.9:
	ldr	x9, [x20, #16]
Lloh10:
	adrp	x10, _D3DXPC_VECTOR@GOTPAGE
Lloh11:
	ldr	x10, [x10, _D3DXPC_VECTOR@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x9, x10
	ccmp	w8, #2, #4, eq
	b.ne	LBB0_13
; %bb.10:
Lloh13:
	adrp	x10, _D3DXPC_MATRIX_ROWS@GOTPAGE
Lloh14:
	ldr	x10, [x10, _D3DXPC_MATRIX_ROWS@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.11:
	ldr	w9, [x20, #4]
	cmp	w9, #2
	b.eq	LBB0_3
; %bb.12:
	cmp	w8, #1
	b.ne	LBB0_3
LBB0_13:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldr	x8, [x20, #24]
	ldr	w0, [x8, #8]
	movi	d0, #0000000000000000
	bl	_max
	fmov	s0, #1.00000000
	bl	_min
Lloh18:
	adrp	x21, _INT_FLOAT_MULTI@GOTPAGE
Lloh19:
	ldr	x21, [x21, _INT_FLOAT_MULTI@GOTPAGEOFF]
	ldr	w8, [x21]
	mul	w8, w8, w0
	str	w8, [x19]
	ldr	x8, [x20, #24]
	ldr	w0, [x8, #4]
	movi	d0, #0000000000000000
	bl	_max
	fmov	s0, #1.00000000
	bl	_min
	ldr	w8, [x21]
	mul	w8, w0, w8
	ldr	w9, [x19]
	add	w8, w9, w8, lsl #8
	str	w8, [x19]
	ldr	x8, [x20, #24]
	ldr	w0, [x8]
	movi	d0, #0000000000000000
	bl	_max
	fmov	s0, #1.00000000
	bl	_min
	ldr	w8, [x21]
	mul	w8, w0, w8
	ldr	w9, [x19]
	add	w8, w9, w8, lsl #16
	str	w8, [x19]
	ldp	w9, w10, [x20]
	mul	w9, w10, w9
	cmp	w9, #4
	b.lt	LBB0_15
; %bb.14:
	ldr	x8, [x20, #24]
	ldr	w0, [x8, #12]
	movi	d0, #0000000000000000
	bl	_max
	fmov	s0, #1.00000000
	bl	_min
	ldr	w8, [x21]
	mul	w8, w0, w8
	ldr	w9, [x19]
	add	w8, w9, w8, lsl #24
	str	w8, [x19]
LBB0_15:
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh22:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
	b	LBB0_4
	.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	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DXPT_INT,4,2                 ; @D3DXPT_INT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Returning %i\n"

	.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
l_.str.1:                               ; @.str.1
	.asciz	"Vector fixup\n"

	.comm	_INT_FLOAT_MULTI,4,2            ; @INT_FLOAT_MULTI
l_.str.2:                               ; @.str.2
	.asciz	"Parameter not found.\n"

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