	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x11_get_video_size             ## -- Begin function x11_get_video_size
	.p2align	4, 0x90
_x11_get_video_size:                    ## @x11_get_video_size
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	_g_x11_dpy@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_2
## %bb.1:
	movq	_g_x11_win@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_None@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_4
LBB0_2:
	xorl	%edi, %edi
	callq	_XOpenDisplay
	movl	$0, (%r15)
	movl	$0, (%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_DefaultScreen
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_DisplayWidth
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_DisplayHeight
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_XCloseDisplay                  ## TAILCALL
LBB0_4:
	leaq	-40(%rbp), %rdx
	callq	_XGetWindowAttributes
	movl	-40(%rbp), %eax
	movl	%eax, (%r15)
	movl	-36(%rbp), %eax
	movl	%eax, (%r14)
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_x11_dpy,4,2                  ## @g_x11_dpy
	.comm	_g_x11_win,8,3                  ## @g_x11_win
	.comm	_None,8,3                       ## @None
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x11_get_video_size             ; -- Begin function x11_get_video_size
	.p2align	2
_x11_get_video_size:                    ; @x11_get_video_size
	.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	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _g_x11_dpy@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_x11_dpy@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _g_x11_win@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_x11_win@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
Lloh6:
	adrp	x8, _None@GOTPAGE
Lloh7:
	ldr	x8, [x8, _None@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_4
LBB0_2:
	mov	x0, #0
	bl	_XOpenDisplay
	str	wzr, [x20]
	str	wzr, [x19]
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	bl	_DefaultScreen
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_DisplayWidth
	str	w0, [x20]
	mov	x0, x21
	mov	x1, x22
	bl	_DisplayHeight
	str	w0, [x19]
	mov	x0, x21
	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
	b	_XCloseDisplay
LBB0_4:
	add	x2, sp, #8
	bl	_XGetWindowAttributes
	ldp	w8, w9, [sp, #8]
	str	w8, [x20]
	str	w9, [x19]
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_g_x11_dpy,4,2                  ; @g_x11_dpy
	.comm	_g_x11_win,8,3                  ; @g_x11_win
	.comm	_None,8,3                       ; @None
.subsections_via_symbols
