	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hlsl_d3d9_renderchain_render_pass
_hlsl_d3d9_renderchain_render_pass:     ## @hlsl_d3d9_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movq	%r14, %rdi
	callq	_d3d9_hlsl_bind_program
	movl	(%rbx), %edi
	movl	24(%r14), %edx
	xorl	%esi, %esi
	callq	_d3d9_set_texture
	movl	(%rbx), %r15d
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_d3d_translate_filter
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_d3d9_set_sampler_minfilter
	movl	(%rbx), %r15d
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_d3d_translate_filter
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_d3d9_set_sampler_magfilter
	movl	(%rbx), %edi
	movl	12(%r14), %esi
	callq	_d3d9_set_vertex_declaration
	movl	(%rbx), %edi
	movl	8(%r14), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$4, %r8d
	callq	_d3d9_set_stream_source
	movl	(%rbx), %edi
	movl	8(%r14), %edx
	movl	$1, %esi
	xorl	%ecx, %ecx
	movl	$4, %r8d
	callq	_d3d9_set_stream_source
	movl	(%rbx), %edi
	movl	8(%r14), %edx
	movl	$2, %esi
	xorl	%ecx, %ecx
	movl	$4, %r8d
	callq	_d3d9_set_stream_source
	movl	(%rbx), %edi
	movl	8(%r14), %edx
	movl	$3, %esi
	xorl	%ecx, %ecx
	movl	$4, %r8d
	callq	_d3d9_set_stream_source
	movl	(%rbx), %edi
	movq	_D3DPT_TRIANGLESTRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$2, %ecx
	callq	_d3d9_draw_primitive
	movl	(%rbx), %edi
	movq	_D3DTEXF_POINT@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	xorl	%esi, %esi
	callq	_d3d9_set_sampler_minfilter
	movl	(%rbx), %edi
	movl	(%r14), %edx
	xorl	%esi, %esi
	callq	_d3d9_set_sampler_magfilter
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_d3d9_renderchain_unbind_all    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DPT_TRIANGLESTRIP,4,2        ## @D3DPT_TRIANGLESTRIP
	.comm	_D3DTEXF_POINT,4,2              ## @D3DTEXF_POINT
	.no_dead_strip	_hlsl_d3d9_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 hlsl_d3d9_renderchain_render_pass
_hlsl_d3d9_renderchain_render_pass:     ; @hlsl_d3d9_renderchain_render_pass
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	ldr	w1, [x0]
	mov	x0, x20
	bl	_d3d9_hlsl_bind_program
	ldr	w0, [x19]
	ldr	w2, [x20, #24]
	mov	w1, #0
	bl	_d3d9_set_texture
	ldr	w21, [x19]
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_d3d_translate_filter
	mov	x2, x0
	mov	x0, x21
	mov	w1, #0
	bl	_d3d9_set_sampler_minfilter
	ldr	w21, [x19]
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_d3d_translate_filter
	mov	x2, x0
	mov	x0, x21
	mov	w1, #0
	bl	_d3d9_set_sampler_magfilter
	ldr	w0, [x19]
	ldr	w1, [x20, #12]
	bl	_d3d9_set_vertex_declaration
	ldr	w0, [x19]
	ldr	w2, [x20, #8]
	mov	w1, #0
	mov	w3, #0
	mov	w4, #4
	bl	_d3d9_set_stream_source
	ldr	w0, [x19]
	ldr	w2, [x20, #8]
	mov	w1, #1
	mov	w3, #0
	mov	w4, #4
	bl	_d3d9_set_stream_source
	ldr	w0, [x19]
	ldr	w2, [x20, #8]
	mov	w1, #2
	mov	w3, #0
	mov	w4, #4
	bl	_d3d9_set_stream_source
	ldr	w0, [x19]
	ldr	w2, [x20, #8]
	mov	w1, #3
	mov	w3, #0
	mov	w4, #4
	bl	_d3d9_set_stream_source
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _D3DPT_TRIANGLESTRIP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3DPT_TRIANGLESTRIP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #2
	bl	_d3d9_draw_primitive
	ldr	w0, [x19]
Lloh3:
	adrp	x20, _D3DTEXF_POINT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _D3DTEXF_POINT@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w1, #0
	bl	_d3d9_set_sampler_minfilter
	ldr	w0, [x19]
	ldr	w2, [x20]
	mov	w1, #0
	bl	_d3d9_set_sampler_magfilter
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_d3d9_renderchain_unbind_all
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DPT_TRIANGLESTRIP,4,2        ; @D3DPT_TRIANGLESTRIP
	.comm	_D3DTEXF_POINT,4,2              ; @D3DTEXF_POINT
	.no_dead_strip	_hlsl_d3d9_renderchain_render_pass
.subsections_via_symbols
