	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl1_gfx_alive
_gl1_gfx_alive:                         ## @gl1_gfx_alive
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movq	_RARCH_CTL_IS_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_rarch_ctl
	movl	%eax, %r14d
	leaq	-40(%rbp), %r15
	leaq	-36(%rbp), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_video_driver_get_size
	movq	8(%rbx), %rax
	movl	4(%rbx), %edi
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rcx
	movq	%r12, %r8
	movl	%r14d, %r9d
	callq	*(%rax)
	cmpl	$0, -44(%rbp)
	je	LBB0_2
## %bb.1:
	movl	$1, (%rbx)
LBB0_2:
	movl	-48(%rbp), %ebx
	cmpl	$0, -40(%rbp)
	je	LBB0_5
## %bb.3:
	cmpl	$0, -36(%rbp)
	je	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	callq	_video_driver_set_size
LBB0_5:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	sete	%al
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RARCH_CTL_IS_SHUTDOWN,4,2      ## @RARCH_CTL_IS_SHUTDOWN
	.no_dead_strip	_gl1_gfx_alive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl1_gfx_alive
_gl1_gfx_alive:                         ; @gl1_gfx_alive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x8, _RARCH_CTL_IS_SHUTDOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RARCH_CTL_IS_SHUTDOWN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
	mov	x20, x0
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_video_driver_get_size
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x19, #4]
	add	x1, sp, #4
	mov	x2, sp
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x5, x20
	blr	x8
	ldr	w8, [sp]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
LBB0_2:
	ldr	w19, [sp, #4]
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_5
; %bb.4:
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_video_driver_set_size
LBB0_5:
	cmp	w19, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RARCH_CTL_IS_SHUTDOWN,4,2      ; @RARCH_CTL_IS_SHUTDOWN
	.no_dead_strip	_gl1_gfx_alive
.subsections_via_symbols
