	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_get_offscreen_gl_buffer ## -- Begin function context_get_offscreen_gl_buffer
	.p2align	4, 0x90
_context_get_offscreen_gl_buffer:       ## @context_get_offscreen_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
	movq	_wined3d_settings@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$129, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$128, %esi
	jne	LBB0_5
## %bb.2:
	movq	_GL_COLOR_ATTACHMENT0@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	cmpl	$0, (%rdi)
	jle	LBB0_6
## %bb.4:
	movq	_GL_AUX0@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
LBB0_6:
	movq	_GL_BACK@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wined3d_settings,4,2           ## @wined3d_settings
	.comm	_GL_COLOR_ATTACHMENT0,4,2       ## @GL_COLOR_ATTACHMENT0
	.comm	_GL_AUX0,4,2                    ## @GL_AUX0
	.comm	_GL_BACK,4,2                    ## @GL_BACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unhandled offscreen rendering mode %#x.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_get_offscreen_gl_buffer ; -- Begin function context_get_offscreen_gl_buffer
	.p2align	2
_context_get_offscreen_gl_buffer:       ; @context_get_offscreen_gl_buffer
	.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_settings@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wined3d_settings@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _GL_COLOR_ATTACHMENT0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_COLOR_ATTACHMENT0@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _GL_AUX0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_AUX0@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh7:
	adrp	x10, _GL_BACK@GOTPAGE
Lloh8:
	ldr	x10, [x10, _GL_BACK@GOTPAGEOFF]
	cmp	w9, #0
	csel	x8, x8, x10, gt
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
Lloh11:
	adrp	x8, _GL_BACK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_BACK@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_wined3d_settings,4,2           ; @wined3d_settings
	.comm	_GL_COLOR_ATTACHMENT0,4,2       ; @GL_COLOR_ATTACHMENT0
	.comm	_GL_AUX0,4,2                    ; @GL_AUX0
	.comm	_GL_BACK,4,2                    ; @GL_BACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unhandled offscreen rendering mode %#x.\n"

.subsections_via_symbols
