	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3d9_alive
_d3d9_alive:                            ## @d3d9_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, %r12
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	leaq	-40(%rbp), %r14
	leaq	-36(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_video_driver_get_size
	leaq	-44(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_win32_check_window
	movl	-44(%rbp), %ebx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movl	%ebx, (%r12)
LBB0_2:
	cmpl	$0, -48(%rbp)
	je	LBB0_4
## %bb.3:
	movl	$1, 4(%r12)
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edx
	movq	%r12, %rdi
	callq	_d3d9_set_resize
	movq	%r12, %rdi
	callq	_d3d9_restore
	movl	-44(%rbp), %ebx
LBB0_4:
	cmpl	$0, -40(%rbp)
	je	LBB0_7
## %bb.5:
	cmpl	$0, -36(%rbp)
	je	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	callq	_video_driver_set_size
LBB0_7:
	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
	.no_dead_strip	_d3d9_alive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3d9_alive
_d3d9_alive:                            ; @d3d9_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]
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_video_driver_get_size
	add	x0, sp, #4
	mov	x1, sp
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_win32_check_window
	ldr	w20, [sp, #4]
	cbz	w20, LBB0_2
; %bb.1:
	str	w20, [x19]
LBB0_2:
	ldr	w8, [sp]
	cbz	w8, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19, #4]
	ldp	w2, w1, [sp, #8]
	mov	x0, x19
	bl	_d3d9_set_resize
	mov	x0, x19
	bl	_d3d9_restore
	ldr	w20, [sp, #4]
LBB0_4:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
; %bb.5:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_7
; %bb.6:
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_video_driver_set_size
LBB0_7:
	cmp	w20, #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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_d3d9_alive
.subsections_via_symbols
