	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_get_param
_shader_get_param:                      ## @shader_get_param
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %eax
	movl	%eax, (%rdx)
	movq	_WINED3D_SM1_ADDRESS_MODE_RELATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r8
	cmpl	$1, (%rdi)
	jg	LBB0_4
## %bb.3:
	movq	_WINED3DSPR_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_WINED3D_SM1_REGISTER_TYPE_SHIFT2@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %esi
	shll	%cl, %esi
	movq	_WINED3D_SM1_REGISTER_TYPE_MASK2@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	movq	_WINED3D_SM1_REGISTER_TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_WINED3D_SM1_REGISTER_TYPE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_WINED3D_SM1_SWIZZLE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_WINED3DSP_NOSWIZZLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shll	%cl, %edx
	orl	%esi, %eax
	orl	%eax, %edx
	orl	$-2147483648, %edx              ## imm = 0x80000000
	movl	$1, %eax
	jmp	LBB0_5
LBB0_1:
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	4(%rsi), %edx
	movl	$2, %eax
LBB0_5:
	movl	%edx, (%r8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_SM1_ADDRESS_MODE_RELATIVE,4,2 ## @WINED3D_SM1_ADDRESS_MODE_RELATIVE
	.comm	_WINED3DSPR_ADDR,4,2            ## @WINED3DSPR_ADDR
	.comm	_WINED3D_SM1_REGISTER_TYPE_SHIFT2,4,2 ## @WINED3D_SM1_REGISTER_TYPE_SHIFT2
	.comm	_WINED3D_SM1_REGISTER_TYPE_MASK2,4,2 ## @WINED3D_SM1_REGISTER_TYPE_MASK2
	.comm	_WINED3D_SM1_REGISTER_TYPE_SHIFT,4,2 ## @WINED3D_SM1_REGISTER_TYPE_SHIFT
	.comm	_WINED3D_SM1_REGISTER_TYPE_MASK,4,2 ## @WINED3D_SM1_REGISTER_TYPE_MASK
	.comm	_WINED3DSP_NOSWIZZLE,4,2        ## @WINED3DSP_NOSWIZZLE
	.comm	_WINED3D_SM1_SWIZZLE_SHIFT,4,2  ## @WINED3D_SM1_SWIZZLE_SHIFT
	.no_dead_strip	_shader_get_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_get_param
_shader_get_param:                      ; @shader_get_param
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
	str	w8, [x2]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _WINED3D_SM1_ADDRESS_MODE_RELATIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3D_SM1_ADDRESS_MODE_RELATIVE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, #1
	b.gt	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _WINED3DSPR_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WINED3DSPR_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _WINED3D_SM1_REGISTER_TYPE_SHIFT2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WINED3D_SM1_REGISTER_TYPE_SHIFT2@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w9, w8, w9
Lloh9:
	adrp	x10, _WINED3D_SM1_REGISTER_TYPE_MASK2@GOTPAGE
Lloh10:
	ldr	x10, [x10, _WINED3D_SM1_REGISTER_TYPE_MASK2@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _WINED3D_SM1_REGISTER_TYPE_SHIFT@GOTPAGE
Lloh13:
	ldr	x11, [x11, _WINED3D_SM1_REGISTER_TYPE_SHIFT@GOTPAGEOFF]
	and	w9, w9, w10
Lloh14:
	ldr	w10, [x11]
	lsl	w8, w8, w10
Lloh15:
	adrp	x10, _WINED3D_SM1_REGISTER_TYPE_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _WINED3D_SM1_REGISTER_TYPE_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	and	w8, w8, w10
Lloh18:
	adrp	x10, _WINED3DSP_NOSWIZZLE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _WINED3DSP_NOSWIZZLE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	adrp	x11, _WINED3D_SM1_SWIZZLE_SHIFT@GOTPAGE
Lloh22:
	ldr	x11, [x11, _WINED3D_SM1_SWIZZLE_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w8, w8, #0x80000000
	mov	w0, #1
	str	w8, [x3]
	ret
LBB0_3:
	mov	w0, #1
	ret
LBB0_4:
	ldr	w8, [x1, #4]
	mov	w0, #2
	str	w8, [x3]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_SM1_ADDRESS_MODE_RELATIVE,4,2 ; @WINED3D_SM1_ADDRESS_MODE_RELATIVE
	.comm	_WINED3DSPR_ADDR,4,2            ; @WINED3DSPR_ADDR
	.comm	_WINED3D_SM1_REGISTER_TYPE_SHIFT2,4,2 ; @WINED3D_SM1_REGISTER_TYPE_SHIFT2
	.comm	_WINED3D_SM1_REGISTER_TYPE_MASK2,4,2 ; @WINED3D_SM1_REGISTER_TYPE_MASK2
	.comm	_WINED3D_SM1_REGISTER_TYPE_SHIFT,4,2 ; @WINED3D_SM1_REGISTER_TYPE_SHIFT
	.comm	_WINED3D_SM1_REGISTER_TYPE_MASK,4,2 ; @WINED3D_SM1_REGISTER_TYPE_MASK
	.comm	_WINED3DSP_NOSWIZZLE,4,2        ; @WINED3DSP_NOSWIZZLE
	.comm	_WINED3D_SM1_SWIZZLE_SHIFT,4,2  ; @WINED3D_SM1_SWIZZLE_SHIFT
	.no_dead_strip	_shader_get_param
.subsections_via_symbols
