	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_texture_get_gl_buffer  ## -- Begin function wined3d_texture_get_gl_buffer
	.p2align	4, 0x90
_wined3d_texture_get_gl_buffer:         ## @wined3d_texture_get_gl_buffer
	.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), %r14
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	cmpq	%rbx, 8(%r14)
	je	LBB0_3
## %bb.4:
	movq	(%r14), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_5
## %bb.6:
	leaq	L_.str.4(%rip), %rdi
	callq	_FIXME
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_ERR
	movq	_GL_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_GL_FRONT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_7:
	movq	_GL_BACK@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"texture %p.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Texture %p is not part of a swapchain.\n"

	.comm	_GL_NONE,4,2                    ## @GL_NONE
L_.str.2:                               ## @.str.2
	.asciz	"Returning GL_FRONT.\n"

	.comm	_GL_FRONT,4,2                   ## @GL_FRONT
L_.str.3:                               ## @.str.3
	.asciz	"Returning GL_BACK.\n"

	.comm	_GL_BACK,4,2                    ## @GL_BACK
L_.str.4:                               ## @.str.4
	.asciz	"Higher back buffer, returning GL_BACK.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_texture_get_gl_buffer  ; -- Begin function wined3d_texture_get_gl_buffer
	.p2align	2
_wined3d_texture_get_gl_buffer:         ; @wined3d_texture_get_gl_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0]
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	cbz	x20, LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
	cmp	x8, x19
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_6
; %bb.3:
Lloh2:
	adrp	x0, l_.str.4@PAGE
Lloh3:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_FIXME
	b	LBB0_7
LBB0_4:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_ERR
Lloh6:
	adrp	x8, _GL_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_NONE@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
Lloh10:
	adrp	x8, _GL_FRONT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GL_FRONT@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
LBB0_7:
Lloh14:
	adrp	x8, _GL_BACK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GL_BACK@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"texture %p.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Texture %p is not part of a swapchain.\n"

	.comm	_GL_NONE,4,2                    ; @GL_NONE
l_.str.2:                               ; @.str.2
	.asciz	"Returning GL_FRONT.\n"

	.comm	_GL_FRONT,4,2                   ; @GL_FRONT
l_.str.3:                               ; @.str.3
	.asciz	"Returning GL_BACK.\n"

	.comm	_GL_BACK,4,2                    ; @GL_BACK
l_.str.4:                               ; @.str.4
	.asciz	"Higher back buffer, returning GL_BACK.\n"

.subsections_via_symbols
