	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_cs_emit_draw_indirect  ## -- Begin function wined3d_cs_emit_draw_indirect
	.p2align	4, 0x90
_wined3d_cs_emit_draw_indirect:         ## @wined3d_cs_emit_draw_indirect
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r14
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %r13
	movq	8(%r13), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_WINED3D_CS_QUEUE_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	$48, %esi
	callq	*8(%rax)
	movq	_WINED3D_CS_OP_DRAW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 44(%rax)
	movl	%r12d, 40(%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movq	%r14, 24(%rax)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 16(%rax)
	movl	%r15d, 8(%rax)
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_acquire_graphics_pipeline_resources
	movq	%r14, %rdi
	callq	_wined3d_resource_acquire
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_WINED3D_CS_QUEUE_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_CS_QUEUE_DEFAULT,4,2   ## @WINED3D_CS_QUEUE_DEFAULT
	.comm	_WINED3D_CS_OP_DRAW,4,2         ## @WINED3D_CS_OP_DRAW
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_cs_emit_draw_indirect  ; -- Begin function wined3d_cs_emit_draw_indirect
	.p2align	2
_wined3d_cs_emit_draw_indirect:         ; @wined3d_cs_emit_draw_indirect
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldp	x8, x25, [x0]
	ldr	x26, [x25, #8]
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x27, _WINED3D_CS_QUEUE_DEFAULT@GOTPAGE
Lloh1:
	ldr	x27, [x27, _WINED3D_CS_QUEUE_DEFAULT@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	w1, #48
	blr	x8
Lloh2:
	adrp	x8, _WINED3D_CS_OP_DRAW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WINED3D_CS_OP_DRAW@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	stp	w23, w8, [x0, #40]
Lloh5:
	adrp	x8, _TRUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	str	w22, [x0]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	str	x21, [x0, #24]
	str	w20, [x0, #16]
	str	w19, [x0, #8]
	mov	x0, x25
	mov	x1, x19
	mov	x2, x26
	bl	_acquire_graphics_pipeline_resources
	mov	x0, x21
	bl	_wined3d_resource_acquire
	ldr	x8, [x24]
	ldr	x2, [x8]
	ldr	w1, [x27]
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	br	x2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_CS_QUEUE_DEFAULT,4,2   ; @WINED3D_CS_QUEUE_DEFAULT
	.comm	_WINED3D_CS_OP_DRAW,4,2         ; @WINED3D_CS_OP_DRAW
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
