	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_arb_vs_compile_args
_find_arb_vs_compile_args:              ## @find_arb_vs_compile_args
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r8
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	24(%rdx), %rax
	movq	(%rax), %rbx
	movq	24(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %r14
	movl	8(%rsi), %edx
	addq	$44, %rcx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %rsi
	movq	%r12, %r8
	callq	_find_vs_compile_args
	movq	$0, 32(%r13)
	movq	%r15, %rdi
	callq	_use_ps
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	24(%r15), %rax
	movq	_WINED3D_SHADER_TYPE_PIXEL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	16(%rax), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 40(%r13)
	movl	(%rax), %eax
	incl	%eax
LBB0_7:
	movl	%eax, 16(%r13)
	jmp	LBB0_8
LBB0_2:
	movl	$-1, 40(%r13)
	cmpl	$0, 4(%r14)
	jne	LBB0_8
## %bb.3:
	movq	(%rbx), %rax
	cmpq	_arbfp_fragment_pipeline@GOTPCREL(%rip), %rax
	je	LBB0_4
LBB0_8:
	cmpl	$0, 16(%r13)
	je	LBB0_11
## %bb.9:
	movq	16(%r15), %rax
	movq	_WINED3D_RS_CLIPPING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_11
## %bb.10:
	movq	_WINED3D_RS_CLIPPLANEENABLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	(%rax,%rcx,8), %al
	movb	%al, 20(%r13)
LBB0_11:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %eax
	movl	%eax, 24(%r13)
	movq	_WINED3D_MAX_CONSTS_B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_23
## %bb.12:
	movq	8(%r15), %rdx
	cmpl	$1, %r8d
	jne	LBB0_14
## %bb.13:
	xorl	%esi, %esi
LBB0_20:
	testb	$1, %r8b
	je	LBB0_23
## %bb.21:
	cmpq	$0, (%rdx,%rsi,8)
	je	LBB0_23
## %bb.22:
	btsl	%esi, %eax
	movl	%eax, 24(%r13)
LBB0_23:
	movq	(%r12), %rax
	movq	_MAX_FRAGMENT_SAMPLERS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdx
	movq	8(%r13), %rsi
	movq	%rdx, (%rsi)
	movq	8(%rax,%rcx,8), %rdx
	movq	%rdx, 8(%rsi)
	movq	16(%rax,%rcx,8), %rax
	movq	%rax, 16(%rsi)
	movq	$0, 24(%rsi)
	movl	4(%rbx), %eax
	notl	%eax
	orl	8(%rbx), %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	je	LBB0_32
## %bb.24:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	_NV_VERTEX_PROGRAM2_OPTION@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_25
LBB0_32:
	movq	(%r13), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_14:
	movl	%r8d, %edi
	andl	$-2, %edi
	xorl	%esi, %esi
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	$2, %rsi
	cmpq	%rsi, %rdi
	je	LBB0_20
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rsi,8)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	btsl	%esi, %eax
	movl	%eax, 24(%r13)
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$0, 8(%rdx,%rsi,8)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	leal	1(%rsi), %ecx
	btsl	%ecx, %eax
	movl	%eax, 24(%r13)
	jmp	LBB0_19
LBB0_25:
	movq	_WINED3D_MAX_CONSTS_I@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_31
## %bb.26:
	movl	$16, %edx
	xorl	%esi, %esi
	xorps	%xmm0, %xmm0
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	(%r15), %rdi
	movq	(%rdi,%rdx), %rcx
	movq	(%r13), %rbx
	movq	(%rbx,%rsi,8), %rbx
	movq	%rcx, (%rbx)
	movq	-8(%rdi,%rdx), %rcx
	movq	%rcx, 8(%rbx)
	movq	-16(%rdi,%rdx), %rcx
	movq	%rcx, 16(%rbx)
LBB0_30:                                ##   in Loop: Header=BB0_27 Depth=1
	incq	%rsi
	addq	$24, %rdx
	cmpq	%rsi, %r8
	je	LBB0_31
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	btl	%esi, %eax
	jae	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	(%r13), %rdi
	movq	(%rdi,%rsi,8), %rdi
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	jmp	LBB0_30
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %rdi
	callq	_ffp_clip_emul
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%r14), %eax
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_SHADER_TYPE_PIXEL,8,3  ## @WINED3D_SHADER_TYPE_PIXEL
	.comm	_arbfp_fragment_pipeline,4,2    ## @arbfp_fragment_pipeline
	.comm	_WINED3D_RS_CLIPPING,8,3        ## @WINED3D_RS_CLIPPING
	.comm	_WINED3D_RS_CLIPPLANEENABLE,8,3 ## @WINED3D_RS_CLIPPLANEENABLE
	.comm	_WINED3D_MAX_CONSTS_B,4,2       ## @WINED3D_MAX_CONSTS_B
	.comm	_MAX_FRAGMENT_SAMPLERS,4,2      ## @MAX_FRAGMENT_SAMPLERS
	.comm	_NV_VERTEX_PROGRAM2_OPTION,8,3  ## @NV_VERTEX_PROGRAM2_OPTION
	.comm	_WINED3D_MAX_CONSTS_I,4,2       ## @WINED3D_MAX_CONSTS_I
	.no_dead_strip	_find_arb_vs_compile_args
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_arb_vs_compile_args
_find_arb_vs_compile_args:              ; @find_arb_vs_compile_args
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x2, #24]
	ldr	x25, [x8]
	ldp	x24, x23, [x1, #16]
	ldr	w2, [x1, #8]
	add	x3, x3, #44
	mov	x1, x21
	mov	x4, x22
	bl	_find_vs_compile_args
	str	xzr, [x19, #32]
	mov	x0, x20
	bl	_use_ps
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #24]
Lloh0:
	adrp	x9, _WINED3D_SHADER_TYPE_PIXEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3D_SHADER_TYPE_PIXEL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8, #16]
	ldp	w8, w9, [x8]
	str	w9, [x19, #40]
	add	w8, w8, #1
LBB0_2:
	str	w8, [x19, #16]
	b	LBB0_5
LBB0_3:
	mov	w8, #-1
	str	w8, [x19, #40]
	ldr	w8, [x24, #4]
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	x8, [x25]
Lloh3:
	adrp	x9, _arbfp_fragment_pipeline@GOTPAGE
Lloh4:
	ldr	x9, [x9, _arbfp_fragment_pipeline@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_23
LBB0_5:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_8
; %bb.6:
	ldr	x8, [x20, #16]
Lloh5:
	adrp	x9, _WINED3D_RS_CLIPPING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WINED3D_RS_CLIPPING@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_8
; %bb.7:
Lloh8:
	adrp	x9, _WINED3D_RS_CLIPPLANEENABLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WINED3D_RS_CLIPPLANEENABLE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	strb	w8, [x19, #20]
LBB0_8:
	ldr	w8, [x21]
	str	w8, [x19, #24]
Lloh11:
	adrp	x9, _WINED3D_MAX_CONSTS_B@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WINED3D_MAX_CONSTS_B@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x10, #0
	ldr	x11, [x20, #8]
	mov	w12, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.eq	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11, x10, lsl #3]
	cbz	x13, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	lsl	w13, w12, w10
	orr	w8, w8, w13
	str	w8, [x19, #24]
	b	LBB0_10
LBB0_13:
	ldr	x8, [x22]
Lloh14:
	adrp	x9, _MAX_FRAGMENT_SAMPLERS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MAX_FRAGMENT_SAMPLERS@GOTPAGEOFF]
Lloh16:
	ldrsw	x9, [x9]
	ldr	x10, [x8, x9, lsl #3]
	ldr	x11, [x19, #8]
	str	x10, [x11]
	add	w10, w9, #1
	ldr	x10, [x8, w10, sxtw #3]
	str	x10, [x11, #8]
	add	w9, w9, #2
	ldr	x8, [x8, w9, sxtw #3]
	stp	x8, xzr, [x11, #16]
	ldp	w8, w9, [x21, #4]
	orn	w8, w9, w8
	mov	w9, #65535
	cmp	w8, w9
	b.eq	LBB0_15
; %bb.14:
	ldr	x9, [x23]
Lloh17:
	adrp	x10, _NV_VERTEX_PROGRAM2_OPTION@GOTPAGE
Lloh18:
	ldr	x10, [x10, _NV_VERTEX_PROGRAM2_OPTION@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
	cbz	x9, LBB0_16
LBB0_15:
	ldr	x0, [x19]
	mov	w1, #0
	mov	w2, #8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_memset
LBB0_16:
Lloh20:
	adrp	x9, _WINED3D_MAX_CONSTS_I@GOTPAGE
Lloh21:
	ldr	x9, [x9, _WINED3D_MAX_CONSTS_I@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.17:
	mov	x10, #0
	mov	w11, #8
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x12, [x20]
	add	x12, x12, x11
	ldr	x13, [x19]
	ldr	x13, [x13, x10, lsl #3]
	ldr	x14, [x12, #8]
	str	x14, [x13]
	ldr	x14, [x12]
	str	x14, [x13, #8]
	ldur	x12, [x12, #-8]
	str	x12, [x13, #16]
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x10, x10, #1
	add	x11, x11, #24
	cmp	x9, x10
	b.eq	LBB0_22
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	lsr	w12, w8, w10
	tbz	w12, #0, LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x12, [x19]
	ldr	x12, [x12, x10, lsl #3]
	stp	xzr, xzr, [x12]
	str	xzr, [x12, #16]
	b	LBB0_19
LBB0_22:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_23:
	mov	x0, x22
	bl	_ffp_clip_emul
	cbz	x0, LBB0_25
; %bb.24:
	ldr	w8, [x24]
	b	LBB0_2
LBB0_25:
	mov	w8, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_SHADER_TYPE_PIXEL,8,3  ; @WINED3D_SHADER_TYPE_PIXEL
	.comm	_arbfp_fragment_pipeline,4,2    ; @arbfp_fragment_pipeline
	.comm	_WINED3D_RS_CLIPPING,8,3        ; @WINED3D_RS_CLIPPING
	.comm	_WINED3D_RS_CLIPPLANEENABLE,8,3 ; @WINED3D_RS_CLIPPLANEENABLE
	.comm	_WINED3D_MAX_CONSTS_B,4,2       ; @WINED3D_MAX_CONSTS_B
	.comm	_MAX_FRAGMENT_SAMPLERS,4,2      ; @MAX_FRAGMENT_SAMPLERS
	.comm	_NV_VERTEX_PROGRAM2_OPTION,8,3  ; @NV_VERTEX_PROGRAM2_OPTION
	.comm	_WINED3D_MAX_CONSTS_I,4,2       ; @WINED3D_MAX_CONSTS_I
	.no_dead_strip	_find_arb_vs_compile_args
.subsections_via_symbols
