	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_sm1_read_comment
_shader_sm1_read_comment:               ## @shader_sm1_read_comment
	.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
	movq	(%rdi), %r15
	movq	(%r15), %rax
	movq	_WINED3D_SM1_OPCODE_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andq	%rax, %rcx
	movq	_WINED3D_SM1_OP_COMMENT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_19
## %bb.1:
	movq	%rdi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	je	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	shrq	$29, %r14
	movq	%r13, %rdi
	movl	%r14d, %esi
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_debugstr_an
	movl	%eax, %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %r15
	movq	(%r15), %rax
	movq	_WINED3D_SM1_OPCODE_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andq	%rax, %rcx
	movq	_WINED3D_SM1_OP_COMMENT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_19
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	_WINED3D_SM1_COMMENT_SIZE_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	_WINED3D_SM1_COMMENT_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarq	%cl, %rax
	leaq	8(%r15), %r13
	movq	%rax, %r14
	shlq	$32, %r14
	movq	%r14, %rbx
	sarq	$29, %rbx
	leaq	(%r15,%rbx), %rcx
	addq	$8, %rcx
	movq	%rcx, (%r12)
	cmpl	$2, %eax
	jl	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %r12
	movl	$84, %edi
	movl	$69, %esi
	movl	$88, %edx
	movl	$84, %ecx
	callq	_WINEMAKEFOURCC
	cmpq	%rax, %r12
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%rbx, %r13
	addq	$16, %r15
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	cmpq	%r15, %r13
	je	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rbx
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%rbx
	cmpq	%r13, %rbx
	je	LBB0_13
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$10, (%rbx)
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%ebx, %esi
	subl	%r15d, %esi
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	xorl	%eax, %eax
	cmpb	$13, -1(%rbx)
	sete	%al
	subl	%eax, %esi
	jmp	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	xorl	%esi, %esi
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%r15, %rdi
	callq	_debugstr_an
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	incq	%rbx
	movq	%rbx, %r15
	cmpq	%r13, %rbx
	jne	LBB0_6
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r13, %r15
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	subl	%r15d, %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	jmp	LBB0_17
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_SM1_OPCODE_MASK,8,3    ## @WINED3D_SM1_OPCODE_MASK
	.comm	_WINED3D_SM1_OP_COMMENT,8,3     ## @WINED3D_SM1_OP_COMMENT
	.comm	_WINED3D_SM1_COMMENT_SIZE_MASK,8,3 ## @WINED3D_SM1_COMMENT_SIZE_MASK
	.comm	_WINED3D_SM1_COMMENT_SIZE_SHIFT,8,3 ## @WINED3D_SM1_COMMENT_SIZE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"// TEXT\n"

L_.str.1:                               ## @.str.1
	.asciz	"// %s\n"

	.no_dead_strip	_shader_sm1_read_comment
.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_comment
_shader_sm1_read_comment:               ; @shader_sm1_read_comment
	.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	x28, [x0]
	ldr	x8, [x28]
Lloh0:
	adrp	x23, _WINED3D_SM1_OPCODE_MASK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WINED3D_SM1_OPCODE_MASK@GOTPAGEOFF]
	ldr	x9, [x23]
	and	x9, x9, x8
Lloh2:
	adrp	x24, _WINED3D_SM1_OP_COMMENT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _WINED3D_SM1_OP_COMMENT@GOTPAGEOFF]
	ldr	x10, [x24]
	cmp	x9, x10
	b.ne	LBB0_18
; %bb.1:
	mov	x19, x0
Lloh4:
	adrp	x25, _WINED3D_SM1_COMMENT_SIZE_MASK@GOTPAGE
Lloh5:
	ldr	x25, [x25, _WINED3D_SM1_COMMENT_SIZE_MASK@GOTPAGEOFF]
Lloh6:
	adrp	x26, _WINED3D_SM1_COMMENT_SIZE_SHIFT@GOTPAGE
Lloh7:
	ldr	x26, [x26, _WINED3D_SM1_COMMENT_SIZE_SHIFT@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	cbz	w8, LBB0_18
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	lsr	x1, x27, #29
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_debugstr_an
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x21
	bl	_TRACE
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x28, [x19]
	ldr	x8, [x28]
	ldr	x9, [x23]
	and	x9, x9, x8
	ldr	x10, [x24]
	cmp	x9, x10
	b.ne	LBB0_18
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x9, [x25]
	and	x8, x9, x8
	ldr	x9, [x26]
	asr	x8, x8, x9
	add	x22, x28, #8
	lsl	x27, x8, #32
	add	x9, x22, x27, asr #29
	str	x9, [x19]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x20, [x22]
	mov	w0, #84
	mov	w1, #69
	mov	w2, #88
	mov	w3, #84
	bl	_WINEMAKEFOURCC
	cmp	x20, x0
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x22, x27, asr #29
	add	x22, x28, #16
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	cmp	x27, x22
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x28, x22
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x28, x28, #1
	cmp	x28, x27
	b.eq	LBB0_16
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x28]
	cmp	w8, #10
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	subs	w8, w28, w22
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	ldurb	w9, [x28, #-1]
	cmp	w9, #13
	cset	w9, eq
	sub	w1, w8, w9
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	w1, #0
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x22
	bl	_debugstr_an
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x21
	bl	_TRACE
	add	x28, x28, #1
	mov	x22, x28
	cmp	x28, x27
	b.ne	LBB0_11
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x22, x27
	b.eq	LBB0_5
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w1, w27, w22
	mov	x0, x22
	b	LBB0_4
LBB0_18:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_SM1_OPCODE_MASK,8,3    ; @WINED3D_SM1_OPCODE_MASK
	.comm	_WINED3D_SM1_OP_COMMENT,8,3     ; @WINED3D_SM1_OP_COMMENT
	.comm	_WINED3D_SM1_COMMENT_SIZE_MASK,8,3 ; @WINED3D_SM1_COMMENT_SIZE_MASK
	.comm	_WINED3D_SM1_COMMENT_SIZE_SHIFT,8,3 ; @WINED3D_SM1_COMMENT_SIZE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"// TEXT\n"

l_.str.1:                               ; @.str.1
	.asciz	"// %s\n"

	.no_dead_strip	_shader_sm1_read_comment
.subsections_via_symbols
