	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_ctx_cgl_check_window
_gfx_ctx_cgl_check_window:              ## @gfx_ctx_cgl_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	movl	$0, (%rsi)
	leaq	-32(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	callq	_gfx_ctx_cgl_get_video_size
	movl	-32(%rbp), %eax
	movl	-28(%rbp), %ecx
	cmpl	(%rbx), %eax
	jne	LBB0_2
## %bb.1:
	cmpl	(%r15), %ecx
	je	LBB0_3
LBB0_2:
	movl	%eax, (%rbx)
	movl	%ecx, (%r15)
	movl	$1, (%r14)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gfx_ctx_cgl_check_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_ctx_cgl_check_window
_gfx_ctx_cgl_check_window:              ; @gfx_ctx_cgl_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	x20, x4
	mov	x21, x3
	mov	x19, x2
	str	xzr, [sp, #8]
	str	wzr, [x1]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_gfx_ctx_cgl_get_video_size
	ldp	w9, w8, [sp, #8]
	ldr	w10, [x21]
	cmp	w8, w10
	b.ne	LBB0_2
; %bb.1:
	ldr	w10, [x20]
	cmp	w9, w10
	b.eq	LBB0_3
LBB0_2:
	str	w8, [x21]
	str	w9, [x20]
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gfx_ctx_cgl_check_window
.subsections_via_symbols
