	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wined3d_guess_gl_vendor
_wined3d_guess_gl_vendor:               ## @wined3d_guess_gl_vendor
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movq	_APPLE_FENCE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_3
## %bb.1:
	movq	_APPLE_YCBCR_422@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_3
## %bb.2:
	movq	_GL_VENDOR_APPLE@GOTPCREL(%rip), %r12
	jmp	LBB0_20
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_GL_VENDOR_NVIDIA@GOTPCREL(%rip), %r12
	jmp	LBB0_20
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_GL_VENDOR_FGLRX@GOTPCREL(%rip), %r12
	jmp	LBB0_20
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	movq	_GL_VENDOR_MESA@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	jne	LBB0_20
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_20
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_20
## %bb.10:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_20
## %bb.11:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_20
## %bb.12:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_20
## %bb.13:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_20
## %bb.14:
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_20
## %bb.15:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_20
## %bb.16:
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_20
## %bb.17:
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_20
## %bb.18:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	callq	_debugstr_a
	leaq	L_.str.11(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
	movq	_GL_VENDOR_UNKNOWN@GOTPCREL(%rip), %r12
LBB0_20:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APPLE_FENCE,8,3                ## @APPLE_FENCE
	.comm	_APPLE_YCBCR_422,8,3            ## @APPLE_YCBCR_422
	.comm	_GL_VENDOR_APPLE,4,2            ## @GL_VENDOR_APPLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NVIDIA"

	.comm	_GL_VENDOR_NVIDIA,4,2           ## @GL_VENDOR_NVIDIA
L_.str.1:                               ## @.str.1
	.asciz	"ATI"

	.comm	_GL_VENDOR_FGLRX,4,2            ## @GL_VENDOR_FGLRX
L_.str.2:                               ## @.str.2
	.asciz	"Mesa"

L_.str.3:                               ## @.str.3
	.asciz	"Brian Paul"

L_.str.4:                               ## @.str.4
	.asciz	"X.Org"

L_.str.5:                               ## @.str.5
	.asciz	"Advanced Micro Devices, Inc."

L_.str.6:                               ## @.str.6
	.asciz	"DRI R300 Project"

L_.str.7:                               ## @.str.7
	.asciz	"Tungsten Graphics, Inc"

L_.str.8:                               ## @.str.8
	.asciz	"VMware, Inc."

L_.str.9:                               ## @.str.9
	.asciz	"Intel"

L_.str.10:                              ## @.str.10
	.asciz	"Gallium"

	.comm	_GL_VENDOR_MESA,4,2             ## @GL_VENDOR_MESA
L_.str.11:                              ## @.str.11
	.asciz	"Received unrecognized GL_VENDOR %s. Returning GL_VENDOR_UNKNOWN.\n"

	.comm	_GL_VENDOR_UNKNOWN,4,2          ## @GL_VENDOR_UNKNOWN
	.no_dead_strip	_wined3d_guess_gl_vendor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wined3d_guess_gl_vendor
_wined3d_guess_gl_vendor:               ; @wined3d_guess_gl_vendor
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x3
	mov	x21, x2
	mov	x19, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _APPLE_FENCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _APPLE_FENCE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _APPLE_YCBCR_422@GOTPAGE
Lloh4:
	ldr	x9, [x9, _APPLE_YCBCR_422@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _GL_VENDOR_APPLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_VENDOR_APPLE@GOTPAGEOFF]
	b	LBB0_20
LBB0_3:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbz	x0, LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _GL_VENDOR_NVIDIA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GL_VENDOR_NVIDIA@GOTPAGEOFF]
	b	LBB0_20
LBB0_5:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbz	x0, LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _GL_VENDOR_FGLRX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GL_VENDOR_FGLRX@GOTPAGEOFF]
	b	LBB0_20
LBB0_7:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbnz	x0, LBB0_19
; %bb.8:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbnz	x0, LBB0_19
; %bb.9:
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbnz	x0, LBB0_19
; %bb.10:
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbnz	x0, LBB0_19
; %bb.11:
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbnz	x0, LBB0_19
; %bb.12:
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbnz	x0, LBB0_19
; %bb.13:
Lloh28:
	adrp	x1, l_.str.8@PAGE
Lloh29:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbnz	x0, LBB0_19
; %bb.14:
Lloh30:
	adrp	x1, l_.str.9@PAGE
Lloh31:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbnz	x0, LBB0_19
; %bb.15:
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strstr
	cbnz	x0, LBB0_19
; %bb.16:
Lloh34:
	adrp	x1, l_.str.10@PAGE
Lloh35:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_strstr
	cbnz	x0, LBB0_19
; %bb.17:
Lloh36:
	adrp	x1, l_.str.9@PAGE
Lloh37:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_strstr
	cbnz	x0, LBB0_19
; %bb.18:
Lloh38:
	adrp	x1, l_.str.2@PAGE
Lloh39:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_21
LBB0_19:
Lloh40:
	adrp	x8, _GL_VENDOR_MESA@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GL_VENDOR_MESA@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_21:
	mov	x0, x19
	bl	_debugstr_a
	mov	x1, x0
Lloh42:
	adrp	x0, l_.str.11@PAGE
Lloh43:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_FIXME
Lloh44:
	adrp	x8, _GL_VENDOR_UNKNOWN@GOTPAGE
Lloh45:
	ldr	x8, [x8, _GL_VENDOR_UNKNOWN@GOTPAGEOFF]
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_APPLE_FENCE,8,3                ; @APPLE_FENCE
	.comm	_APPLE_YCBCR_422,8,3            ; @APPLE_YCBCR_422
	.comm	_GL_VENDOR_APPLE,4,2            ; @GL_VENDOR_APPLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NVIDIA"

	.comm	_GL_VENDOR_NVIDIA,4,2           ; @GL_VENDOR_NVIDIA
l_.str.1:                               ; @.str.1
	.asciz	"ATI"

	.comm	_GL_VENDOR_FGLRX,4,2            ; @GL_VENDOR_FGLRX
l_.str.2:                               ; @.str.2
	.asciz	"Mesa"

l_.str.3:                               ; @.str.3
	.asciz	"Brian Paul"

l_.str.4:                               ; @.str.4
	.asciz	"X.Org"

l_.str.5:                               ; @.str.5
	.asciz	"Advanced Micro Devices, Inc."

l_.str.6:                               ; @.str.6
	.asciz	"DRI R300 Project"

l_.str.7:                               ; @.str.7
	.asciz	"Tungsten Graphics, Inc"

l_.str.8:                               ; @.str.8
	.asciz	"VMware, Inc."

l_.str.9:                               ; @.str.9
	.asciz	"Intel"

l_.str.10:                              ; @.str.10
	.asciz	"Gallium"

	.comm	_GL_VENDOR_MESA,4,2             ; @GL_VENDOR_MESA
l_.str.11:                              ; @.str.11
	.asciz	"Received unrecognized GL_VENDOR %s. Returning GL_VENDOR_UNKNOWN.\n"

	.comm	_GL_VENDOR_UNKNOWN,4,2          ; @GL_VENDOR_UNKNOWN
	.no_dead_strip	_wined3d_guess_gl_vendor
.subsections_via_symbols
