	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function hlsl_d3d9_renderchain_calc_and_set_shader_mvp
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_hlsl_d3d9_renderchain_calc_and_set_shader_mvp: ## @hlsl_d3d9_renderchain_calc_and_set_shader_mvp
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movl	%ecx, %r8d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	$1, (%rsp)
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_d3d_matrix_ortho_off_center_lh
	leaq	-56(%rbp), %r13
	movq	%r13, %rdi
	callq	_d3d_matrix_identity
	movl	%ebx, %eax
	cvtsi2sd	%rax, %xmm0
	movq	_D3D_PI@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm1
	mulsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %rsi
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_d3d_matrix_rotation_z
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_d3d_matrix_multiply
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_d3d_matrix_transpose
	movl	(%r14), %edi
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rcx
	callq	_d3d9_hlsl_set_param_matrix
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3D_PI,8,3                     ## @D3D_PI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"modelViewProj"

	.no_dead_strip	_hlsl_d3d9_renderchain_calc_and_set_shader_mvp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hlsl_d3d9_renderchain_calc_and_set_shader_mvp
_hlsl_d3d9_renderchain_calc_and_set_shader_mvp: ; @hlsl_d3d9_renderchain_calc_and_set_shader_mvp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x4
	mov	x4, x3
	mov	x20, x1
	mov	x21, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w3, #0
	mov	w5, #0
	mov	w6, #1
	bl	_d3d_matrix_ortho_off_center_lh
	add	x0, sp, #8
	bl	_d3d_matrix_identity
	ucvtf	d0, w19
Lloh0:
	adrp	x8, _D3D_PI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3D_PI@GOTPAGEOFF]
Lloh2:
	ldr	d1, [x8]
	fmov	d2, #0.50000000
	fmul	d1, d1, d2
	fmul	d0, d1, d0
	fcvtzu	w1, d0
	add	x0, sp, #8
	bl	_d3d_matrix_rotation_z
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_d3d_matrix_multiply
	mov	x0, sp
	add	x1, sp, #24
	bl	_d3d_matrix_transpose
	ldr	w0, [x20]
	ldr	w1, [x21]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, sp
	bl	_d3d9_hlsl_set_param_matrix
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_D3D_PI,8,3                     ; @D3D_PI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"modelViewProj"

	.no_dead_strip	_hlsl_d3d9_renderchain_calc_and_set_shader_mvp
.subsections_via_symbols
