	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_window
_check_window:                          ## @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
	movl	(%r15), %edx
	leaq	-48(%rbp), %rdi
	movl	$1, %esi
	movl	$129, %ecx
	movl	$128, %r8d
	callq	_SDL_PeepEvents
	testq	%rax, %rax
	jle	LBB0_8
## %bb.1:
	leaq	4(%r14), %r12
	leaq	-48(%rbp), %rbx
	movq	_SDL_WINDOWEVENT_RESIZED@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%rax)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$129, %ecx
	movl	$128, %r8d
	callq	_SDL_PeepEvents
	testq	%rax, %rax
	jle	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %ecx
	movq	%r12, %rax
	cmpl	(%r13), %ecx
	je	LBB0_6
	jmp	LBB0_7
LBB0_8:
	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_WINDOWEVENT_RESIZED,4,2    ## @SDL_WINDOWEVENT_RESIZED
	.no_dead_strip	_check_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_window
_check_window:                          ; @check_window
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_SDL_PumpEvents
Lloh0:
	adrp	x20, _SDL_GETEVENT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SDL_GETEVENT@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w21, #1
	add	x0, sp, #8
	mov	w1, #1
	mov	w3, #129
	mov	w4, #128
	bl	_SDL_PeepEvents
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.1:
	add	x22, x19, #4
Lloh2:
	adrp	x23, _SDL_WINDOWEVENT_RESIZED@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SDL_WINDOWEVENT_RESIZED@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x19
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w21, [x8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x20]
	add	x0, sp, #8
	mov	w1, #1
	mov	w3, #129
	mov	w4, #128
	bl	_SDL_PeepEvents
	cmp	x0, #0
	b.le	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #8]
	cmp	w8, #129
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [sp, #12]
	ldr	w10, [x23]
	mov	x8, x22
	cmp	w9, w10
	b.eq	LBB0_3
	b	LBB0_4
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SDL_GETEVENT,4,2               ; @SDL_GETEVENT
	.comm	_SDL_WINDOWEVENT_RESIZED,4,2    ; @SDL_WINDOWEVENT_RESIZED
	.no_dead_strip	_check_window
.subsections_via_symbols
