	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function d3d8_renderchain_set_vertices
LCPI0_0:
	.long	0x00000000                      ## float 0
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x00000000                      ## float 0
LCPI0_1:
	.long	0x00000000                      ## float 0
	.long	0x00000000                      ## float 0
	.long	0x3f800000                      ## float 1
	.long	0x00000000                      ## float 0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_d3d8_renderchain_set_vertices:         ## @d3d8_renderchain_set_vertices
	.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
	subq	$120, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	-136(%rbp), %rdi
	leaq	-132(%rbp), %rsi
	callq	_video_driver_get_size
	cmpl	%r15d, (%rbx)
	jne	LBB0_2
## %bb.1:
	cmpl	%r14d, 4(%rbx)
	je	LBB0_3
LBB0_2:
	movl	%r15d, (%rbx)
	movl	%r14d, 4(%rbx)
	movl	%r15d, %eax
	cvtsi2ss	%rax, %xmm0
	movl	%r14d, %eax
	cvtsi2ss	%rax, %xmm1
	movabsq	$4575657222473777152, %rax      ## imm = 0x3F8000003F800000
	movq	%rax, -104(%rbp)
	movl	$1065353216, -96(%rbp)          ## imm = 0x3F800000
	movq	$1065353216, -56(%rbp)          ## imm = 0x3F800000
	movl	$1065353216, -48(%rbp)          ## imm = 0x3F800000
	movaps	LCPI0_0(%rip), %xmm2            ## xmm2 = [0.0E+0,1.0E+0,1.0E+0,0.0E+0]
	movaps	%xmm2, -128(%rbp)
	movl	$0, -112(%rbp)
	movl	$0, -88(%rbp)
	movaps	LCPI0_1(%rip), %xmm2            ## xmm2 = [0.0E+0,0.0E+0,1.0E+0,0.0E+0]
	movaps	%xmm2, -80(%rbp)
	divss	8(%rbx), %xmm0
	movss	%xmm0, -92(%rbp)
	divss	12(%rbx), %xmm1
	movss	%xmm1, -64(%rbp)
	movss	%xmm0, -44(%rbp)
	movss	%xmm1, -40(%rbp)
	movl	$-1, -108(%rbp)
	movl	$-1, -84(%rbp)
	movl	$-1, -60(%rbp)
	movl	$-1, -36(%rbp)
	movl	16(%rbx), %edi
	callq	_d3d8_vertex_buffer_lock
	leaq	-128(%rbp), %rsi
	movq	%rax, %rdi
	movl	$96, %edx
	callq	_memcpy
	movl	16(%rbx), %edi
	callq	_d3d8_vertex_buffer_unlock
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$120, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_d3d8_renderchain_set_vertices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function d3d8_renderchain_set_vertices
lCPI0_0:
	.long	0x3f800000                      ; float 1
	.long	0x00000000                      ; float 0
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.long	0x00000000                      ; float 0
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x00000000                      ; float 0
lCPI0_2:
	.long	0x00000000                      ; float 0
	.long	0x00000000                      ; float 0
	.long	0x3f800000                      ; float 1
	.long	0x00000000                      ; float 0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_d3d8_renderchain_set_vertices:         ; @d3d8_renderchain_set_vertices
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x20, x4
	mov	x21, x3
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_video_driver_get_size
	ldr	w8, [x19]
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w8, w20
	b.eq	LBB0_3
LBB0_2:
	stp	w21, w20, [x19]
	ucvtf	s0, w21
	fmov.2s	v1, #1.00000000
	str	d1, [sp, #40]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	str	d1, [sp, #88]
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	q1, [x8, lCPI0_1@PAGEOFF]
	str	q1, [sp, #16]
Lloh7:
	adrp	x8, lCPI0_2@PAGE
Lloh8:
	ldr	q1, [x8, lCPI0_2@PAGEOFF]
	str	q1, [sp, #64]
	ldp	s1, s2, [x19, #8]
	fdiv	s0, s0, s1
	ucvtf	s1, w20
	mov	w8, #1065353216
	str	w8, [sp, #48]
	str	w8, [sp, #96]
	mov	x8, #-4294967296
	str	x8, [sp, #32]
	str	x8, [sp, #56]
	str	s0, [sp, #52]
	fdiv	s1, s1, s2
	str	s1, [sp, #80]
	stp	s0, s1, [sp, #100]
	mov	w8, #-1
	str	w8, [sp, #84]
	str	w8, [sp, #108]
	ldr	w0, [x19, #16]
	bl	_d3d8_vertex_buffer_lock
	add	x1, sp, #16
	mov	w2, #96
	bl	_memcpy
	ldr	w0, [x19, #16]
	bl	_d3d8_vertex_buffer_unlock
LBB0_3:
	ldur	x8, [x29, #-40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpAdrp	Lloh5, Lloh7
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_d3d8_renderchain_set_vertices
.subsections_via_symbols
