	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GLimp_EndFrame                 ## -- Begin function GLimp_EndFrame
	.p2align	4, 0x90
_GLimp_EndFrame:                        ## @GLimp_EndFrame
	.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	_r_drawBuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_Q_stricmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_SDL_window@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDL_GL_SwapWindow
LBB0_2:
	movq	_r_fullscreen@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.3:
	movq	_SDL_window@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_SDL_GetWindowFlags
	movl	%eax, %ebx
	movq	_SDL_WINDOW_FULLSCREEN@GOTPCREL(%rip), %rax
	movq	(%r14), %rcx
	andl	(%rax), %ebx
	cmpq	$0, 8(%rcx)
	je	LBB0_6
## %bb.4:
	movq	_ri@GOTPCREL(%rip), %r12
	leaq	L_.str.1(%rip), %rdi
	callq	*32(%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_PRINT_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	*24(%r12)
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	*16(%r12)
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
LBB0_6:
	testl	%ebx, %ebx
	setne	%cl
	movq	(%r14), %rax
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	sete	%dl
	xorb	%cl, %dl
	jne	LBB0_10
## %bb.7:
	movl	(%r15), %edi
	callq	_SDL_SetWindowFullscreen
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	movq	_ri@GOTPCREL(%rip), %rax
	movq	_EXEC_APPEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	*8(%rax)
LBB0_9:
	movq	_ri@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	movq	(%r14), %rax
LBB0_10:
	movq	_qfalse@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_r_drawBuffer,8,3               ## @r_drawBuffer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GL_FRONT"

	.comm	_SDL_window,4,2                 ## @SDL_window
	.comm	_r_fullscreen,8,3               ## @r_fullscreen
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_SDL_WINDOW_FULLSCREEN,4,2      ## @SDL_WINDOW_FULLSCREEN
	.comm	_ri,40,3                        ## @ri
L_.str.1:                               ## @.str.1
	.asciz	"in_nograb"

	.comm	_PRINT_ALL,4,2                  ## @PRINT_ALL
L_.str.2:                               ## @.str.2
	.asciz	"Fullscreen not allowed with in_nograb 1\n"

L_.str.3:                               ## @.str.3
	.asciz	"r_fullscreen"

L_.str.4:                               ## @.str.4
	.asciz	"0"

	.comm	_EXEC_APPEND,4,2                ## @EXEC_APPEND
L_.str.5:                               ## @.str.5
	.asciz	"vid_restart\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GLimp_EndFrame                 ; -- Begin function GLimp_EndFrame
	.p2align	2
_GLimp_EndFrame:                        ; @GLimp_EndFrame
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _r_drawBuffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r_drawBuffer@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Q_stricmp
Lloh5:
	adrp	x21, _SDL_window@GOTPAGE
Lloh6:
	ldr	x21, [x21, _SDL_window@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
	bl	_SDL_GL_SwapWindow
LBB0_2:
Lloh7:
	adrp	x19, _r_fullscreen@GOTPAGE
Lloh8:
	ldr	x19, [x19, _r_fullscreen@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.3:
	ldr	w0, [x21]
	bl	_SDL_GetWindowFlags
Lloh9:
	adrp	x8, _SDL_WINDOW_FULLSCREEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDL_WINDOW_FULLSCREEN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w23, w8, w0
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
Lloh12:
	adrp	x22, _ri@GOTPAGE
Lloh13:
	ldr	x22, [x22, _ri@GOTPAGEOFF]
Lloh14:
	adrp	x20, _qfalse@GOTPAGE
Lloh15:
	ldr	x20, [x20, _qfalse@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x22, #32]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	blr	x8
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x22, #24]
Lloh18:
	adrp	x9, _PRINT_ALL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PRINT_ALL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x9]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	blr	x8
	ldr	x8, [x22, #16]
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	blr	x8
	ldr	x8, [x20]
	ldr	x9, [x19]
	str	x8, [x9]
LBB0_6:
	cmp	w23, #0
	cset	w9, ne
	ldr	x8, [x19]
	ldr	x1, [x8, #8]
	cmp	x1, #0
	cset	w10, eq
	eor	w9, w9, w10
	tbnz	w9, #0, LBB0_10
; %bb.7:
	ldr	w0, [x21]
	bl	_SDL_SetWindowFullscreen
	tbz	x0, #63, LBB0_9
; %bb.8:
	ldr	x8, [x22, #8]
Lloh27:
	adrp	x9, _EXEC_APPEND@GOTPAGE
Lloh28:
	ldr	x9, [x9, _EXEC_APPEND@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x9]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	blr	x8
LBB0_9:
	ldr	x8, [x22]
	blr	x8
	ldr	x8, [x19]
LBB0_10:
	ldr	x9, [x20]
	str	x9, [x8]
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_r_drawBuffer,8,3               ; @r_drawBuffer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GL_FRONT"

	.comm	_SDL_window,4,2                 ; @SDL_window
	.comm	_r_fullscreen,8,3               ; @r_fullscreen
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_SDL_WINDOW_FULLSCREEN,4,2      ; @SDL_WINDOW_FULLSCREEN
	.comm	_ri,40,3                        ; @ri
l_.str.1:                               ; @.str.1
	.asciz	"in_nograb"

	.comm	_PRINT_ALL,4,2                  ; @PRINT_ALL
l_.str.2:                               ; @.str.2
	.asciz	"Fullscreen not allowed with in_nograb 1\n"

l_.str.3:                               ; @.str.3
	.asciz	"r_fullscreen"

l_.str.4:                               ; @.str.4
	.asciz	"0"

	.comm	_EXEC_APPEND,4,2                ; @EXEC_APPEND
l_.str.5:                               ; @.str.5
	.asciz	"vid_restart\n"

.subsections_via_symbols
