	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3d8_renderchain_render_pass
_d3d8_renderchain_render_pass:          ## @d3d8_renderchain_render_pass
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_config_get_ptr
	movl	8(%r15), %edx
	cmpl	$0, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_D3DTEXF_POINT@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_1:
	movq	_D3DTEXF_LINEAR@GOTPCREL(%rip), %rbx
LBB0_3:
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_d3d8_set_texture
	movl	(%rbx), %edx
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_d3d8_set_sampler_magfilter
	movl	(%rbx), %edx
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_d3d8_set_sampler_minfilter
	movl	4(%r15), %edi
	leaq	8(%r14), %rsi
	callq	_d3d8_set_viewports
	movq	_D3DFVF_XYZ@GOTPCREL(%rip), %rax
	movq	_D3DFVF_TEX1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_D3DFVF_DIFFUSE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%r13d, %edi
	xorl	%edx, %edx
	callq	_d3d8_set_vertex_shader
	movl	(%r15), %edx
	movl	%r13d, %edi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$4, %r8d
	callq	_d3d8_set_stream_source
	movl	4(%r14), %edi
	movq	%r14, %rsi
	callq	_d3d8_set_mvp
	movq	_D3DPT_TRIANGLESTRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	xorl	%edx, %edx
	movl	$2, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_d3d8_draw_primitive            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DTEXF_LINEAR,4,2             ## @D3DTEXF_LINEAR
	.comm	_D3DTEXF_POINT,4,2              ## @D3DTEXF_POINT
	.comm	_D3DFVF_XYZ,4,2                 ## @D3DFVF_XYZ
	.comm	_D3DFVF_TEX1,4,2                ## @D3DFVF_TEX1
	.comm	_D3DFVF_DIFFUSE,4,2             ## @D3DFVF_DIFFUSE
	.comm	_D3DPT_TRIANGLESTRIP,4,2        ## @D3DPT_TRIANGLESTRIP
	.no_dead_strip	_d3d8_renderchain_render_pass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3d8_renderchain_render_pass
_d3d8_renderchain_render_pass:          ; @d3d8_renderchain_render_pass
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_config_get_ptr
	ldr	w23, [x0]
	ldr	w2, [x22, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_d3d8_set_texture
Lloh0:
	adrp	x8, _D3DTEXF_LINEAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3DTEXF_LINEAR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _D3DTEXF_POINT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _D3DTEXF_POINT@GOTPAGEOFF]
	cmp	w23, #0
	csel	x23, x9, x8, eq
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x21
	bl	_d3d8_set_sampler_magfilter
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x21
	bl	_d3d8_set_sampler_minfilter
	ldr	w0, [x22, #4]
	add	x1, x20, #8
	bl	_d3d8_set_viewports
Lloh4:
	adrp	x8, _D3DFVF_XYZ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _D3DFVF_XYZ@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _D3DFVF_TEX1@GOTPAGE
Lloh8:
	ldr	x9, [x9, _D3DFVF_TEX1@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _D3DFVF_DIFFUSE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _D3DFVF_DIFFUSE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	mov	x2, #0
	bl	_d3d8_set_vertex_shader
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w3, #0
	mov	w4, #4
	bl	_d3d8_set_stream_source
	ldr	w0, [x20, #4]
	mov	x1, x20
	bl	_d3d8_set_mvp
Lloh13:
	adrp	x8, _D3DPT_TRIANGLESTRIP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _D3DPT_TRIANGLESTRIP@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #2
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_d3d8_draw_primitive
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DTEXF_LINEAR,4,2             ; @D3DTEXF_LINEAR
	.comm	_D3DTEXF_POINT,4,2              ; @D3DTEXF_POINT
	.comm	_D3DFVF_XYZ,4,2                 ; @D3DFVF_XYZ
	.comm	_D3DFVF_TEX1,4,2                ; @D3DFVF_TEX1
	.comm	_D3DFVF_DIFFUSE,4,2             ; @D3DFVF_DIFFUSE
	.comm	_D3DPT_TRIANGLESTRIP,4,2        ; @D3DPT_TRIANGLESTRIP
	.no_dead_strip	_d3d8_renderchain_render_pass
.subsections_via_symbols
