	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdl_gfx_check_window
_sdl_gfx_check_window:                  ## @sdl_gfx_check_window
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_SDL_PumpEvents
	movq	_SDL_GETEVENT@GOTPCREL(%rip), %r15
	movq	_SDL_QUITMASK@GOTPCREL(%rip), %r12
	leaq	-48(%rbp), %r13
	movq	_SDL_QUIT@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	movl	(%r12), %ecx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_SDL_PeepEvents
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_1
## %bb.3:
	movl	$1, (%r14)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDL_GETEVENT,4,2               ## @SDL_GETEVENT
	.comm	_SDL_QUITMASK,4,2               ## @SDL_QUITMASK
	.comm	_SDL_QUIT,8,3                   ## @SDL_QUIT
	.no_dead_strip	_sdl_gfx_check_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdl_gfx_check_window
_sdl_gfx_check_window:                  ; @sdl_gfx_check_window
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_SDL_PumpEvents
Lloh0:
	adrp	x20, _SDL_GETEVENT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SDL_GETEVENT@GOTPAGEOFF]
Lloh2:
	adrp	x21, _SDL_QUITMASK@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SDL_QUITMASK@GOTPAGEOFF]
Lloh4:
	adrp	x22, _SDL_QUIT@GOTPAGE
Lloh5:
	ldr	x22, [x22, _SDL_QUIT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x20]
	ldr	w3, [x21]
	add	x0, sp, #8
	mov	w1, #1
	bl	_SDL_PeepEvents
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.3:
	mov	w8, #1
	str	w8, [x19]
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SDL_GETEVENT,4,2               ; @SDL_GETEVENT
	.comm	_SDL_QUITMASK,4,2               ; @SDL_QUITMASK
	.comm	_SDL_QUIT,8,3                   ; @SDL_QUIT
	.no_dead_strip	_sdl_gfx_check_window
.subsections_via_symbols
