	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d3d8_set_mvp                   ## -- Begin function d3d8_set_mvp
	.p2align	4, 0x90
_d3d8_set_mvp:                          ## @d3d8_set_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	callq	_d3d_matrix_identity
	movq	_D3DTS_PROJECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movq	%r15, %rdx
	callq	_d3d8_set_transform
	movq	_D3DTS_VIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movq	%r15, %rdx
	callq	_d3d8_set_transform
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	leaq	-32(%rbp), %rdi
	movq	%r14, %rsi
	callq	_d3d_matrix_transpose
LBB0_2:
	movq	_D3DTS_WORLD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	%ebx, %edi
	callq	_d3d8_set_transform
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DTS_PROJECTION,4,2           ## @D3DTS_PROJECTION
	.comm	_D3DTS_VIEW,4,2                 ## @D3DTS_VIEW
	.comm	_D3DTS_WORLD,4,2                ## @D3DTS_WORLD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d3d8_set_mvp                   ; -- Begin function d3d8_set_mvp
	.p2align	2
_d3d8_set_mvp:                          ; @d3d8_set_mvp
	.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, x1
	mov	x19, x0
	add	x0, sp, #8
	bl	_d3d_matrix_identity
Lloh0:
	adrp	x8, _D3DTS_PROJECTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3DTS_PROJECTION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_d3d8_set_transform
Lloh3:
	adrp	x8, _D3DTS_VIEW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D3DTS_VIEW@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_d3d8_set_transform
	cbz	x20, LBB0_2
; %bb.1:
	add	x0, sp, #8
	mov	x1, x20
	bl	_d3d_matrix_transpose
LBB0_2:
Lloh6:
	adrp	x8, _D3DTS_WORLD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _D3DTS_WORLD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_d3d8_set_transform
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DTS_PROJECTION,4,2           ; @D3DTS_PROJECTION
	.comm	_D3DTS_VIEW,4,2                 ; @D3DTS_VIEW
	.comm	_D3DTS_WORLD,4,2                ; @D3DTS_WORLD
.subsections_via_symbols
