	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_ps_builtin_semantics
_find_ps_builtin_semantics:             ## @find_ps_builtin_semantics
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rax
	movq	$-1, (%rax)
	movq	8(%rdi), %rax
	pcmpeqd	%xmm0, %xmm0
	movdqu	%xmm0, 16(%rax)
	movdqu	%xmm0, (%rax)
	movq	_S_OK@GOTPCREL(%rip), %rax
	cmpl	$0, (%rsi)
	jle	LBB0_23
## %bb.1:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	leaq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$16, %r15d
	xorl	%r14d, %r14d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_TRACE
	movq	(%r13), %rax
	movl	%r12d, (%rax,%rbx,4)
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movslq	(%rsi), %rax
	addq	$20, %r15
	cmpq	%rax, %r14
	jge	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi), %rcx
	cmpl	$0, (%rcx,%r15)
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-16(%rcx,%r15), %esi
	movl	-8(%rcx,%r15), %eax
	movslq	-12(%rcx,%r15), %rbx
	movl	-4(%rcx,%r15), %r12d
	cmpl	$128, %esi
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$129, %esi
	jne	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$2, %ebx
	jge	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	_BWRITERSP_WRITEMASK_ALL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_2
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	jg	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_BWRITERSP_WRITEMASK_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str.5(%rip), %rdi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpl	%ecx, %eax
	je	LBB0_2
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_BWRITERSP_WRITEMASK_1@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	leaq	L_.str.5(%rip), %rdi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpl	%ecx, %eax
	je	LBB0_2
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_BWRITERSP_WRITEMASK_2@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	leaq	L_.str.5(%rip), %rdi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpl	%ecx, %eax
	je	LBB0_2
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.5(%rip), %rdi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	_BWRITERSP_WRITEMASK_ALL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_WARN
	leaq	L_.str.5(%rip), %rdi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_2
LBB0_15:
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_16:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_21
LBB0_17:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_20
LBB0_18:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_22
LBB0_19:
	leaq	L_.str.3(%rip), %rdi
LBB0_20:
	movl	%ebx, %esi
LBB0_21:
	xorl	%eax, %eax
	callq	_WARN
LBB0_22:
	movq	_E_INVALIDARG@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dcl_color%u not supported in sm 1 shaders\n"

	.comm	_E_INVALIDARG,4,2               ## @E_INVALIDARG
	.comm	_BWRITERSP_WRITEMASK_ALL,4,2    ## @BWRITERSP_WRITEMASK_ALL
L_.str.1:                               ## @.str.1
	.asciz	"Only WRITEMASK_ALL is supported on color in sm 1\n"

L_.str.2:                               ## @.str.2
	.asciz	"v%u is v%u\n"

L_.str.3:                               ## @.str.3
	.asciz	"dcl_texcoord%u not supported in this shader version\n"

	.comm	_BWRITERSP_WRITEMASK_0,4,2      ## @BWRITERSP_WRITEMASK_0
	.comm	_BWRITERSP_WRITEMASK_1,4,2      ## @BWRITERSP_WRITEMASK_1
	.comm	_BWRITERSP_WRITEMASK_2,4,2      ## @BWRITERSP_WRITEMASK_2
L_.str.4:                               ## @.str.4
	.asciz	"Partial writemasks not supported on texture coordinates in sm 1 and 2\n"

L_.str.5:                               ## @.str.5
	.asciz	"v%u is t%u\n"

L_.str.6:                               ## @.str.6
	.asciz	"Varying type %u is not supported in shader model 1.x\n"

	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_find_ps_builtin_semantics
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_ps_builtin_semantics
_find_ps_builtin_semantics:             ; @find_ps_builtin_semantics
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x8]
	mov	x21, x0
	ldr	x8, [x21, #8]!
	stp	q0, q0, [x8]
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x25, x0
	mov	x27, #0
	mov	x28, #0
Lloh0:
	adrp	x22, l_.str.5@PAGE
Lloh1:
	add	x22, x22, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x24
	mov	x2, x23
	bl	_TRACE
	ldr	x8, [x26]
	str	w24, [x8, x23, lsl #2]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x20]
	add	x27, x27, #20
	cmp	x28, x8
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x10, x8, x27
	ldr	w8, [x10, #16]
	cbz	w8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w9, w23, [x10]
                                        ; kill: def $w23 killed $w23 def $x23
	sxtw	x23, w23
	ldp	w8, w24, [x10, #8]
	cmp	w9, #128
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #129
	b.ne	LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w23, #2
	b.ge	LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh2:
	adrp	x9, _BWRITERSP_WRITEMASK_ALL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BWRITERSP_WRITEMASK_ALL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x26, x25
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w23, w19
	b.gt	LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh7:
	adrp	x9, _BWRITERSP_WRITEMASK_0@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BWRITERSP_WRITEMASK_0@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	mov	x0, x22
	mov	x26, x21
	cmp	w8, w9
	b.eq	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh10:
	adrp	x10, _BWRITERSP_WRITEMASK_1@GOTPAGE
Lloh11:
	ldr	x10, [x10, _BWRITERSP_WRITEMASK_1@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w9, w10, w9
	mov	x0, x22
	mov	x26, x21
	cmp	w8, w9
	b.eq	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x10, _BWRITERSP_WRITEMASK_2@GOTPAGE
Lloh14:
	ldr	x10, [x10, _BWRITERSP_WRITEMASK_2@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh16:
	adrp	x10, _BWRITERSP_WRITEMASK_ALL@GOTPAGE
Lloh17:
	ldr	x10, [x10, _BWRITERSP_WRITEMASK_ALL@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	mov	x0, x22
	mov	x26, x21
	b.eq	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_WARN
	mov	x0, x22
	mov	x26, x21
	b	LBB0_2
LBB0_15:
Lloh21:
	adrp	x8, _S_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_21
LBB0_16:
	str	x9, [sp]
Lloh23:
	adrp	x0, l_.str.6@PAGE
Lloh24:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_20
LBB0_17:
	str	x23, [sp]
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_20
LBB0_18:
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_19:
	str	x23, [sp]
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_20:
	bl	_WARN
Lloh31:
	adrp	x8, _E_INVALIDARG@GOTPAGE
Lloh32:
	ldr	x8, [x8, _E_INVALIDARG@GOTPAGEOFF]
LBB0_21:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dcl_color%u not supported in sm 1 shaders\n"

	.comm	_E_INVALIDARG,4,2               ; @E_INVALIDARG
	.comm	_BWRITERSP_WRITEMASK_ALL,4,2    ; @BWRITERSP_WRITEMASK_ALL
l_.str.1:                               ; @.str.1
	.asciz	"Only WRITEMASK_ALL is supported on color in sm 1\n"

l_.str.2:                               ; @.str.2
	.asciz	"v%u is v%u\n"

l_.str.3:                               ; @.str.3
	.asciz	"dcl_texcoord%u not supported in this shader version\n"

	.comm	_BWRITERSP_WRITEMASK_0,4,2      ; @BWRITERSP_WRITEMASK_0
	.comm	_BWRITERSP_WRITEMASK_1,4,2      ; @BWRITERSP_WRITEMASK_1
	.comm	_BWRITERSP_WRITEMASK_2,4,2      ; @BWRITERSP_WRITEMASK_2
l_.str.4:                               ; @.str.4
	.asciz	"Partial writemasks not supported on texture coordinates in sm 1 and 2\n"

l_.str.5:                               ; @.str.5
	.asciz	"v%u is t%u\n"

l_.str.6:                               ; @.str.6
	.asciz	"Varying type %u is not supported in shader model 1.x\n"

	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_find_ps_builtin_semantics
.subsections_via_symbols
