	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_emit
_shader_glsl_emit:                      ## @shader_glsl_emit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_WINED3DSIH_EMIT@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
LBB0_2:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_shader_addline
	movq	8(%rbx), %rax
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	movq	_ARB_CLIP_CONTROL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpl	$0, (%rcx,%rdx,4)
	je	LBB0_3
## %bb.4:
	testl	%r14d, %r14d
	je	LBB0_5
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_FIXME                          ## TAILCALL
LBB0_3:
	movl	(%rax), %edi
	callq	_shader_glsl_fixup_position
	testl	%r14d, %r14d
	jne	LBB0_6
LBB0_5:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_shader_addline                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3DSIH_EMIT,8,3            ## @WINED3DSIH_EMIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setup_gs_output(gs_out);\n"

	.comm	_ARB_CLIP_CONTROL,8,3           ## @ARB_CLIP_CONTROL
L_.str.1:                               ## @.str.1
	.asciz	"EmitVertex();\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unhandled primitive stream %u.\n"

	.no_dead_strip	_shader_glsl_emit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_emit
_shader_glsl_emit:                      ; @shader_glsl_emit
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _WINED3DSIH_EMIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3DSIH_EMIT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w20, [x8]
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_shader_addline
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _ARB_CLIP_CONTROL@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ARB_CLIP_CONTROL@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	ldr	w9, [x9, x10, lsl #2]
	cbz	w9, LBB0_6
; %bb.4:
	cbz	w20, LBB0_7
LBB0_5:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_FIXME
LBB0_6:
	ldr	w0, [x8]
	bl	_shader_glsl_fixup_position
	cbnz	w20, LBB0_5
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_shader_addline
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3DSIH_EMIT,8,3            ; @WINED3DSIH_EMIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setup_gs_output(gs_out);\n"

	.comm	_ARB_CLIP_CONTROL,8,3           ; @ARB_CLIP_CONTROL
l_.str.1:                               ; @.str.1
	.asciz	"EmitVertex();\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unhandled primitive stream %u.\n"

	.no_dead_strip	_shader_glsl_emit
.subsections_via_symbols
