	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function x11_get_refresh_rate
LCPI0_0:
	.long	0x447a0000                      ## float 1000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_x11_get_refresh_rate
	.p2align	4, 0x90
_x11_get_refresh_rate:                  ## @x11_get_refresh_rate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	_g_x11_dpy@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorps	%xmm0, %xmm0
	testl	%edi, %edi
	je	LBB0_6
## %bb.1:
	movq	_g_x11_win@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_None@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_6
## %bb.2:
	leaq	-32(%rbp), %rdx
	callq	_XGetWindowAttributes
	xorps	%xmm0, %xmm0
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	-32(%rbp), %rdi
	callq	_XScreenNumberOfScreen
	movl	(%rbx), %edi
	leaq	-12(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	movl	%eax, %esi
	callq	_XF86VidModeGetModeLine
	movq	_V_DBLSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-12(%rbp), %eax
	testl	%ecx, -24(%rbp)
	je	LBB0_5
## %bb.4:
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, %eax
LBB0_5:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	divss	-20(%rbp), %xmm0
	divss	-16(%rbp), %xmm0
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	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
	.comm	_V_DBLSCAN,4,2                  ## @V_DBLSCAN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x11_get_refresh_rate           ; -- Begin function x11_get_refresh_rate
	.p2align	2
_x11_get_refresh_rate:                  ; @x11_get_refresh_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
Lloh0:
	adrp	x19, _g_x11_dpy@GOTPAGE
Lloh1:
	ldr	x19, [x19, _g_x11_dpy@GOTPAGEOFF]
	ldr	w0, [x19]
	movi	d8, #0000000000000000
	cbz	w0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _g_x11_win@GOTPAGE
Lloh3:
	ldr	x8, [x8, _g_x11_win@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
Lloh5:
	adrp	x8, _None@GOTPAGE
Lloh6:
	ldr	x8, [x8, _None@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_4
; %bb.2:
	add	x2, sp, #24
	bl	_XGetWindowAttributes
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x0, [sp, #24]
	bl	_XScreenNumberOfScreen
	mov	x1, x0
	ldr	w0, [x19]
	add	x2, sp, #4
	add	x3, sp, #8
	bl	_XF86VidModeGetModeLine
	ldp	w10, w8, [sp, #4]
Lloh8:
	adrp	x9, _V_DBLSCAN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V_DBLSCAN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w10, #0
	cinc	w11, w10, lt
	asr	w11, w11, #1
	tst	w9, w8
	csel	w8, w10, w11, eq
	scvtf	s0, w8
	mov	w8, #1148846080
	fmov	s1, w8
	fmul	s0, s0, s1
	ldp	s1, s2, [sp, #12]
	fdiv	s0, s0, s1
	fdiv	s8, s0, s2
LBB0_4:
	fmov	s0, s8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.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
	.comm	_V_DBLSCAN,4,2                  ; @V_DBLSCAN
.subsections_via_symbols
