	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdl_gfx_frame
_sdl_gfx_frame:                         ## @sdl_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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.1:
	movl	%r9d, %r13d
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movb	$0, -176(%rbp)
	leaq	-176(%rbp), %rdi
	movl	$128, %esi
	callq	_video_driver_get_window_title
	movq	(%rbx), %rdi
	callq	_SDL_MUSTLOCK
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %rdi
	callq	_SDL_LockSurface
LBB0_3:
	leaq	24(%rbx), %rdi
	movq	(%rbx), %rax
	movl	16(%rax), %esi
	movl	24(%rbx), %ecx
	movl	4(%rax), %r9d
	movl	8(%rax), %r8d
	movl	12(%rax), %eax
	movq	%r15, %rdx
	pushq	%r13
	pushq	%r12
	pushq	%r14
	pushq	%rax
	callq	_video_frame_scale
	addq	$32, %rsp
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.4:
	movl	8(%rbx), %edi
	movq	(%rbx), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_SDL_BlitSurface
LBB0_5:
	movq	16(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rsi
	movl	8(%rsi), %ecx
	movl	(%rsi), %r9d
	movl	4(%rsi), %r8d
	movq	%rbx, %rdi
	callq	_sdl_render_msg
LBB0_7:
	movq	(%rbx), %rdi
	callq	_SDL_MUSTLOCK
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%rbx), %rdi
	callq	_SDL_UnlockSurface
LBB0_9:
	cmpb	$0, -176(%rbp)
	je	LBB0_11
## %bb.10:
	leaq	-176(%rbp), %rdi
	xorl	%esi, %esi
	callq	_SDL_WM_SetCaption
LBB0_11:
	movq	(%rbx), %rdi
	callq	_SDL_Flip
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	$1, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sdl_gfx_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdl_gfx_frame
_sdl_gfx_frame:                         ; @sdl_gfx_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cbz	x1, LBB0_12
; %bb.1:
	mov	x20, x6
	mov	x24, x5
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	strb	wzr, [sp, #8]
	add	x0, sp, #8
	mov	w1, #128
	bl	_video_driver_get_window_title
	ldr	x0, [x19]
	bl	_SDL_MUSTLOCK
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x19]
	bl	_SDL_LockSurface
LBB0_3:
	ldr	x8, [x19]
	mov	x0, x19
	ldr	w3, [x0, #24]!
	ldp	w5, w4, [x8, #4]
	ldp	w6, w1, [x8, #12]
	stp	w23, w24, [sp]
	mov	x2, x22
	mov	x7, x21
	bl	_video_frame_scale
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x19, #8]
	ldr	x2, [x19]
	mov	x1, #0
	mov	x3, #0
	bl	_SDL_BlitSurface
LBB0_5:
	cbz	x20, LBB0_7
; %bb.6:
	ldr	x1, [x19]
	ldp	w4, w3, [x1, #4]
	ldr	w5, [x1]
	mov	x0, x19
	mov	x2, x20
	bl	_sdl_render_msg
LBB0_7:
	ldr	x0, [x19]
	bl	_SDL_MUSTLOCK
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x19]
	bl	_SDL_UnlockSurface
LBB0_9:
	ldrb	w8, [sp, #8]
	cbz	w8, LBB0_11
; %bb.10:
	add	x0, sp, #8
	mov	x1, #0
	bl	_SDL_WM_SetCaption
LBB0_11:
	ldr	x0, [x19]
	bl	_SDL_Flip
LBB0_12:
	ldur	x8, [x29, #-56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	w0, #1
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sdl_gfx_frame
.subsections_via_symbols
