	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_arb_ps_compile_args
_find_arb_ps_compile_args:              ## @find_arb_ps_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r8
	movq	%rdi, %r14
	movq	16(%rsi), %r12
	movq	8(%rsi), %r13
	movl	(%rsi), %edx
	addq	$16, %rcx
	movq	%r15, %rsi
	callq	_find_ps_compile_args
	movl	(%r15), %eax
	movl	%eax, (%rbx)
	movq	_WINED3D_MAX_CONSTS_B@GOTPCREL(%rip), %r8
	movl	(%r8), %edi
	testl	%edi, %edi
	jle	LBB0_5
## %bb.1:
	movq	16(%r14), %rdx
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	movslq	%edi, %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rsi,8)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	btsl	%esi, %eax
	movl	%eax, (%rbx)
	movl	(%r8), %edi
	jmp	LBB0_4
LBB0_5:
	cmpl	$0, (%r13)
	je	LBB0_6
LBB0_9:
	xorl	%ecx, %ecx
LBB0_10:
	movl	%ecx, 4(%rbx)
	movl	4(%r15), %r10d
	notl	%r10d
	orl	8(%r15), %r10d
	cmpl	$65535, %r10d                   ## imm = 0xFFFF
	je	LBB0_19
## %bb.11:
	movq	(%r12), %rcx
	movq	_NV_FRAGMENT_PROGRAM_OPTION@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_12
LBB0_19:
	movq	8(%rbx), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	callq	_use_vs
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	8(%r14), %rax
	movq	_WINED3D_RS_CLIPPING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_9
## %bb.8:
	movq	_WINED3D_RS_CLIPPLANEENABLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	$1, %ecx
	cmpq	$0, (%rax,%rdx,8)
	jne	LBB0_10
	jmp	LBB0_9
LBB0_12:
	movq	_WINED3D_MAX_CONSTS_I@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_18
## %bb.13:
	movl	$16, %edx
	xorl	%esi, %esi
	xorps	%xmm0, %xmm0
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	(%r14), %rdi
	movq	(%rdi,%rdx), %r9
	movq	8(%rbx), %rcx
	movq	(%rcx,%rsi,8), %rcx
	movq	%r9, (%rcx)
	movq	-8(%rdi,%rdx), %rax
	movq	%rax, 8(%rcx)
	movq	-16(%rdi,%rdx), %rax
	movq	%rax, 16(%rcx)
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rsi
	addq	$24, %rdx
	cmpq	%rsi, %r8
	je	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	btl	%esi, %r10d
	jae	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	8(%rbx), %rdi
	movq	(%rdi,%rsi,8), %rdi
	movups	%xmm0, (%rdi)
	movq	$0, 16(%rdi)
	jmp	LBB0_17
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_MAX_CONSTS_B,4,2       ## @WINED3D_MAX_CONSTS_B
	.comm	_WINED3D_RS_CLIPPING,8,3        ## @WINED3D_RS_CLIPPING
	.comm	_WINED3D_RS_CLIPPLANEENABLE,8,3 ## @WINED3D_RS_CLIPPLANEENABLE
	.comm	_NV_FRAGMENT_PROGRAM_OPTION,8,3 ## @NV_FRAGMENT_PROGRAM_OPTION
	.comm	_WINED3D_MAX_CONSTS_I,4,2       ## @WINED3D_MAX_CONSTS_I
	.no_dead_strip	_find_arb_ps_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_ps_compile_args
_find_arb_ps_compile_args:              ; @find_arb_ps_compile_args
	.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	x19, x3
	mov	x21, x2
	mov	x4, x1
	mov	x20, x0
	ldp	x23, x22, [x1, #8]
	ldr	w2, [x1]
	add	x3, x3, #16
	mov	x1, x21
	bl	_find_ps_compile_args
	ldr	w8, [x21]
	str	w8, [x19]
Lloh0:
	adrp	x9, _WINED3D_MAX_CONSTS_B@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3D_MAX_CONSTS_B@GOTPAGEOFF]
	ldr	w11, [x9]
	cmp	w11, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x10, #0
	ldr	x12, [x20, #16]
	mov	w13, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	cmp	x10, w11, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x12, x10, lsl #3]
	cbz	x14, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w11, w13, w10
	orr	w8, w8, w11
	str	w8, [x19]
	ldr	w11, [x9]
	b	LBB0_2
LBB0_5:
	ldr	w8, [x23]
	cbz	w8, LBB0_10
LBB0_6:
	mov	w8, #0
LBB0_7:
	str	w8, [x19, #4]
	ldp	w8, w9, [x21, #4]
	orn	w8, w9, w8
	mov	w9, #65535
	cmp	w8, w9
	b.eq	LBB0_9
; %bb.8:
	ldr	x9, [x22]
Lloh2:
	adrp	x10, _NV_FRAGMENT_PROGRAM_OPTION@GOTPAGE
Lloh3:
	ldr	x10, [x10, _NV_FRAGMENT_PROGRAM_OPTION@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
	cbz	x9, LBB0_14
LBB0_9:
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	w2, #8
	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	_memset
LBB0_10:
	mov	x0, x20
	bl	_use_vs
	cbz	x0, LBB0_6
; %bb.11:
	ldr	x8, [x20, #8]
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_6
; %bb.12:
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]
	cbz	x8, LBB0_6
; %bb.13:
	mov	w8, #1
	b	LBB0_7
LBB0_14:
Lloh11:
	adrp	x9, _WINED3D_MAX_CONSTS_I@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WINED3D_MAX_CONSTS_I@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.15:
	mov	x10, #0
	mov	w11, #8
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x12, [x20]
	add	x12, x12, x11
	ldr	x13, [x19, #8]
	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_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x10, x10, #1
	add	x11, x11, #24
	cmp	x9, x10
	b.eq	LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	lsr	w12, w8, w10
	tbz	w12, #0, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x12, [x19, #8]
	ldr	x12, [x12, x10, lsl #3]
	stp	xzr, xzr, [x12]
	str	xzr, [x12, #16]
	b	LBB0_17
LBB0_20:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_MAX_CONSTS_B,4,2       ; @WINED3D_MAX_CONSTS_B
	.comm	_WINED3D_RS_CLIPPING,8,3        ; @WINED3D_RS_CLIPPING
	.comm	_WINED3D_RS_CLIPPLANEENABLE,8,3 ; @WINED3D_RS_CLIPPLANEENABLE
	.comm	_NV_FRAGMENT_PROGRAM_OPTION,8,3 ; @NV_FRAGMENT_PROGRAM_OPTION
	.comm	_WINED3D_MAX_CONSTS_I,4,2       ; @WINED3D_MAX_CONSTS_I
	.no_dead_strip	_find_arb_ps_compile_args
.subsections_via_symbols
