	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_sm1_read_instruction
_shader_sm1_read_instruction:           ## @shader_sm1_read_instruction
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_shader_sm1_read_comment
	movq	(%rbx), %rax
	leaq	4(%rax), %rcx
	movq	%rcx, (%rbx)
	movl	(%rax), %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_shader_get_opcode
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_WINED3D_SM1_INSTRUCTION_FLAGS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movq	_WINED3D_SM1_INSTRUCTION_FLAGS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, 8(%r14)
	movq	_WINED3D_SM1_COISSUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movl	%eax, 12(%r14)
	movq	_WINED3D_SM1_INSTRUCTION_PREDICATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	leaq	20(%r15), %rdx
	xorl	%ecx, %ecx
	testl	%eax, %eax
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmovneq	%rdx, %rcx
	movq	%rcx, 24(%r14)
	movl	8(%r13), %eax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, 16(%r14)
	leaq	28(%r15), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, 48(%r14)
	movl	12(%r13), %ecx
	subl	%eax, %ecx
	movl	%ecx, 20(%r14)
	movq	8(%r15), %rax
	movq	%rax, 40(%r14)
	leaq	36(%r14), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%rbx), %rax
	movq	%rax, -48(%rbp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_shader_skip_opcode
	cltq
	shlq	$2, %rax
	addq	%rax, (%rbx)
	movq	(%r14), %rax
	movq	_WINED3DSIH_DCL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	leaq	32(%r14), %rsi
	leaq	-48(%rbp), %rdi
	callq	_shader_sm1_read_semantic
	jmp	LBB0_18
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_FIXME
	movq	_WINED3DSIH_TABLE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_shader_skip_unrecognized
	cltq
	shlq	$2, %rax
	addq	%rax, (%rbx)
	jmp	LBB0_19
LBB0_4:
	movq	_WINED3DSIH_DEF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	leaq	24(%r15), %rcx
	leaq	-48(%rbp), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_shader_sm1_read_dst_param
	movq	8(%r15), %rsi
	movq	_WINED3D_IMMCONST_VEC4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_WINED3D_DATA_FLOAT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	movq	_WINED3DSIH_DEFB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	leaq	24(%r15), %rcx
	leaq	-48(%rbp), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_shader_sm1_read_dst_param
	movq	8(%r15), %rsi
	movq	_WINED3D_IMMCONST_SCALAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_WINED3D_DATA_UINT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_9:
	movq	_WINED3DSIH_DEFI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	leaq	24(%r15), %rcx
	leaq	-48(%rbp), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_shader_sm1_read_dst_param
	movq	8(%r15), %rsi
	movq	_WINED3D_IMMCONST_VEC4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_WINED3D_DATA_INT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_shader_sm1_read_immconst
LBB0_18:
	movq	%r14, %rdi
	callq	_shader_sm1_validate_instruction
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	cmpl	$0, 16(%r14)
	je	LBB0_13
## %bb.12:
	leaq	24(%r15), %rcx
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_shader_sm1_read_dst_param
LBB0_13:
	cmpq	$0, 24(%r14)
	je	LBB0_15
## %bb.14:
	leaq	16(%r15), %rcx
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_shader_sm1_read_src_param
LBB0_15:
	cmpl	$0, 20(%r14)
	je	LBB0_18
## %bb.16:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdx
	addq	%rbx, %rdx
	movq	(%r15), %rcx
	addq	%rbx, %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_shader_sm1_read_src_param
	incq	%r13
	movl	20(%r14), %eax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jb	LBB0_17
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unrecognized opcode: token=0x%08x.\n"

	.comm	_WINED3DSIH_TABLE_SIZE,8,3      ## @WINED3DSIH_TABLE_SIZE
	.comm	_WINED3D_SM1_INSTRUCTION_FLAGS_MASK,4,2 ## @WINED3D_SM1_INSTRUCTION_FLAGS_MASK
	.comm	_WINED3D_SM1_INSTRUCTION_FLAGS_SHIFT,4,2 ## @WINED3D_SM1_INSTRUCTION_FLAGS_SHIFT
	.comm	_WINED3D_SM1_COISSUE,4,2        ## @WINED3D_SM1_COISSUE
	.comm	_WINED3D_SM1_INSTRUCTION_PREDICATED,4,2 ## @WINED3D_SM1_INSTRUCTION_PREDICATED
	.comm	_WINED3DSIH_DCL,8,3             ## @WINED3DSIH_DCL
	.comm	_WINED3DSIH_DEF,8,3             ## @WINED3DSIH_DEF
	.comm	_WINED3D_IMMCONST_VEC4,4,2      ## @WINED3D_IMMCONST_VEC4
	.comm	_WINED3D_DATA_FLOAT,4,2         ## @WINED3D_DATA_FLOAT
	.comm	_WINED3DSIH_DEFB,8,3            ## @WINED3DSIH_DEFB
	.comm	_WINED3D_IMMCONST_SCALAR,4,2    ## @WINED3D_IMMCONST_SCALAR
	.comm	_WINED3D_DATA_UINT,4,2          ## @WINED3D_DATA_UINT
	.comm	_WINED3DSIH_DEFI,8,3            ## @WINED3DSIH_DEFI
	.comm	_WINED3D_DATA_INT,4,2           ## @WINED3D_DATA_INT
	.no_dead_strip	_shader_sm1_read_instruction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_sm1_read_instruction
_shader_sm1_read_instruction:           ; @shader_sm1_read_instruction
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_shader_sm1_read_comment
	ldr	x8, [x21]
	ldr	w24, [x8], #4
	str	x8, [x21]
	mov	x0, x20
	mov	x1, x24
	bl	_shader_get_opcode
	cbz	x0, LBB0_3
; %bb.1:
	mov	x25, x0
	ldr	x8, [x0]
	str	x8, [x19]
Lloh0:
	adrp	x8, _WINED3D_SM1_INSTRUCTION_FLAGS_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3D_SM1_INSTRUCTION_FLAGS_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w24
Lloh3:
	adrp	x9, _WINED3D_SM1_INSTRUCTION_FLAGS_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINED3D_SM1_INSTRUCTION_FLAGS_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _WINED3D_SM1_COISSUE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WINED3D_SM1_COISSUE@GOTPAGEOFF]
	asr	w8, w8, w9
Lloh8:
	ldr	w9, [x10]
	and	w9, w9, w24
Lloh9:
	adrp	x10, _WINED3D_SM1_INSTRUCTION_PREDICATED@GOTPAGE
Lloh10:
	ldr	x10, [x10, _WINED3D_SM1_INSTRUCTION_PREDICATED@GOTPAGEOFF]
	stp	w8, w9, [x19, #8]
Lloh11:
	ldr	w8, [x10]
	add	x22, x20, #20
	tst	w8, w24
	csel	x8, xzr, x22, eq
	str	x8, [x19, #24]
	ldp	w8, w9, [x0, #8]
	cmp	w8, #0
	cset	w10, ne
	sub	w8, w9, w8
	add	x23, x20, #28
	stp	w10, w8, [x19, #16]
	ldr	x8, [x20, #8]
	stp	x8, x23, [x19, #40]
	add	x0, x19, #36
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x21]
	str	x8, [sp, #8]
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
	bl	_shader_skip_opcode
	ldr	x8, [x21]
	add	x8, x8, w0, sxtw #2
	str	x8, [x21]
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _WINED3DSIH_DCL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WINED3DSIH_DCL@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	add	x1, x19, #32
	add	x0, sp, #8
	bl	_shader_sm1_read_semantic
	b	LBB0_11
LBB0_3:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	bl	_FIXME
Lloh17:
	adrp	x8, _WINED3DSIH_TABLE_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WINED3DSIH_TABLE_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	x1, [x21]
	mov	x0, x20
	bl	_shader_skip_unrecognized
	ldr	x8, [x21]
	add	x8, x8, w0, sxtw #2
	str	x8, [x21]
	b	LBB0_12
LBB0_4:
Lloh20:
	adrp	x9, _WINED3DSIH_DEF@GOTPAGE
Lloh21:
	ldr	x9, [x9, _WINED3DSIH_DEF@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	add	x3, x20, #24
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x23
	bl	_shader_sm1_read_dst_param
	ldr	x1, [x20, #8]
Lloh23:
	adrp	x8, _WINED3D_IMMCONST_VEC4@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WINED3D_IMMCONST_VEC4@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x8, _WINED3D_DATA_FLOAT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WINED3D_DATA_FLOAT@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh28:
	adrp	x9, _WINED3DSIH_DEFB@GOTPAGE
Lloh29:
	ldr	x9, [x9, _WINED3DSIH_DEFB@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	add	x3, x20, #24
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x23
	bl	_shader_sm1_read_dst_param
	ldr	x1, [x20, #8]
Lloh31:
	adrp	x8, _WINED3D_IMMCONST_SCALAR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _WINED3D_IMMCONST_SCALAR@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x8, _WINED3D_DATA_UINT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _WINED3D_DATA_UINT@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh36:
	adrp	x9, _WINED3DSIH_DEFI@GOTPAGE
Lloh37:
	ldr	x9, [x9, _WINED3DSIH_DEFI@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.9:
	add	x3, x20, #24
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x23
	bl	_shader_sm1_read_dst_param
	ldr	x1, [x20, #8]
Lloh39:
	adrp	x8, _WINED3D_IMMCONST_VEC4@GOTPAGE
Lloh40:
	ldr	x8, [x8, _WINED3D_IMMCONST_VEC4@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
Lloh42:
	adrp	x8, _WINED3D_DATA_INT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _WINED3D_DATA_INT@GOTPAGEOFF]
LBB0_10:
	ldr	w3, [x8]
	add	x0, sp, #8
	bl	_shader_sm1_read_immconst
LBB0_11:
	mov	x0, x19
	bl	_shader_sm1_validate_instruction
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_15
; %bb.14:
	add	x3, x20, #24
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x23
	bl	_shader_sm1_read_dst_param
LBB0_15:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_17
; %bb.16:
	add	x3, x20, #16
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x22
	bl	_shader_sm1_read_src_param
LBB0_17:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_11
; %bb.18:
	mov	x21, #0
	mov	x22, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x20]
	add	x2, x8, x21
	add	x3, x9, x21
	add	x1, sp, #8
	mov	x0, x20
	bl	_shader_sm1_read_src_param
	add	x22, x22, #1
	ldr	w8, [x19, #20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lo	LBB0_19
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unrecognized opcode: token=0x%08x.\n"

	.comm	_WINED3DSIH_TABLE_SIZE,8,3      ; @WINED3DSIH_TABLE_SIZE
	.comm	_WINED3D_SM1_INSTRUCTION_FLAGS_MASK,4,2 ; @WINED3D_SM1_INSTRUCTION_FLAGS_MASK
	.comm	_WINED3D_SM1_INSTRUCTION_FLAGS_SHIFT,4,2 ; @WINED3D_SM1_INSTRUCTION_FLAGS_SHIFT
	.comm	_WINED3D_SM1_COISSUE,4,2        ; @WINED3D_SM1_COISSUE
	.comm	_WINED3D_SM1_INSTRUCTION_PREDICATED,4,2 ; @WINED3D_SM1_INSTRUCTION_PREDICATED
	.comm	_WINED3DSIH_DCL,8,3             ; @WINED3DSIH_DCL
	.comm	_WINED3DSIH_DEF,8,3             ; @WINED3DSIH_DEF
	.comm	_WINED3D_IMMCONST_VEC4,4,2      ; @WINED3D_IMMCONST_VEC4
	.comm	_WINED3D_DATA_FLOAT,4,2         ; @WINED3D_DATA_FLOAT
	.comm	_WINED3DSIH_DEFB,8,3            ; @WINED3DSIH_DEFB
	.comm	_WINED3D_IMMCONST_SCALAR,4,2    ; @WINED3D_IMMCONST_SCALAR
	.comm	_WINED3D_DATA_UINT,4,2          ; @WINED3D_DATA_UINT
	.comm	_WINED3DSIH_DEFI,8,3            ; @WINED3DSIH_DEFI
	.comm	_WINED3D_DATA_INT,4,2           ; @WINED3D_DATA_INT
	.no_dead_strip	_shader_sm1_read_instruction
.subsections_via_symbols
