	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	2                               ## -- Begin function get_video_mode
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x447a0000                      ## float 1000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_get_video_mode:                        ## @get_video_mode
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)
	movq	$0, -56(%rbp)
	movq	%rsi, %rdi
	callq	_DefaultScreen
	leaq	-44(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_XF86VidModeGetAllModeLines
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	-56(%rbp), %rdi
	movq	(%rdi), %rax
	movl	16(%rax), %ecx
	movl	%ecx, 16(%r13)
	movups	(%rax), %xmm0
	movups	%xmm0, (%r13)
	jle	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 8(%rcx)
	sete	%al
	leaq	LCPI0_0(%rip), %rcx
	movss	(%rcx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, -96(%rbp)                ## 16-byte Spill
	xorps	%xmm0, %xmm0
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	16(%r14), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 16(%rcx)
	movups	(%r14), %xmm1
	movups	%xmm1, (%rcx)
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	-44(%rbp), %rax
	movq	-56(%rbp), %rdi
	cmpq	%rax, %rbx
	jge	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rbx,8), %r14
	testq	%r14, %r14
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r12d, (%r14)
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r15d, 4(%r14)
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movsd	8(%r14), %xmm0                  ## xmm0 = mem[0],zero
	movaps	-96(%rbp), %xmm1                ## 16-byte Reload
	insertps	$16, 16(%r14), %xmm1            ## xmm1 = xmm1[0],mem[0],xmm1[2,3]
	mulps	%xmm0, %xmm1
	movshdup	%xmm1, %xmm0                    ## xmm0 = xmm1[1,1,3,3]
	mulss	LCPI0_1(%rip), %xmm1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	xorps	%xmm2, %xmm2
	cvtsi2ssq	(%rax), %xmm2
	divss	%xmm0, %xmm1
	subss	%xmm2, %xmm1
	cvttss2si	%xmm1, %rdi
	callq	_fabsf
	testl	%r13d, %r13d
	movl	$1, %r13d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_11
	jmp	LBB0_10
LBB0_1:
	xorl	%r13d, %r13d
	movq	-56(%rbp), %rdi
	jmp	LBB0_12
LBB0_3:
	xorl	%r13d, %r13d
LBB0_12:
	callq	_XFree
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_video_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_video_mode
_get_video_mode:                        ; @get_video_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	mov	x23, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x22, x0
	str	wzr, [sp, #12]
	str	xzr, [sp]
	mov	x0, x1
	bl	_DefaultScreen
	mov	x1, x0
	add	x2, sp, #12
	mov	x3, sp
	mov	x0, x24
	bl	_XF86VidModeGetAllModeLines
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_11
; %bb.1:
	ldr	x0, [sp]
	ldr	x9, [x0]
	ldr	w10, [x9, #16]
	ldr	q0, [x9]
	str	q0, [x23]
	str	w10, [x23, #16]
	ldr	x9, [x22, #8]
	cmp	x9, #0
	fmov	s0, #0.50000000
	fmov	s1, #1.00000000
	fcsel	s8, s1, s0, eq
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.2:
	mov	x24, #0
	mov	w23, #0
	movi	d9, #0000000000000000
	mov	w25, #1148846080
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	q1, [x26]
	ldr	w8, [x26, #16]
	str	w8, [x19, #16]
	str	q1, [x19]
	mov	w23, #1
	fmov	s9, s0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [sp, #12]
	ldr	x0, [sp]
	cmp	x24, x8
	b.ge	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x0, x24, lsl #3]
	cbz	x26, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26, #4]
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	s0, s1, [x26, #8]
	fmul	s0, s8, s0
	fmov	s2, w25
	fmul	s0, s0, s2
	ldr	s2, [x26, #16]
	fmul	s1, s1, s2
	fdiv	s0, s0, s1
	ldr	x8, [x22]
	scvtf	s1, x8
	fsub	s0, s0, s1
	fcvtzs	x0, s0
	bl	_fabsf
	cbz	w23, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	fcmp	s0, s9
	b.mi	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w23, #1
	b	LBB0_4
LBB0_11:
	mov	w23, #0
	ldr	x0, [sp]
	b	LBB0_13
LBB0_12:
	mov	w23, #0
LBB0_13:
	bl	_XFree
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_video_mode
.subsections_via_symbols
