	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_arb_get_caps
_shader_arb_get_caps:                   ## @shader_arb_get_caps
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_ARB_VERTEX_PROGRAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_4
## %bb.1:
	movl	8(%r14), %esi
	movl	12(%r14), %r15d
	cmpl	$96, %esi
	jl	LBB0_3
## %bb.2:
	movl	%r15d, %edi
	callq	_min
	movq	%rax, %r15
	movq	(%r14), %rax
LBB0_3:
	movq	_NV_VERTEX_PROGRAM3@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	cmpl	$256, %r15d                     ## imm = 0x100
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rbx
	cmovgeq	%rsi, %rbx
	setge	%dl
	incl	%edx
	cmpq	$0, (%rax,%rcx,8)
	leaq	L_.str(%rip), %rdi
	cmoveq	%rbx, %rdi
	movl	$3, %ebx
	cmovel	%edx, %ebx
	callq	_TRACE
	movq	_wined3d_settings@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_min
	movq	%rax, 72(%r12)
	movq	_WINED3D_MAX_VS_CONSTS_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_min
	movq	%rax, 64(%r12)
	movq	(%r14), %rax
	jmp	LBB0_5
LBB0_4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%r12)
LBB0_5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r12)
	movups	%xmm0, 32(%r12)
	movq	_ARB_FRAGMENT_PROGRAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_9
## %bb.6:
	movl	16(%r14), %esi
	movl	20(%r14), %r15d
	cmpl	$24, %esi
	jl	LBB0_8
## %bb.7:
	movl	%r15d, %edi
	callq	_min
	movq	%rax, %r15
	movq	(%r14), %rax
LBB0_8:
	movq	_NV_FRAGMENT_PROGRAM2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	cmpl	$32, %r15d
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str.5(%rip), %rbx
	cmovgeq	%rsi, %rbx
	setge	%dl
	incl	%edx
	cmpq	$0, (%rax,%rcx,8)
	leaq	L_.str.3(%rip), %rdi
	cmoveq	%rbx, %rdi
	movl	$3, %ebx
	cmovel	%edx, %ebx
	callq	_TRACE
	movq	_wined3d_settings@GOTPCREL(%rip), %rax
	movl	4(%rax), %edi
	movl	%ebx, %esi
	callq	_min
	movq	%rax, 24(%r12)
	movq	_WINED3D_MAX_PS_CONSTS_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_min
	movq	%rax, 16(%r12)
	movl	$1090519040, (%r12)             ## imm = 0x41000000
	jmp	LBB0_10
LBB0_9:
	movl	$0, (%r12)
	movups	%xmm0, 16(%r12)
LBB0_10:
	movq	$0, 8(%r12)
	movq	_WINED3D_SHADER_CAP_SRGB_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	%r14, %rdi
	callq	_use_nv_clip
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_WINED3D_SHADER_CAP_VS_CLIPPING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r12)
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARB_VERTEX_PROGRAM,8,3         ## @ARB_VERTEX_PROGRAM
	.comm	_NV_VERTEX_PROGRAM3,8,3         ## @NV_VERTEX_PROGRAM3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hardware vertex shader version 3.0 enabled (NV_VERTEX_PROGRAM3)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Hardware vertex shader version 2.0 enabled (ARB_PROGRAM)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Hardware vertex shader version 1.1 enabled (ARB_PROGRAM)\n"

	.comm	_wined3d_settings,8,2           ## @wined3d_settings
	.comm	_WINED3D_MAX_VS_CONSTS_F,4,2    ## @WINED3D_MAX_VS_CONSTS_F
	.comm	_ARB_FRAGMENT_PROGRAM,8,3       ## @ARB_FRAGMENT_PROGRAM
	.comm	_NV_FRAGMENT_PROGRAM2,8,3       ## @NV_FRAGMENT_PROGRAM2
L_.str.3:                               ## @.str.3
	.asciz	"Hardware pixel shader version 3.0 enabled (NV_FRAGMENT_PROGRAM2)\n"

L_.str.4:                               ## @.str.4
	.asciz	"Hardware pixel shader version 2.0 enabled (ARB_PROGRAM)\n"

L_.str.5:                               ## @.str.5
	.asciz	"Hardware pixel shader version 1.4 enabled (ARB_PROGRAM)\n"

	.comm	_WINED3D_MAX_PS_CONSTS_F,4,2    ## @WINED3D_MAX_PS_CONSTS_F
	.comm	_WINED3D_SHADER_CAP_SRGB_WRITE,4,2 ## @WINED3D_SHADER_CAP_SRGB_WRITE
	.comm	_WINED3D_SHADER_CAP_VS_CLIPPING,4,2 ## @WINED3D_SHADER_CAP_VS_CLIPPING
	.no_dead_strip	_shader_arb_get_caps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_arb_get_caps
_shader_arb_get_caps:                   ; @shader_arb_get_caps
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x9, _ARB_VERTEX_PROGRAM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ARB_VERTEX_PROGRAM@GOTPAGEOFF]
	ldr	x8, [x0]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
Lloh3:
	adrp	x23, _wined3d_settings@GOTPAGE
Lloh4:
	ldr	x23, [x23, _wined3d_settings@GOTPAGEOFF]
	cbz	x9, LBB0_4
; %bb.1:
	ldp	w1, w21, [x20, #8]
	cmp	w1, #96
	b.lt	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_min
	mov	x21, x0
	ldr	x8, [x20]
LBB0_3:
Lloh5:
	adrp	x9, _NV_VERTEX_PROGRAM3@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NV_VERTEX_PROGRAM3@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh10:
	adrp	x10, l_.str.1@PAGE
Lloh11:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w21, #255
	csel	x9, x10, x9, gt
	mov	w10, #1
	cinc	w10, w10, gt
Lloh12:
	adrp	x11, l_.str@PAGE
Lloh13:
	add	x11, x11, l_.str@PAGEOFF
	cmp	x8, #0
	csel	x0, x9, x11, eq
	mov	w8, #3
	csel	w22, w10, w8, eq
	bl	_TRACE
	ldr	w0, [x23]
	mov	x1, x22
	bl	_min
	str	x0, [x19, #72]
Lloh14:
	adrp	x8, _WINED3D_MAX_VS_CONSTS_F@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WINED3D_MAX_VS_CONSTS_F@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_min
	str	x0, [x19, #64]
	ldr	x8, [x20]
	b	LBB0_5
LBB0_4:
	stp	xzr, xzr, [x19, #64]
LBB0_5:
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #32]
Lloh17:
	adrp	x9, _ARB_FRAGMENT_PROGRAM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ARB_FRAGMENT_PROGRAM@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_9
; %bb.6:
	ldp	w1, w21, [x20, #16]
	cmp	w1, #24
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_min
	mov	x21, x0
	ldr	x8, [x20]
LBB0_8:
Lloh20:
	adrp	x9, _NV_FRAGMENT_PROGRAM2@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NV_FRAGMENT_PROGRAM2@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh23:
	adrp	x9, l_.str.5@PAGE
Lloh24:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh25:
	adrp	x10, l_.str.4@PAGE
Lloh26:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	w21, #31
	csel	x9, x10, x9, gt
	mov	w10, #1
	cinc	w10, w10, gt
Lloh27:
	adrp	x11, l_.str.3@PAGE
Lloh28:
	add	x11, x11, l_.str.3@PAGEOFF
	cmp	x8, #0
	csel	x0, x9, x11, eq
	mov	w8, #3
	csel	w22, w10, w8, eq
	bl	_TRACE
	ldr	w0, [x23, #4]
	mov	x1, x22
	bl	_min
	str	x0, [x19, #24]
Lloh29:
	adrp	x8, _WINED3D_MAX_PS_CONSTS_F@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WINED3D_MAX_PS_CONSTS_F@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_min
	str	x0, [x19, #16]
	mov	w8, #1090519040
	str	w8, [x19]
	b	LBB0_10
LBB0_9:
	str	wzr, [x19]
	stp	xzr, xzr, [x19, #16]
LBB0_10:
	str	xzr, [x19, #8]
Lloh32:
	adrp	x8, _WINED3D_SHADER_CAP_SRGB_WRITE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _WINED3D_SHADER_CAP_SRGB_WRITE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_use_nv_clip
	cbz	x0, LBB0_12
; %bb.11:
Lloh35:
	adrp	x8, _WINED3D_SHADER_CAP_VS_CLIPPING@GOTPAGE
Lloh36:
	ldr	x8, [x8, _WINED3D_SHADER_CAP_VS_CLIPPING@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_12:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_ARB_VERTEX_PROGRAM,8,3         ; @ARB_VERTEX_PROGRAM
	.comm	_NV_VERTEX_PROGRAM3,8,3         ; @NV_VERTEX_PROGRAM3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hardware vertex shader version 3.0 enabled (NV_VERTEX_PROGRAM3)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Hardware vertex shader version 2.0 enabled (ARB_PROGRAM)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Hardware vertex shader version 1.1 enabled (ARB_PROGRAM)\n"

	.comm	_wined3d_settings,8,2           ; @wined3d_settings
	.comm	_WINED3D_MAX_VS_CONSTS_F,4,2    ; @WINED3D_MAX_VS_CONSTS_F
	.comm	_ARB_FRAGMENT_PROGRAM,8,3       ; @ARB_FRAGMENT_PROGRAM
	.comm	_NV_FRAGMENT_PROGRAM2,8,3       ; @NV_FRAGMENT_PROGRAM2
l_.str.3:                               ; @.str.3
	.asciz	"Hardware pixel shader version 3.0 enabled (NV_FRAGMENT_PROGRAM2)\n"

l_.str.4:                               ; @.str.4
	.asciz	"Hardware pixel shader version 2.0 enabled (ARB_PROGRAM)\n"

l_.str.5:                               ; @.str.5
	.asciz	"Hardware pixel shader version 1.4 enabled (ARB_PROGRAM)\n"

	.comm	_WINED3D_MAX_PS_CONSTS_F,4,2    ; @WINED3D_MAX_PS_CONSTS_F
	.comm	_WINED3D_SHADER_CAP_SRGB_WRITE,4,2 ; @WINED3D_SHADER_CAP_SRGB_WRITE
	.comm	_WINED3D_SHADER_CAP_VS_CLIPPING,4,2 ; @WINED3D_SHADER_CAP_VS_CLIPPING
	.no_dead_strip	_shader_arb_get_caps
.subsections_via_symbols
