	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hlsl_d3d9_renderchain_add_pass
_hlsl_d3d9_renderchain_add_pass:        ## @hlsl_d3d9_renderchain_add_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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	movq	%rax, -40(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -56(%rbp)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_unsigned_vector_list_new
	movq	%rax, -64(%rbp)
	movq	_D3DPOOL_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	(%rbx), %edi
	movq	(%r14), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %r12
	movq	%r12, %rsi
	callq	_d3d9_hlsl_load_program_from_file
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_hlsl_d3d9_renderchain_init_shader_fvf
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_d3d9_renderchain_add_pass
	movl	%eax, %r15d
LBB0_2:
	movl	%r15d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DPOOL_DEFAULT,4,2            ## @D3DPOOL_DEFAULT
	.no_dead_strip	_hlsl_d3d9_renderchain_add_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_add_pass
_hlsl_d3d9_renderchain_add_pass:        ; @hlsl_d3d9_renderchain_add_pass
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
	stp	xzr, x8, [sp, #32]
	str	xzr, [sp, #24]
	bl	_unsigned_vector_list_new
Lloh0:
	adrp	x8, _D3DPOOL_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3DPOOL_DEFAULT@GOTPAGEOFF]
	str	x0, [sp, #16]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x20]
	ldr	x8, [x19]
	ldr	w2, [x8]
	add	x1, sp, #8
	bl	_d3d9_hlsl_load_program_from_file
	add	x1, sp, #8
	mov	x0, x20
	bl	_hlsl_d3d9_renderchain_init_shader_fvf
	cbz	w0, LBB0_2
; %bb.1:
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	_d3d9_renderchain_add_pass
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DPOOL_DEFAULT,4,2            ; @D3DPOOL_DEFAULT
	.no_dead_strip	_hlsl_d3d9_renderchain_add_pass
.subsections_via_symbols
