	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdl_ctx_check_window
_sdl_ctx_check_window:                  ## @sdl_ctx_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_SDL_PumpEvents
	movq	_SDL_GETEVENT@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_SDL_QUITMASK@GOTPCREL(%rip), %r12
	movq	_SDL_VIDEORESIZEMASK@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	(%r12), %ecx
	leaq	-96(%rbp), %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_SDL_PeepEvents
	testq	%rax, %rax
	jle	LBB0_7
## %bb.1:
	leaq	-96(%rbp), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%rbx)
	movl	-92(%rbp), %eax
	movl	%eax, 4(%rbx)
	movl	-88(%rbp), %eax
	movl	%eax, 8(%rbx)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edx
	movl	(%r13), %ecx
	orl	(%r12), %ecx
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_SDL_PeepEvents
	testq	%rax, %rax
	jle	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-96(%rbp), %eax
	cmpl	$129, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$130, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_6
LBB0_7:
	cmpl	$0, (%rbx)
	je	LBB0_9
## %bb.8:
	movl	4(%rbx), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	8(%rbx), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	$0, (%rbx)
LBB0_9:
	addq	$56, %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_VIDEORESIZEMASK,4,2        ## @SDL_VIDEORESIZEMASK
	.comm	_SDL_WINDOWEVENT_RESIZED,4,2    ## @SDL_WINDOWEVENT_RESIZED
	.no_dead_strip	_sdl_ctx_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_ctx_check_window
_sdl_ctx_check_window:                  ; @sdl_ctx_check_window
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	bl	_SDL_PumpEvents
Lloh0:
	adrp	x24, _SDL_GETEVENT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SDL_GETEVENT@GOTPAGEOFF]
Lloh2:
	adrp	x25, _SDL_QUITMASK@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SDL_QUITMASK@GOTPAGEOFF]
	ldr	w2, [x24]
	ldr	w8, [x25]
Lloh4:
	adrp	x26, _SDL_VIDEORESIZEMASK@GOTPAGE
Lloh5:
	ldr	x26, [x26, _SDL_VIDEORESIZEMASK@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w3, w9, w8
	mov	w27, #1
	add	x0, sp, #8
	mov	w1, #1
	bl	_SDL_PeepEvents
	cmp	x0, #1
	b.ge	LBB0_6
LBB0_1:
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w8, [x19, #4]
	str	w8, [x22]
	ldr	w8, [x19, #8]
	str	w8, [x21]
	mov	w8, #1
	str	w8, [x20]
	str	wzr, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w27, [x19]
	ldur	d0, [sp, #12]
	stur	d0, [x19, #4]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x24]
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w3, w9, w8
	add	x0, sp, #8
	mov	w1, #1
	bl	_SDL_PeepEvents
	cmp	x0, #0
	b.le	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #8]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #130
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w27, [x23]
	b	LBB0_5
	.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_VIDEORESIZEMASK,4,2        ; @SDL_VIDEORESIZEMASK
	.comm	_SDL_WINDOWEVENT_RESIZED,4,2    ; @SDL_WINDOWEVENT_RESIZED
	.no_dead_strip	_sdl_ctx_check_window
.subsections_via_symbols
