	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function context_bind_unordered_access_views
_context_bind_unordered_access_views:   ## @context_bind_unordered_access_views
	.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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.1:
	movq	_MAX_UNORDERED_ACCESS_VIEWS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	je	LBB0_15
## %bb.2:
	movq	%rdx, %r12
	xorl	%ebx, %ebx
	movq	_GL_READ_WRITE@GOTPCREL(%rip), %r15
	jmp	LBB0_3
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_FIXME
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r15), %r9d
	movq	_GL_R8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_glBindImageTexture
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %edi
	callq	_GL_EXTCALL
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movl	(%r13), %eax
	cmpq	%rax, %rbx
	jae	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %r14
	testq	%r14, %r14
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_WARN
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r14), %rdi
	movq	(%rdi), %rax
	movq	_WINED3D_RTYPE_BUFFER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	callq	_texture_from_resource
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_wined3d_texture_get_texture_name
	movq	%rax, %rsi
	movq	16(%r14), %rdx
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r15), %r9d
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movl	%ebx, %edi
	xorl	%r8d, %r8d
	callq	_glBindImageTexture
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_GL_ATOMIC_COUNTER_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_glBindBufferBase
	jmp	LBB0_13
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_checkGLcall                    ## TAILCALL
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_UNORDERED_ACCESS_VIEWS,4,2 ## @MAX_UNORDERED_ACCESS_VIEWS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No unordered access view bound at index %u.\n"

	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.comm	_GL_READ_WRITE,4,2              ## @GL_READ_WRITE
	.comm	_GL_R8,4,2                      ## @GL_R8
	.comm	_WINED3D_RTYPE_BUFFER,8,3       ## @WINED3D_RTYPE_BUFFER
	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported buffer unordered access view.\n"

	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
	.comm	_GL_ATOMIC_COUNTER_BUFFER,4,2   ## @GL_ATOMIC_COUNTER_BUFFER
L_.str.2:                               ## @.str.2
	.asciz	"Bind unordered access views"

	.no_dead_strip	_context_bind_unordered_access_views
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function context_bind_unordered_access_views
_context_bind_unordered_access_views:   ; @context_bind_unordered_access_views
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_17
; %bb.1:
	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
Lloh0:
	adrp	x25, _MAX_UNORDERED_ACCESS_VIEWS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MAX_UNORDERED_ACCESS_VIEWS@GOTPAGEOFF]
	ldr	w8, [x25]
	cbz	w8, LBB0_16
; %bb.2:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x22, #0
Lloh2:
	adrp	x26, _GL_FALSE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _GL_FALSE@GOTPAGEOFF]
Lloh4:
	adrp	x27, _GL_READ_WRITE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _GL_READ_WRITE@GOTPAGEOFF]
Lloh6:
	adrp	x28, _GL_R8@GOTPAGE
Lloh7:
	ldr	x28, [x28, _GL_R8@GOTPAGEOFF]
Lloh8:
	adrp	x24, _GL_TRUE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _GL_TRUE@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w3, [x26]
	ldr	w5, [x27]
	ldr	w6, [x28]
	mov	x0, x22
	mov	x1, #0
	mov	x2, #0
	mov	w4, #0
	bl	_glBindImageTexture
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_GL_EXTCALL
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	ldr	w8, [x25]
	cmp	x22, x8
	b.hs	LBB0_16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x19, x22, lsl #3]
	cbz	x23, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x1, [x23, #32]
	cbz	x1, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x2, #0
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8, x22, lsl #3]
	cbz	x8, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_WARN
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x23, #24]
	ldr	x8, [x0]
Lloh14:
	adrp	x9, _WINED3D_RTYPE_BUFFER@GOTPAGE
Lloh15:
	ldr	x9, [x9, _WINED3D_RTYPE_BUFFER@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	bl	_texture_from_resource
Lloh17:
	adrp	x8, _FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_wined3d_texture_get_texture_name
	mov	x1, x0
	ldr	x2, [x23, #16]
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w3, [x24]
	ldr	w5, [x27]
	ldr	x8, [x23, #8]
	ldr	w6, [x8]
	mov	x0, x22
	mov	w4, #0
	bl	_glBindImageTexture
	bl	_GL_EXTCALL
	ldr	x2, [x23]
	cbz	x2, LBB0_6
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh20:
	adrp	x8, _GL_ATOMIC_COUNTER_BUFFER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GL_ATOMIC_COUNTER_BUFFER@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_glBindBufferBase
	b	LBB0_5
LBB0_16:
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	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
	b	_checkGLcall
LBB0_17:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	.cfi_same_value w27
	.cfi_same_value w28
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_UNORDERED_ACCESS_VIEWS,4,2 ; @MAX_UNORDERED_ACCESS_VIEWS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No unordered access view bound at index %u.\n"

	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.comm	_GL_READ_WRITE,4,2              ; @GL_READ_WRITE
	.comm	_GL_R8,4,2                      ; @GL_R8
	.comm	_WINED3D_RTYPE_BUFFER,8,3       ; @WINED3D_RTYPE_BUFFER
	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported buffer unordered access view.\n"

	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
	.comm	_GL_ATOMIC_COUNTER_BUFFER,4,2   ; @GL_ATOMIC_COUNTER_BUFFER
l_.str.2:                               ; @.str.2
	.asciz	"Bind unordered access views"

	.no_dead_strip	_context_bind_unordered_access_views
.subsections_via_symbols
