	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arb_get_helper_value
_arb_get_helper_value:                  ## @arb_get_helper_value
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	_WINED3D_SHADER_TYPE_VERTEX@GOTPCREL(%rip), %rax
	movq	_WINED3D_SHADER_TYPE_PIXEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%edi, (%rax)
	je	LBB0_3
## %bb.1:
	cmpl	%edi, %ecx
	je	LBB0_3
## %bb.2:
	callq	_debug_shader_type
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_ERR
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	leal	-128(%rbx), %eax
	cmpl	%edi, %ecx
	jne	LBB0_7
## %bb.4:
	leaq	L_.str.14(%rip), %rsi
	cmpl	$6, %eax
	jae	LBB0_9
## %bb.5:
	movl	$61, %ecx
	btl	%eax, %ecx
	jae	LBB0_9
## %bb.6:
	cltq
	leaq	l_reltable.arb_get_helper_value(%rip), %rcx
	jmp	LBB0_11
LBB0_7:
	cmpl	$6, %eax
	jae	LBB0_8
## %bb.10:
	cltq
	leaq	l_reltable.arb_get_helper_value.22(%rip), %rcx
LBB0_11:
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.15(%rip), %rsi
LBB0_9:
	leaq	L_.str.13(%rip), %rdi
	movl	%ebx, %edx
	callq	_FIXME
	cmpl	$133, %ebx
	leaq	L_.str.19(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	cmpl	$128, %ebx
	leaq	L_.str.16(%rip), %rax
	cmovneq	%rcx, %rax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_SHADER_TYPE_VERTEX,4,2 ## @WINED3D_SHADER_TYPE_VERTEX
	.comm	_WINED3D_SHADER_TYPE_PIXEL,4,2  ## @WINED3D_SHADER_TYPE_PIXEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported shader type '%s'.\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"ps_helper_const.x"

L_.str.3:                               ## @.str.3
	.asciz	"ps_helper_const.y"

L_.str.4:                               ## @.str.4
	.asciz	"coefmul.x"

L_.str.5:                               ## @.str.5
	.asciz	"ps_helper_const.xxxy"

L_.str.6:                               ## @.str.6
	.asciz	"ps_helper_const.z"

L_.str.7:                               ## @.str.7
	.asciz	"helper_const.x"

L_.str.8:                               ## @.str.8
	.asciz	"helper_const.y"

L_.str.9:                               ## @.str.9
	.asciz	"helper_const.z"

L_.str.10:                              ## @.str.10
	.asciz	"helper_const.w"

L_.str.11:                              ## @.str.11
	.asciz	"helper_const.xxxy"

L_.str.12:                              ## @.str.12
	.asciz	"rel_addr_const.y"

L_.str.13:                              ## @.str.13
	.asciz	"Unmanaged %s shader helper constant requested: %u.\n"

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

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

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

L_.str.19:                              ## @.str.19
	.asciz	"{0.0, 0.0, 0.0, 1.0}"

	.no_dead_strip	_arb_get_helper_value
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.arb_get_helper_value
l_reltable.arb_get_helper_value:
	.long	L_.str.2-l_reltable.arb_get_helper_value
	.long	L_.str.2-l_reltable.arb_get_helper_value
	.long	L_.str.4-l_reltable.arb_get_helper_value
	.long	L_.str.3-l_reltable.arb_get_helper_value
	.long	L_.str.6-l_reltable.arb_get_helper_value
	.long	L_.str.5-l_reltable.arb_get_helper_value

	.p2align	2                               ## @reltable.arb_get_helper_value.22
l_reltable.arb_get_helper_value.22:
	.long	L_.str.7-l_reltable.arb_get_helper_value.22
	.long	L_.str.12-l_reltable.arb_get_helper_value.22
	.long	L_.str.9-l_reltable.arb_get_helper_value.22
	.long	L_.str.8-l_reltable.arb_get_helper_value.22
	.long	L_.str.10-l_reltable.arb_get_helper_value.22
	.long	L_.str.11-l_reltable.arb_get_helper_value.22

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arb_get_helper_value
_arb_get_helper_value:                  ; @arb_get_helper_value
	.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
Lloh0:
	adrp	x8, _WINED3D_SHADER_TYPE_VERTEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3D_SHADER_TYPE_VERTEX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WINED3D_SHADER_TYPE_PIXEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINED3D_SHADER_TYPE_PIXEL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x1
	sub	w8, w1, #128
	cmp	w9, w0
	b.ne	LBB0_6
; %bb.2:
	cmp	w8, #6
	b.hs	LBB0_4
; %bb.3:
	mov	w9, #61
	lsr	w9, w9, w8
	tbnz	w9, #0, LBB0_10
LBB0_4:
Lloh6:
	adrp	x1, l_.str.14@PAGE
Lloh7:
	add	x1, x1, l_.str.14@PAGEOFF
	b	LBB0_9
LBB0_5:
	bl	_debug_shader_type
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_6:
	cmp	w8, #6
	b.hs	LBB0_8
; %bb.7:
Lloh12:
	adrp	x9, l_switch.table.arb_get_helper_value.21@PAGE
Lloh13:
	add	x9, x9, l_switch.table.arb_get_helper_value.21@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh14:
	adrp	x1, l_.str.15@PAGE
Lloh15:
	add	x1, x1, l_.str.15@PAGEOFF
LBB0_9:
Lloh16:
	adrp	x0, l_.str.13@PAGE
Lloh17:
	add	x0, x0, l_.str.13@PAGEOFF
	mov	x2, x19
	bl	_FIXME
Lloh18:
	adrp	x8, l_.str.1@PAGE
Lloh19:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh20:
	adrp	x9, l_.str.19@PAGE
Lloh21:
	add	x9, x9, l_.str.19@PAGEOFF
	cmp	w19, #133
	csel	x8, x9, x8, eq
Lloh22:
	adrp	x9, l_.str.16@PAGE
Lloh23:
	add	x9, x9, l_.str.16@PAGEOFF
	cmp	w19, #128
	csel	x0, x9, x8, eq
	b	LBB0_12
LBB0_10:
Lloh24:
	adrp	x9, l_switch.table.arb_get_helper_value@PAGE
Lloh25:
	add	x9, x9, l_switch.table.arb_get_helper_value@PAGEOFF
LBB0_11:
	ldr	x0, [x9, w8, sxtw #3]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_SHADER_TYPE_VERTEX,4,2 ; @WINED3D_SHADER_TYPE_VERTEX
	.comm	_WINED3D_SHADER_TYPE_PIXEL,4,2  ; @WINED3D_SHADER_TYPE_PIXEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported shader type '%s'.\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"ps_helper_const.x"

l_.str.3:                               ; @.str.3
	.asciz	"ps_helper_const.y"

l_.str.4:                               ; @.str.4
	.asciz	"coefmul.x"

l_.str.5:                               ; @.str.5
	.asciz	"ps_helper_const.xxxy"

l_.str.6:                               ; @.str.6
	.asciz	"ps_helper_const.z"

l_.str.7:                               ; @.str.7
	.asciz	"helper_const.x"

l_.str.8:                               ; @.str.8
	.asciz	"helper_const.y"

l_.str.9:                               ; @.str.9
	.asciz	"helper_const.z"

l_.str.10:                              ; @.str.10
	.asciz	"helper_const.w"

l_.str.11:                              ; @.str.11
	.asciz	"helper_const.xxxy"

l_.str.12:                              ; @.str.12
	.asciz	"rel_addr_const.y"

l_.str.13:                              ; @.str.13
	.asciz	"Unmanaged %s shader helper constant requested: %u.\n"

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

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

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

l_.str.19:                              ; @.str.19
	.asciz	"{0.0, 0.0, 0.0, 1.0}"

	.no_dead_strip	_arb_get_helper_value
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.arb_get_helper_value
l_switch.table.arb_get_helper_value:
	.quad	l_.str.2
	.quad	l_.str.2
	.quad	l_.str.4
	.quad	l_.str.3
	.quad	l_.str.6
	.quad	l_.str.5

	.p2align	3                               ; @switch.table.arb_get_helper_value.21
l_switch.table.arb_get_helper_value.21:
	.quad	l_.str.7
	.quad	l_.str.12
	.quad	l_.str.9
	.quad	l_.str.8
	.quad	l_.str.10
	.quad	l_.str.11

.subsections_via_symbols
