	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3dx9_base_effect_get_pass_desc
_d3dx9_base_effect_get_pass_desc:       ## @d3dx9_base_effect_get_pass_desc
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rdi, %r14
	callq	_get_valid_pass
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	20(%rax), %ecx
	movl	%ecx, 20(%r13)
	movl	16(%rax), %ecx
	movl	%ecx, 16(%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r13)
	movq	_D3DXFX_NOT_CLONEABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	je	LBB0_4
LBB0_14:
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	movq	_D3DERR_INVALIDCALL@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %r13d
LBB0_16:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.5:
	movq	_SC_VERTEXSHADER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	xorl	%r12d, %r12d
	movq	_state_table@GOTPCREL(%rip), %rbx
	xorl	%r14d, %r14d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	(%rcx,%rax,8), %rcx
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %r13
	movq	_state_table@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	(%r15,%r12), %rsi
	movq	_SC_VERTEXSHADER@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	xorl	%edi, %edi
	cmpq	%r8, (%rdx,%rsi,8)
	sete	%dil
	movq	%rcx, (%r13,%rdi,8)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	movl	%ecx, %edx
	addq	$8, %r12
	cmpq	%rdx, %r14
	jae	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %r15
	movq	(%rbx), %rdx
	movq	(%r15,%r12), %rsi
	movq	(%rdx,%rsi,8), %rdx
	cmpq	%r8, %rdx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_SC_PIXELSHADER@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_13
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rbx
	leaq	(%r15,%r12), %rsi
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%rax, %rdi
	leaq	-80(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	leaq	-68(%rbp), %r9
	callq	_d3dx9_get_param_value_ptr
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rax
	movslq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid argument specified.\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ## @D3DERR_INVALIDCALL
	.comm	_D3DXFX_NOT_CLONEABLE,4,2       ## @D3DXFX_NOT_CLONEABLE
	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.comm	_state_table,8,3                ## @state_table
	.comm	_SC_VERTEXSHADER,8,3            ## @SC_VERTEXSHADER
	.comm	_SC_PIXELSHADER,8,3             ## @SC_PIXELSHADER
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_d3dx9_base_effect_get_pass_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3dx9_base_effect_get_pass_desc
_d3dx9_base_effect_get_pass_desc:       ; @d3dx9_base_effect_get_pass_desc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x0
	bl	_get_valid_pass
	cbz	x19, LBB0_4
; %bb.1:
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.2:
	ldr	d0, [x21, #16]
	str	d0, [x19, #16]
	stp	xzr, xzr, [x19]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _D3DXFX_NOT_CLONEABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _D3DXFX_NOT_CLONEABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
Lloh7:
	adrp	x8, _D3DERR_INVALIDCALL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _D3DERR_INVALIDCALL@GOTPAGEOFF]
LBB0_5:
	ldr	w22, [x8]
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	ldr	w8, [x21]
	cbz	w8, LBB0_3
; %bb.8:
	mov	x23, #0
	mov	x24, #0
Lloh9:
	adrp	x9, _SC_VERTEXSHADER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SC_VERTEXSHADER@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x26, _state_table@GOTPAGE
Lloh13:
	ldr	x26, [x26, _state_table@GOTPAGEOFF]
Lloh14:
	adrp	x27, _SC_PIXELSHADER@GOTPAGE
Lloh15:
	ldr	x27, [x27, _SC_PIXELSHADER@GOTPAGEOFF]
Lloh16:
	adrp	x28, _FALSE@GOTPAGE
Lloh17:
	ldr	x28, [x28, _FALSE@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x20, #8]
	ldr	x8, [x9, x8, lsl #3]
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x26]
	ldr	x10, [x25, x23]
	ldr	x10, [x9, x10, lsl #3]
Lloh18:
	adrp	x9, _SC_VERTEXSHADER@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SC_VERTEXSHADER@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x10, x9
	cset	w10, eq
	str	x8, [x19, w10, uxtw #3]
	ldr	w8, [x21]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x24, x24, #1
	add	x23, x23, #8
	cmp	x24, w8, uxtw
	b.hs	LBB0_3
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x21, #8]
	ldr	x10, [x25, x23]
	ldr	x11, [x26]
	ldr	x10, [x11, x10, lsl #3]
	ldr	x11, [x27]
	cmp	x10, x9
	ccmp	x10, x11, #4, ne
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x1, x25, x23
	ldr	w4, [x28]
	add	x2, sp, #16
	add	x3, sp, #24
	add	x5, sp, #12
	mov	x0, x21
	bl	_d3dx9_get_param_value_ptr
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #24]
	ldrsw	x8, [x8]
	cbnz	w8, LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x8, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid argument specified.\n"

	.comm	_D3DERR_INVALIDCALL,4,2         ; @D3DERR_INVALIDCALL
	.comm	_D3DXFX_NOT_CLONEABLE,4,2       ; @D3DXFX_NOT_CLONEABLE
	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.comm	_state_table,8,3                ; @state_table
	.comm	_SC_VERTEXSHADER,8,3            ; @SC_VERTEXSHADER
	.comm	_SC_PIXELSHADER,8,3             ; @SC_PIXELSHADER
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_d3dx9_base_effect_get_pass_desc
.subsections_via_symbols
