	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdl2_gfx_frame
_sdl2_gfx_frame:                        ## @sdl2_gfx_frame
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpq	$0, 40(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_sdl_refresh_viewport
LBB0_2:
	testq	%r15, %r15
	je	LBB0_5
## %bb.3:
	movq	24(%rbp), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	callq	_SDL_RenderClear
	movl	32(%rbx), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	%r14d, %r9d
	callq	_sdl_refresh_input_size
	movl	28(%rbx), %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_SDL_UpdateTexture
LBB0_5:
	movq	16(%rbp), %r14
	movl	28(%rbx), %esi
	movl	(%rbx), %edi
	movl	24(%rbx), %r8d
	movq	_SDL_FLIP_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_SDL_RenderCopyEx
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.6:
	movl	(%rbx), %edi
	movl	8(%rbx), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SDL_RenderCopy
LBB0_7:
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sdl2_render_msg
LBB0_9:
	movl	(%rbx), %edi
	callq	_SDL_RenderPresent
	movb	$0, -176(%rbp)
	leaq	-176(%rbp), %rdi
	movl	$128, %esi
	callq	_video_driver_get_window_title
	cmpb	$0, -176(%rbp)
	je	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	callq	_video_driver_display_userdata_get
	leaq	-176(%rbp), %rsi
	movq	%rax, %rdi
	callq	_SDL_SetWindowTitle
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	$1, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SDL_FLIP_NONE,4,2              ## @SDL_FLIP_NONE
	.no_dead_strip	_sdl2_gfx_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdl2_gfx_frame
_sdl2_gfx_frame:                        ; @sdl2_gfx_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x7
	mov	x19, x6
	mov	x21, x5
	mov	x23, x3
	mov	x24, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_sdl_refresh_viewport
LBB0_2:
	cbz	x22, LBB0_5
; %bb.3:
	ldr	x8, [x25]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x20]
	bl	_SDL_RenderClear
	ldr	w2, [x20, #32]
	mov	x0, x20
	mov	w1, #0
	mov	x3, x24
	mov	x4, x23
	mov	x5, x21
	bl	_sdl_refresh_input_size
	ldr	w0, [x20, #28]
	mov	x1, #0
	mov	x2, x22
	mov	x3, x21
	bl	_SDL_UpdateTexture
LBB0_5:
	ldr	w0, [x20]
	ldp	w4, w1, [x20, #24]
Lloh3:
	adrp	x8, _SDL_FLIP_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDL_FLIP_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
	mov	x2, #0
	mov	x3, #0
	mov	x5, #0
	bl	_SDL_RenderCopyEx
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x20]
	ldr	w1, [x20, #8]
	mov	x2, #0
	mov	x3, #0
	bl	_SDL_RenderCopy
LBB0_7:
	cbz	x19, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	bl	_sdl2_render_msg
LBB0_9:
	ldr	w0, [x20]
	bl	_SDL_RenderPresent
	strb	wzr, [sp, #8]
	add	x0, sp, #8
	mov	w1, #128
	bl	_video_driver_get_window_title
	ldrb	w8, [sp, #8]
	cbz	w8, LBB0_11
; %bb.10:
	bl	_video_driver_display_userdata_get
	add	x1, sp, #8
	bl	_SDL_SetWindowTitle
LBB0_11:
	ldur	x8, [x29, #-72]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #1
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SDL_FLIP_NONE,4,2              ; @SDL_FLIP_NONE
	.no_dead_strip	_sdl2_gfx_frame
.subsections_via_symbols
