	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_hw_mnxn
_shader_hw_mnxn:                        ## @shader_hw_mnxn
	.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	%r12
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	$0, -88(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	leaq	-128(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	32(%rbx), %eax
	movl	%eax, -96(%rbp)
	movabsq	$8589934593, %rax               ## imm = 0x200000001
	movq	%rax, -128(%rbp)
	leaq	-88(%rbp), %rax
	movq	%rax, -104(%rbp)
	leaq	-80(%rbp), %rax
	movq	%rax, -112(%rbp)
	movl	8(%rbx), %edi
	leal	-128(%rdi), %eax
	cmpl	$4, %eax
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_WINED3DSIH_DP4@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_debug_d3dshaderinstructionhandler
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_4:
	movq	_WINED3DSIH_DP4@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_WINED3DSIH_DP3@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	movl	$4, %r14d
	jmp	LBB0_10
LBB0_7:
	movq	_WINED3DSIH_DP3@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	movl	$3, %r14d
	jmp	LBB0_10
LBB0_9:
	movq	_WINED3DSIH_DP3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	movl	$2, %r14d
LBB0_10:
	movb	$1, %al
LBB0_11:
	movq	24(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -88(%rbp)
	movq	16(%rbx), %rcx
	movups	(%rcx), %xmm0
	movaps	%xmm0, -80(%rbp)
	movups	16(%rcx), %xmm0
	movaps	%xmm0, -64(%rbp)
	testb	%al, %al
	je	LBB0_14
## %bb.12:
	cmpl	$2, %r14d
	movl	$1, %r15d
	cmovael	%r14d, %r15d
	xorl	%ebx, %ebx
	movq	_WINED3DSP_WRITEMASK_0@GOTPCREL(%rip), %r12
	leaq	-128(%rbp), %r14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	movl	%eax, -88(%rbp)
	movq	%r14, %rdi
	callq	_shader_hw_map2gl
	movq	-64(%rbp), %rax
	incl	(%rax)
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_13
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$96, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_WINED3DSIH_DP4,8,3             ## @WINED3DSIH_DP4
	.comm	_WINED3DSIH_DP3,8,3             ## @WINED3DSIH_DP3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unhandled opcode %s.\n"

	.comm	_WINED3DSP_WRITEMASK_0,4,2      ## @WINED3DSP_WRITEMASK_0
	.no_dead_strip	_shader_hw_mnxn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function shader_hw_mnxn
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_shader_hw_mnxn:                        ; @shader_hw_mnxn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	xzr, [sp, #40]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	w8, [x19, #32]
	str	w8, [sp, #32]
	add	x8, sp, #40
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [sp]
	add	x9, sp, #48
	stp	x9, x8, [sp, #16]
	ldr	w0, [x19, #8]
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w20, #0
Lloh7:
	adrp	x8, _WINED3DSIH_DP4@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WINED3DSIH_DP4@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	bl	_debug_d3dshaderinstructionhandler
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	mov	w9, #0
	mov	w8, #0
	mov	w20, #1
	b	LBB0_11
LBB0_4:
	mov	w20, #0
Lloh11:
	adrp	x8, _WINED3DSIH_DP4@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WINED3DSIH_DP4@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	w20, #0
Lloh13:
	adrp	x8, _WINED3DSIH_DP3@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WINED3DSIH_DP3@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	str	w8, [sp, #8]
	mov	w8, #4
	b	LBB0_10
LBB0_7:
	mov	w20, #0
Lloh15:
	adrp	x8, _WINED3DSIH_DP3@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WINED3DSIH_DP3@GOTPAGEOFF]
LBB0_8:
	ldr	x8, [x8]
	str	w8, [sp, #8]
	mov	w8, #3
	b	LBB0_10
LBB0_9:
	mov	w20, #0
Lloh17:
	adrp	x8, _WINED3DSIH_DP3@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WINED3DSIH_DP3@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	w8, [sp, #8]
	mov	w8, #2
LBB0_10:
	mov	w9, #1
LBB0_11:
	ldp	x11, x10, [x19, #16]
	ldr	x10, [x10]
	str	x10, [sp, #40]
	ldp	q0, q1, [x11]
	stp	q0, q1, [sp, #48]
	cbz	w9, LBB0_16
; %bb.12:
	cmp	w8, #1
	csinc	w21, w8, wzr, hi
Lloh20:
	adrp	x19, _WINED3DSP_WRITEMASK_0@GOTPAGE
Lloh21:
	ldr	x19, [x19, _WINED3DSP_WRITEMASK_0@GOTPAGEOFF]
	ldr	w8, [x19]
	str	w8, [sp, #40]
	mov	x0, sp
	bl	_shader_hw_map2gl
	ldr	x8, [sp, #64]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	tbnz	w20, #0, LBB0_16
; %bb.13:
	ldr	w8, [x19]
	lsl	w8, w8, #1
	str	w8, [sp, #40]
	mov	x0, sp
	bl	_shader_hw_map2gl
	ldr	x8, [sp, #64]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	cmp	w21, #2
	b.eq	LBB0_16
; %bb.14:
	ldr	w8, [x19]
	lsl	w8, w8, #2
	str	w8, [sp, #40]
	mov	x0, sp
	bl	_shader_hw_map2gl
	ldr	x8, [sp, #64]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	cmp	w21, #3
	b.eq	LBB0_16
; %bb.15:
	ldr	w8, [x19]
	lsl	w8, w8, #3
	str	w8, [sp, #40]
	mov	x0, sp
	bl	_shader_hw_map2gl
	ldr	x8, [sp, #64]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_16:
	ldur	x8, [x29, #-40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_WINED3DSIH_DP4,8,3             ; @WINED3DSIH_DP4
	.comm	_WINED3DSIH_DP3,8,3             ; @WINED3DSIH_DP3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unhandled opcode %s.\n"

	.comm	_WINED3DSP_WRITEMASK_0,4,2      ; @WINED3DSP_WRITEMASK_0
	.no_dead_strip	_shader_hw_mnxn
.subsections_via_symbols
