	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_get_opcode
_shader_get_opcode:                     ## @shader_get_opcode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %esi
	movl	12(%rdi), %edi
	callq	_WINED3D_SHADER_VERSION
	movq	(%rbx), %rdx
	movq	_WINED3DSIH_TABLE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movq	_WINED3D_SM1_OPCODE_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	andq	%r14, %rsi
	cmpq	%r8, (%rdx)
	jne	LBB0_1
LBB0_7:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_FIXME
	xorl	%r9d, %r9d
LBB0_8:
	movq	%r9, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	xorl	%ecx, %ecx
	movq	%rdx, %r9
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ecx
	movq	%rcx, %rdi
	shlq	$5, %rdi
	leaq	(%rdx,%rdi), %r9
	cmpq	%r8, (%rdx,%rdi)
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rbx
	shlq	$5, %rbx
	cmpq	8(%rdx,%rbx), %rsi
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	16(%rdx,%rbx), %rax
	jl	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rdx,%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rbx, %rax
	jg	LBB0_6
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3DSIH_TABLE_SIZE,8,3      ## @WINED3DSIH_TABLE_SIZE
	.comm	_WINED3D_SM1_OPCODE_MASK,8,3    ## @WINED3D_SM1_OPCODE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported opcode %#x, token 0x%08x, shader version %#x.\n"

	.no_dead_strip	_shader_get_opcode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_get_opcode
_shader_get_opcode:                     ; @shader_get_opcode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #12]
	ldr	w1, [x20, #8]
	bl	_WINED3D_SHADER_VERSION
	mov	x3, x0
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _WINED3DSIH_TABLE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3DSIH_TABLE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x10, [x8]
Lloh3:
	adrp	x11, _WINED3D_SM1_OPCODE_MASK@GOTPAGE
Lloh4:
	ldr	x11, [x11, _WINED3D_SM1_OPCODE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	and	x1, x11, x19
	cmp	x10, x9
	b.ne	LBB0_3
LBB0_1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_FIXME
	mov	x0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x10, #0
	mov	x0, x8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w10, w10, #1
	add	x0, x8, x10, lsl #5
	ldr	x11, [x0]
	cmp	x11, x9
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x8, x10, lsl #5
	ldr	x12, [x11, #8]
	cmp	x1, x12
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x11, #16]
	cmp	x3, x11
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x11, x8, x10, lsl #5
	ldr	x11, [x11, #24]
	cmp	x11, #0
	ccmp	x3, x11, #4, ne
	b.gt	LBB0_4
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3DSIH_TABLE_SIZE,8,3      ; @WINED3DSIH_TABLE_SIZE
	.comm	_WINED3D_SM1_OPCODE_MASK,8,3    ; @WINED3D_SM1_OPCODE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported opcode %#x, token 0x%08x, shader version %#x.\n"

	.no_dead_strip	_shader_get_opcode
.subsections_via_symbols
