	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_hw_map2gl
_shader_hw_map2gl:                      ## @shader_hw_map2gl
	.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	$456, %rsp                      ## imm = 0x1C8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -496(%rbp)                ## 8-byte Spill
	movq	16(%rdi), %r14
	movl	(%rdi), %edi
	leal	-128(%rdi), %eax
	cmpl	$19, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_reltable.shader_hw_map2gl(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_debug_d3dshaderinstructionhandler
	leaq	L_.str.20(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
	leaq	L_.str.19(%rip), %rax
LBB0_3:
	movq	%rax, -488(%rbp)                ## 8-byte Spill
	movb	$0, -304(%rbp)
	leaq	-368(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_shader_arb_get_dst_param
	cmpl	$0, 4(%rbx)
	je	LBB0_6
## %bb.4:
	xorl	%r12d, %r12d
	leaq	-304(%rbp), %r13
	leaq	-480(%rbp), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	leaq	L_.str.21(%rip), %rsi
	callq	_strcat
	movq	8(%rbx), %rsi
	addq	%r12, %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	_shader_arb_get_src_param
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_strcat
	incq	%r15
	movl	4(%rbx), %eax
	addq	$4, %r12
	cmpq	%rax, %r15
	jb	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	callq	_shader_arb_get_modifier
	leaq	L_.str.22(%rip), %rsi
	leaq	-368(%rbp), %r8
	leaq	-304(%rbp), %r9
	movq	-496(%rbp), %rdi                ## 8-byte Reload
	movq	-488(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, %ecx
	callq	_shader_addline
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$456, %rsp                      ## imm = 0x1C8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ABS"

L_.str.1:                               ## @.str.1
	.asciz	"ADD"

L_.str.2:                               ## @.str.2
	.asciz	"XPD"

L_.str.3:                               ## @.str.3
	.asciz	"DP3"

L_.str.4:                               ## @.str.4
	.asciz	"DP4"

L_.str.5:                               ## @.str.5
	.asciz	"DST"

L_.str.6:                               ## @.str.6
	.asciz	"FRC"

L_.str.7:                               ## @.str.7
	.asciz	"LIT"

L_.str.8:                               ## @.str.8
	.asciz	"LRP"

L_.str.9:                               ## @.str.9
	.asciz	"MAD"

L_.str.10:                              ## @.str.10
	.asciz	"MAX"

L_.str.11:                              ## @.str.11
	.asciz	"MIN"

L_.str.12:                              ## @.str.12
	.asciz	"MOV"

L_.str.13:                              ## @.str.13
	.asciz	"MUL"

L_.str.14:                              ## @.str.14
	.asciz	"SGE"

L_.str.15:                              ## @.str.15
	.asciz	"SLT"

L_.str.16:                              ## @.str.16
	.asciz	"SUB"

L_.str.17:                              ## @.str.17
	.asciz	"ARR"

L_.str.18:                              ## @.str.18
	.asciz	"DDX"

L_.str.19:                              ## @.str.19
	.space	1

L_.str.20:                              ## @.str.20
	.asciz	"Unhandled opcode %s.\n"

L_.str.21:                              ## @.str.21
	.asciz	", "

L_.str.22:                              ## @.str.22
	.asciz	"%s%s %s%s;\n"

	.no_dead_strip	_shader_hw_map2gl
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.shader_hw_map2gl
l_reltable.shader_hw_map2gl:
	.long	L_.str.16-l_reltable.shader_hw_map2gl
	.long	L_.str.15-l_reltable.shader_hw_map2gl
	.long	L_.str.14-l_reltable.shader_hw_map2gl
	.long	L_.str.13-l_reltable.shader_hw_map2gl
	.long	L_.str.17-l_reltable.shader_hw_map2gl
	.long	L_.str.12-l_reltable.shader_hw_map2gl
	.long	L_.str.11-l_reltable.shader_hw_map2gl
	.long	L_.str.10-l_reltable.shader_hw_map2gl
	.long	L_.str.9-l_reltable.shader_hw_map2gl
	.long	L_.str.8-l_reltable.shader_hw_map2gl
	.long	L_.str.7-l_reltable.shader_hw_map2gl
	.long	L_.str.6-l_reltable.shader_hw_map2gl
	.long	L_.str.18-l_reltable.shader_hw_map2gl
	.long	L_.str.5-l_reltable.shader_hw_map2gl
	.long	L_.str.4-l_reltable.shader_hw_map2gl
	.long	L_.str.3-l_reltable.shader_hw_map2gl
	.long	L_.str.2-l_reltable.shader_hw_map2gl
	.long	L_.str.1-l_reltable.shader_hw_map2gl
	.long	L_.str-l_reltable.shader_hw_map2gl

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_hw_map2gl
_shader_hw_map2gl:                      ; @shader_hw_map2gl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #496
	.cfi_def_cfa_offset 496
	stp	x28, x27, [sp, #416]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #432]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #448]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #464]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #480]            ; 16-byte Folded Spill
	add	x29, sp, #480
	.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 w27, -72
	.cfi_offset w28, -80
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldp	x22, x8, [x0, #16]
	ldr	x19, [x8]
	ldr	w0, [x0]
	sub	w8, w0, #128
	cmp	w8, #19
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, l_switch.table.shader_hw_map2gl@PAGE
Lloh4:
	add	x9, x9, l_switch.table.shader_hw_map2gl@PAGEOFF
	ldr	x21, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
	bl	_debug_d3dshaderinstructionhandler
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str.20@PAGE
Lloh6:
	add	x0, x0, l_.str.20@PAGEOFF
	bl	_FIXME
Lloh7:
	adrp	x21, l_.str.19@PAGE
Lloh8:
	add	x21, x21, l_.str.19@PAGEOFF
LBB0_3:
	strb	wzr, [sp, #152]
	add	x2, sp, #102
	mov	x0, x20
	mov	x1, x22
	bl	_shader_arb_get_dst_param
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_6
; %bb.4:
	mov	x24, #0
	mov	x22, #0
Lloh9:
	adrp	x23, l_.str.21@PAGE
Lloh10:
	add	x23, x23, l_.str.21@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #152
	mov	x1, x23
	bl	_strcat
	ldr	x8, [x20, #8]
	add	x1, x8, x24
	add	x3, sp, #2
	mov	x0, x20
	mov	x2, x22
	bl	_shader_arb_get_src_param
	add	x0, sp, #152
	add	x1, sp, #2
	bl	_strcat
	add	x22, x22, #1
	ldr	w8, [x20, #4]
	add	x24, x24, #4
	cmp	x22, x8
	b.lo	LBB0_5
LBB0_6:
	mov	x0, x20
	bl	_shader_arb_get_modifier
	mov	x3, x0
Lloh11:
	adrp	x1, l_.str.22@PAGE
Lloh12:
	add	x1, x1, l_.str.22@PAGEOFF
	add	x4, sp, #102
	add	x5, sp, #152
	mov	x0, x19
	mov	x2, x21
	bl	_shader_addline
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #480]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #464]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #448]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #432]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #416]            ; 16-byte Folded Reload
	add	sp, sp, #496
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ABS"

l_.str.1:                               ; @.str.1
	.asciz	"ADD"

l_.str.2:                               ; @.str.2
	.asciz	"XPD"

l_.str.3:                               ; @.str.3
	.asciz	"DP3"

l_.str.4:                               ; @.str.4
	.asciz	"DP4"

l_.str.5:                               ; @.str.5
	.asciz	"DST"

l_.str.6:                               ; @.str.6
	.asciz	"FRC"

l_.str.7:                               ; @.str.7
	.asciz	"LIT"

l_.str.8:                               ; @.str.8
	.asciz	"LRP"

l_.str.9:                               ; @.str.9
	.asciz	"MAD"

l_.str.10:                              ; @.str.10
	.asciz	"MAX"

l_.str.11:                              ; @.str.11
	.asciz	"MIN"

l_.str.12:                              ; @.str.12
	.asciz	"MOV"

l_.str.13:                              ; @.str.13
	.asciz	"MUL"

l_.str.14:                              ; @.str.14
	.asciz	"SGE"

l_.str.15:                              ; @.str.15
	.asciz	"SLT"

l_.str.16:                              ; @.str.16
	.asciz	"SUB"

l_.str.17:                              ; @.str.17
	.asciz	"ARR"

l_.str.18:                              ; @.str.18
	.asciz	"DDX"

l_.str.19:                              ; @.str.19
	.space	1

l_.str.20:                              ; @.str.20
	.asciz	"Unhandled opcode %s.\n"

l_.str.21:                              ; @.str.21
	.asciz	", "

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

	.no_dead_strip	_shader_hw_map2gl
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.shader_hw_map2gl
l_switch.table.shader_hw_map2gl:
	.quad	l_.str.16
	.quad	l_.str.15
	.quad	l_.str.14
	.quad	l_.str.13
	.quad	l_.str.17
	.quad	l_.str.12
	.quad	l_.str.11
	.quad	l_.str.10
	.quad	l_.str.9
	.quad	l_.str.8
	.quad	l_.str.7
	.quad	l_.str.6
	.quad	l_.str.18
	.quad	l_.str.5
	.quad	l_.str.4
	.quad	l_.str.3
	.quad	l_.str.2
	.quad	l_.str.1
	.quad	l_.str

.subsections_via_symbols
