	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function buffer_type_hint_from_bind_flags
_buffer_type_hint_from_bind_flags:      ## @buffer_type_hint_from_bind_flags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_WINED3D_BIND_INDEX_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%esi, %eax
	jne	LBB0_2
## %bb.1:
	movq	_GL_ELEMENT_ARRAY_BUFFER@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
LBB0_2:
	movq	_WINED3D_BIND_SHADER_RESOURCE@GOTPCREL(%rip), %rcx
	movq	_WINED3D_BIND_UNORDERED_ACCESS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%esi, %edx
	je	LBB0_5
## %bb.3:
	movq	(%rdi), %rcx
	movq	_ARB_TEXTURE_BUFFER_OBJECT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_5
## %bb.4:
	movq	_GL_TEXTURE_BUFFER@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
LBB0_5:
	movq	_WINED3D_BIND_CONSTANT_BUFFER@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_GL_UNIFORM_BUFFER@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
LBB0_7:
	movq	_WINED3D_BIND_STREAM_OUTPUT@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_GL_TRANSFORM_FEEDBACK_BUFFER@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
LBB0_9:
	movq	_WINED3D_BIND_VERTEX_BUFFER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	movq	_GL_ARRAY_BUFFER@GOTPCREL(%rip), %rbx
	testl	%esi, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
LBB0_11:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_BIND_INDEX_BUFFER,4,2  ## @WINED3D_BIND_INDEX_BUFFER
	.comm	_GL_ELEMENT_ARRAY_BUFFER,4,2    ## @GL_ELEMENT_ARRAY_BUFFER
	.comm	_WINED3D_BIND_SHADER_RESOURCE,4,2 ## @WINED3D_BIND_SHADER_RESOURCE
	.comm	_WINED3D_BIND_UNORDERED_ACCESS,4,2 ## @WINED3D_BIND_UNORDERED_ACCESS
	.comm	_ARB_TEXTURE_BUFFER_OBJECT,8,3  ## @ARB_TEXTURE_BUFFER_OBJECT
	.comm	_GL_TEXTURE_BUFFER,4,2          ## @GL_TEXTURE_BUFFER
	.comm	_WINED3D_BIND_CONSTANT_BUFFER,4,2 ## @WINED3D_BIND_CONSTANT_BUFFER
	.comm	_GL_UNIFORM_BUFFER,4,2          ## @GL_UNIFORM_BUFFER
	.comm	_WINED3D_BIND_STREAM_OUTPUT,4,2 ## @WINED3D_BIND_STREAM_OUTPUT
	.comm	_GL_TRANSFORM_FEEDBACK_BUFFER,4,2 ## @GL_TRANSFORM_FEEDBACK_BUFFER
	.comm	_WINED3D_BIND_VERTEX_BUFFER,4,2 ## @WINED3D_BIND_VERTEX_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unhandled bind flags %#x.\n"

	.comm	_GL_ARRAY_BUFFER,4,2            ## @GL_ARRAY_BUFFER
	.no_dead_strip	_buffer_type_hint_from_bind_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function buffer_type_hint_from_bind_flags
_buffer_type_hint_from_bind_flags:      ; @buffer_type_hint_from_bind_flags
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _WINED3D_BIND_INDEX_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3D_BIND_INDEX_BUFFER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _GL_ELEMENT_ARRAY_BUFFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_ELEMENT_ARRAY_BUFFER@GOTPAGEOFF]
	b	LBB0_12
LBB0_2:
Lloh5:
	adrp	x9, _WINED3D_BIND_SHADER_RESOURCE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WINED3D_BIND_SHADER_RESOURCE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _WINED3D_BIND_UNORDERED_ACCESS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _WINED3D_BIND_UNORDERED_ACCESS@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w1
	b.eq	LBB0_5
; %bb.3:
	ldr	x9, [x0]
Lloh11:
	adrp	x10, _ARB_TEXTURE_BUFFER_OBJECT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ARB_TEXTURE_BUFFER_OBJECT@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
	cbz	x9, LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _GL_TEXTURE_BUFFER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GL_TEXTURE_BUFFER@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
Lloh16:
	adrp	x9, _WINED3D_BIND_CONSTANT_BUFFER@GOTPAGE
Lloh17:
	ldr	x9, [x9, _WINED3D_BIND_CONSTANT_BUFFER@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w1
	b.eq	LBB0_7
; %bb.6:
Lloh19:
	adrp	x8, _GL_UNIFORM_BUFFER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GL_UNIFORM_BUFFER@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
Lloh21:
	adrp	x9, _WINED3D_BIND_STREAM_OUTPUT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WINED3D_BIND_STREAM_OUTPUT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w1
	b.eq	LBB0_9
; %bb.8:
Lloh24:
	adrp	x8, _GL_TRANSFORM_FEEDBACK_BUFFER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GL_TRANSFORM_FEEDBACK_BUFFER@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh26:
	adrp	x9, _WINED3D_BIND_VERTEX_BUFFER@GOTPAGE
Lloh27:
	ldr	x9, [x9, _WINED3D_BIND_VERTEX_BUFFER@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bics	wzr, w1, w8
	b.eq	LBB0_11
; %bb.10:
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
LBB0_11:
Lloh31:
	adrp	x8, _GL_ARRAY_BUFFER@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GL_ARRAY_BUFFER@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_BIND_INDEX_BUFFER,4,2  ; @WINED3D_BIND_INDEX_BUFFER
	.comm	_GL_ELEMENT_ARRAY_BUFFER,4,2    ; @GL_ELEMENT_ARRAY_BUFFER
	.comm	_WINED3D_BIND_SHADER_RESOURCE,4,2 ; @WINED3D_BIND_SHADER_RESOURCE
	.comm	_WINED3D_BIND_UNORDERED_ACCESS,4,2 ; @WINED3D_BIND_UNORDERED_ACCESS
	.comm	_ARB_TEXTURE_BUFFER_OBJECT,8,3  ; @ARB_TEXTURE_BUFFER_OBJECT
	.comm	_GL_TEXTURE_BUFFER,4,2          ; @GL_TEXTURE_BUFFER
	.comm	_WINED3D_BIND_CONSTANT_BUFFER,4,2 ; @WINED3D_BIND_CONSTANT_BUFFER
	.comm	_GL_UNIFORM_BUFFER,4,2          ; @GL_UNIFORM_BUFFER
	.comm	_WINED3D_BIND_STREAM_OUTPUT,4,2 ; @WINED3D_BIND_STREAM_OUTPUT
	.comm	_GL_TRANSFORM_FEEDBACK_BUFFER,4,2 ; @GL_TRANSFORM_FEEDBACK_BUFFER
	.comm	_WINED3D_BIND_VERTEX_BUFFER,4,2 ; @WINED3D_BIND_VERTEX_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unhandled bind flags %#x.\n"

	.comm	_GL_ARRAY_BUFFER,4,2            ; @GL_ARRAY_BUFFER
	.no_dead_strip	_buffer_type_hint_from_bind_flags
.subsections_via_symbols
