	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_hw_sgn
_shader_hw_sgn:                         ## @shader_hw_sgn
	.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	%rbx
	subq	$136, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	16(%rdi), %rax
	movq	8(%rax), %r14
	movq	(%rax), %r15
	movq	(%rdi), %rsi
	leaq	-96(%rbp), %rdx
	callq	_shader_arb_get_dst_param
	movq	8(%rbx), %rsi
	leaq	-160(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_shader_arb_get_src_param
	movq	(%r15), %rax
	movq	_NV2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	_WINED3DSPDM_SATURATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	leaq	-96(%rbp), %rdx
	leaq	-160(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rcx, %r8
	jmp	LBB0_4
LBB0_1:
	movq	%rbx, %rdi
	callq	_shader_arb_get_modifier
	movslq	%eax, %rdx
	leaq	L_.str(%rip), %rsi
	leaq	-96(%rbp), %rcx
	leaq	-160(%rbp), %r8
	movq	%r14, %rdi
LBB0_4:
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$136, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	leaq	-160(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	leaq	-96(%rbp), %r15
	leaq	-160(%rbp), %rbx
	movq	%r14, %rdi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.4(%rip), %rsi
	leaq	-160(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.3(%rip), %rsi
	leaq	-96(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.6(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	movq	%r15, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_shader_addline
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NV2,8,3                        ## @NV2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSG%s %s, %s;\n"

	.comm	_WINED3DSPDM_SATURATE,4,2       ## @WINED3DSPDM_SATURATE
L_.str.1:                               ## @.str.1
	.asciz	"SLT %s, -%s, %s;\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"SLT %s,  %s, -%s;\n"

L_.str.4:                               ## @.str.4
	.asciz	"SLT TA, -%s, %s;\n"

L_.str.5:                               ## @.str.5
	.asciz	"ADD %s, %s, -TA;\n"

L_.str.6:                               ## @.str.6
	.asciz	"ADD %s, TA, -%s;\n"

	.no_dead_strip	_shader_hw_sgn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_hw_sgn
_shader_hw_sgn:                         ; @shader_hw_sgn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x0, #16]
	ldp	x22, x19, [x8]
	ldr	x1, [x0]
	add	x2, sp, #70
	bl	_shader_arb_get_dst_param
	ldr	x1, [x20, #8]
	add	x21, sp, #20
	add	x3, sp, #20
	mov	x0, x20
	mov	w2, #0
	bl	_shader_arb_get_src_param
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _NV2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NV2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.1:
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _WINED3DSPDM_SATURATE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WINED3DSPDM_SATURATE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	add	x8, sp, #20
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #70
	add	x3, sp, #20
	b	LBB0_9
LBB0_3:
	mov	x0, x20
	bl	_shader_arb_get_modifier
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
	str	x21, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x20, sp, #20
	add	x0, sp, #20
	bl	_strstr
	cbz	x0, LBB0_6
; %bb.5:
	str	x20, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #70
	add	x3, sp, #20
	mov	x0, x19
	bl	_shader_addline
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #20
	add	x3, sp, #20
	mov	x0, x19
	bl	_shader_addline
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #20
	add	x3, sp, #20
	mov	x0, x19
	bl	_shader_addline
	str	x20, [sp]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #70
	add	x3, sp, #20
	mov	x0, x19
	bl	_shader_addline
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_7:
	add	x2, sp, #70
LBB0_8:
	add	x3, sp, #70
LBB0_9:
	mov	x0, x19
	bl	_shader_addline
	ldur	x8, [x29, #-40]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_NV2,8,3                        ; @NV2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSG%s %s, %s;\n"

	.comm	_WINED3DSPDM_SATURATE,4,2       ; @WINED3DSPDM_SATURATE
l_.str.1:                               ; @.str.1
	.asciz	"SLT %s, -%s, %s;\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"SLT %s,  %s, -%s;\n"

l_.str.4:                               ; @.str.4
	.asciz	"SLT TA, -%s, %s;\n"

l_.str.5:                               ; @.str.5
	.asciz	"ADD %s, %s, -TA;\n"

l_.str.6:                               ; @.str.6
	.asciz	"ADD %s, TA, -%s;\n"

	.no_dead_strip	_shader_hw_sgn
.subsections_via_symbols
