	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function shader_glsl_get_caps
LCPI0_0:
	.long	0x44800000                      ## float 1024
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_shader_glsl_get_caps:                  ## @shader_glsl_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, %rbx
	movq	%rdi, %r14
	callq	_shader_glsl_get_shader_model
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	_wined3d_settings@GOTPCREL(%rip), %r12
	movl	20(%r12), %edi
	movl	%r15d, %esi
	callq	_min
	movq	%rax, 40(%rbx)
	movl	16(%r12), %edi
	movl	%r15d, %esi
	callq	_min
	movq	%rax, 72(%rbx)
	movl	12(%r12), %edi
	movl	%r15d, %esi
	callq	_min
	movq	%rax, 64(%rbx)
	movl	8(%r12), %edi
	movl	%r15d, %esi
	callq	_min
	movq	%rax, 56(%rbx)
	movl	4(%r12), %edi
	movl	%r15d, %esi
	callq	_min
	movq	%rax, 32(%rbx)
	movl	(%r12), %edi
	movl	%r15d, %esi
	callq	_min
	movq	%rax, 48(%rbx)
	movq	16(%r14), %rax
	movq	_ARB_VERTEX_SHADER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_1
## %bb.2:
	movq	40(%rbx), %rcx
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movq	%rcx, 40(%rbx)
	movq	_ARB_FRAGMENT_SHADER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_4
## %bb.5:
	movq	32(%rbx), %rax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	movq	%rax, 32(%rbx)
	movq	_WINED3D_MAX_VS_CONSTS_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_min
	movq	%rax, 24(%rbx)
	movq	_WINED3D_MAX_PS_CONSTS_F@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	callq	_min
	movq	%rax, 16(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 8(%rbx)
	cmpl	$4, %r15d
	jae	LBB0_7
## %bb.8:
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_9
LBB0_7:
	movq	_FLT_MAX@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
LBB0_9:
	movss	%xmm0, (%rbx)
	movq	_WINED3D_SHADER_CAP_VS_CLIPPING@GOTPCREL(%rip), %rax
	movq	_WINED3D_SHADER_CAP_SRGB_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Shader model %u.\n"

	.comm	_wined3d_settings,24,2          ## @wined3d_settings
	.comm	_ARB_VERTEX_SHADER,8,3          ## @ARB_VERTEX_SHADER
	.comm	_ARB_FRAGMENT_SHADER,8,3        ## @ARB_FRAGMENT_SHADER
	.comm	_WINED3D_MAX_VS_CONSTS_F,4,2    ## @WINED3D_MAX_VS_CONSTS_F
	.comm	_WINED3D_MAX_PS_CONSTS_F,4,2    ## @WINED3D_MAX_PS_CONSTS_F
	.comm	_FLT_MAX,4,2                    ## @FLT_MAX
	.comm	_WINED3D_SHADER_CAP_VS_CLIPPING,4,2 ## @WINED3D_SHADER_CAP_VS_CLIPPING
	.comm	_WINED3D_SHADER_CAP_SRGB_WRITE,4,2 ## @WINED3D_SHADER_CAP_SRGB_WRITE
	.no_dead_strip	_shader_glsl_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_glsl_get_caps
_shader_glsl_get_caps:                  ; @shader_glsl_get_caps
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_shader_glsl_get_shader_model
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_TRACE
Lloh2:
	adrp	x22, _wined3d_settings@GOTPAGE
Lloh3:
	ldr	x22, [x22, _wined3d_settings@GOTPAGEOFF]
	ldr	w0, [x22, #20]
	mov	x1, x21
	bl	_min
	str	x0, [x19, #40]
	ldr	w0, [x22, #16]
	mov	x1, x21
	bl	_min
	str	x0, [x19, #72]
	ldr	w0, [x22, #12]
	mov	x1, x21
	bl	_min
	str	x0, [x19, #64]
	ldr	w0, [x22, #8]
	mov	x1, x21
	bl	_min
	str	x0, [x19, #56]
	ldr	w0, [x22, #4]
	mov	x1, x21
	bl	_min
	str	x0, [x19, #32]
	ldr	w0, [x22]
	mov	x1, x21
	bl	_min
	str	x0, [x19, #48]
	ldr	x8, [x20, #16]
Lloh4:
	adrp	x9, _ARB_VERTEX_SHADER@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ARB_VERTEX_SHADER@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	x9, [x19, #40]
LBB0_2:
	str	x9, [x19, #40]
Lloh7:
	adrp	x9, _ARB_FRAGMENT_SHADER@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ARB_FRAGMENT_SHADER@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x19, #32]
LBB0_4:
	str	x8, [x19, #32]
Lloh10:
	adrp	x8, _WINED3D_MAX_VS_CONSTS_F@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WINED3D_MAX_VS_CONSTS_F@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_min
	str	x0, [x19, #24]
Lloh13:
	adrp	x8, _WINED3D_MAX_PS_CONSTS_F@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WINED3D_MAX_PS_CONSTS_F@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	w1, [x20, #4]
	bl	_min
	str	x0, [x19, #16]
	ldr	w8, [x20, #8]
Lloh16:
	adrp	x9, _FLT_MAX@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FLT_MAX@GOTPAGEOFF]
Lloh18:
	ldr	s0, [x9]
	cmp	w21, #3
	mov	w9, #1149239296
	fmov	s1, w9
	fcsel	s0, s0, s1, hi
	str	s0, [x19]
Lloh19:
	adrp	x9, _WINED3D_SHADER_CAP_VS_CLIPPING@GOTPAGE
Lloh20:
	ldr	x9, [x9, _WINED3D_SHADER_CAP_VS_CLIPPING@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _WINED3D_SHADER_CAP_SRGB_WRITE@GOTPAGE
Lloh23:
	ldr	x10, [x10, _WINED3D_SHADER_CAP_SRGB_WRITE@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	orr	w9, w10, w9
	stp	w9, w8, [x19, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Shader model %u.\n"

	.comm	_wined3d_settings,24,2          ; @wined3d_settings
	.comm	_ARB_VERTEX_SHADER,8,3          ; @ARB_VERTEX_SHADER
	.comm	_ARB_FRAGMENT_SHADER,8,3        ; @ARB_FRAGMENT_SHADER
	.comm	_WINED3D_MAX_VS_CONSTS_F,4,2    ; @WINED3D_MAX_VS_CONSTS_F
	.comm	_WINED3D_MAX_PS_CONSTS_F,4,2    ; @WINED3D_MAX_PS_CONSTS_F
	.comm	_FLT_MAX,4,2                    ; @FLT_MAX
	.comm	_WINED3D_SHADER_CAP_VS_CLIPPING,4,2 ; @WINED3D_SHADER_CAP_VS_CLIPPING
	.comm	_WINED3D_SHADER_CAP_SRGB_WRITE,4,2 ; @WINED3D_SHADER_CAP_SRGB_WRITE
	.no_dead_strip	_shader_glsl_get_caps
.subsections_via_symbols
