	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function glsl_is_color_reg_read
_glsl_is_color_reg_read:                ## @glsl_is_color_reg_read
	.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
	movl	%esi, %r15d
	movl	(%rdi), %eax
	cmpl	$3, 8(%rdi)
	jge	LBB0_1
## %bb.10:
	movl	$1, %edx
	movl	%r15d, %ecx
	shll	%cl, %edx
	andl	%edx, %eax
	jmp	LBB0_9
LBB0_1:
	movq	%rdi, %r12
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, 16(%rdi)
	je	LBB0_8
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movl	16(%r12), %eax
	addq	$12, %rbx
	cmpq	%rax, %r14
	jae	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %r13
	movl	4(%r12), %eax
	movl	(%r13,%rbx), %ecx
	btl	%ecx, %eax
	jae	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r13,%rbx), %edi
	movq	_WINED3D_DECL_USAGE_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_shader_match_semantic
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r15d, 4(%r13,%rbx)
	jne	LBB0_7
## %bb.6:
	movb	(%r13,%rbx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	andl	%edx, %eax
	jmp	LBB0_9
LBB0_8:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_DECL_USAGE_COLOR,4,2   ## @WINED3D_DECL_USAGE_COLOR
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_glsl_is_color_reg_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function glsl_is_color_reg_read
_glsl_is_color_reg_read:                ; @glsl_is_color_reg_read
	.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, x1
	ldr	w21, [x0]
	ldr	w8, [x0, #8]
	cmp	w8, #3
	b.ge	LBB0_2
; %bb.1:
	mov	w8, #1
	lsl	w8, w8, w19
	and	w0, w21, w8
	b	LBB0_10
LBB0_2:
	mov	x20, x0
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_9
; %bb.3:
	mov	x22, #0
	mov	x23, #0
Lloh0:
	adrp	x24, _WINED3D_DECL_USAGE_COLOR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _WINED3D_DECL_USAGE_COLOR@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldr	w8, [x20, #16]
	add	x22, x22, #12
	cmp	x23, x8
	b.hs	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x20, #24]
	ldr	w8, [x20, #4]
	ldr	w9, [x25, x22]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x25, x22
	ldr	w0, [x26, #8]
	ldr	w1, [x24]
	bl	_shader_match_semantic
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26, #4]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.8:
	ldr	w8, [x25, x22]
	mov	w9, #1
	lsl	w8, w9, w8
	and	w0, w8, w21
	b	LBB0_10
LBB0_9:
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_DECL_USAGE_COLOR,4,2   ; @WINED3D_DECL_USAGE_COLOR
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_glsl_is_color_reg_read
.subsections_via_symbols
