	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function revert
_revert:                                ## @revert
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	movq	_VT_ACTIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_cur_info@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	xorl	%edi, %edi
	callq	_ioctl
	movq	_KDSBORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%rbx), %rdx
	xorl	%edi, %edi
	callq	_ioctl
	movq	_stderr@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	52(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	(%r12), %edi
	movl	56(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movq	_vt4_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_PIO_SCRNMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	8(%rbx), %rdx
	xorl	%edi, %edi
	callq	_ioctl
LBB0_2:
	movq	_video_mode_changed@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.3:
	movq	16(%rbx), %rsi
	movq	_M_VESA_BASE@GOTPCREL(%rip), %rcx
	movq	%rsi, %rax
	subq	(%rcx), %rax
	jge	LBB0_4
## %bb.5:
	movl	$83, %edi
	jmp	LBB0_6
LBB0_4:
	movl	$86, %edi
	movq	%rax, %rsi
LBB0_6:
	callq	__IO
	xorl	%edi, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_ioctl
	movq	_V_INFO_GRAPHICS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 64(%rbx)
	je	LBB0_8
## %bb.7:
	movl	32(%rbx), %eax
	movl	%eax, -52(%rbp)
	movq	36(%rbx), %rax
	movq	%rax, -48(%rbp)
	movq	_KDRASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	xorl	%edi, %edi
	callq	_ioctl
LBB0_8:
	movl	(%r12), %edi
	movl	44(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	movl	(%r12), %edi
	movl	48(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
	movl	%r15d, (%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_VT_ACTIVATE,4,2                ## @VT_ACTIVATE
	.comm	_cur_info,72,3                  ## @cur_info
	.comm	_KDSBORDER,4,2                  ## @KDSBORDER
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\033[=%dH"

L_.str.1:                               ## @.str.1
	.asciz	"\033[=%dI"

	.comm	_vt4_mode,8,3                   ## @vt4_mode
	.comm	_PIO_SCRNMAP,4,2                ## @PIO_SCRNMAP
	.comm	_video_mode_changed,8,3         ## @video_mode_changed
	.comm	_M_VESA_BASE,8,3                ## @M_VESA_BASE
	.comm	_V_INFO_GRAPHICS,4,2            ## @V_INFO_GRAPHICS
	.comm	_KDRASTER,4,2                   ## @KDRASTER
L_.str.2:                               ## @.str.2
	.asciz	"\033[=%dF"

L_.str.3:                               ## @.str.3
	.asciz	"\033[=%dG"

	.no_dead_strip	_revert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function revert
_revert:                                ; @revert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x19, _errno@GOTPAGE
Lloh4:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	ldr	w20, [x19]
Lloh5:
	adrp	x8, _VT_ACTIVATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VT_ACTIVATE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x21, _cur_info@GOTPAGE
Lloh9:
	ldr	x21, [x21, _cur_info@GOTPAGEOFF]
	ldr	x2, [x21]
	mov	w0, #0
	bl	_ioctl
Lloh10:
	adrp	x8, _KDSBORDER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KDSBORDER@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	x2, [x21, #24]
	mov	w0, #0
	bl	_ioctl
Lloh13:
	adrp	x22, _stderr@GOTPAGE
Lloh14:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w2, [x21, #52]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w0, [x22]
	ldr	w2, [x21, #56]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
Lloh19:
	adrp	x8, _vt4_mode@GOTPAGE
Lloh20:
	ldr	x8, [x8, _vt4_mode@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh22:
	adrp	x8, _PIO_SCRNMAP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PIO_SCRNMAP@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x2, x21, #8
	mov	w0, #0
	bl	_ioctl
LBB0_2:
Lloh25:
	adrp	x8, _video_mode_changed@GOTPAGE
Lloh26:
	ldr	x8, [x8, _video_mode_changed@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	x1, [x21, #16]
Lloh28:
	adrp	x8, _M_VESA_BASE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _M_VESA_BASE@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	subs	x8, x1, x8
	b.ge	LBB0_5
; %bb.4:
	mov	w0, #83
	b	LBB0_6
LBB0_5:
	mov	w0, #86
	mov	x1, x8
LBB0_6:
	bl	__IO
	mov	x1, x0
	mov	w0, #0
	mov	x2, #0
	bl	_ioctl
	ldr	w8, [x21, #64]
Lloh31:
	adrp	x9, _V_INFO_GRAPHICS@GOTPAGE
Lloh32:
	ldr	x9, [x9, _V_INFO_GRAPHICS@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	d0, [x21, #32]
	str	d0, [sp, #8]
	ldr	w8, [x21, #40]
	str	w8, [sp, #16]
Lloh34:
	adrp	x8, _KDRASTER@GOTPAGE
Lloh35:
	ldr	x8, [x8, _KDRASTER@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w0, #0
	bl	_ioctl
LBB0_8:
	ldr	w0, [x22]
	ldr	w2, [x21, #44]
Lloh37:
	adrp	x1, l_.str.2@PAGE
Lloh38:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldr	w0, [x22]
	ldr	w2, [x21, #48]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	str	w20, [x19]
	ldr	x8, [sp, #24]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_VT_ACTIVATE,4,2                ; @VT_ACTIVATE
	.comm	_cur_info,72,3                  ; @cur_info
	.comm	_KDSBORDER,4,2                  ; @KDSBORDER
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\033[=%dH"

l_.str.1:                               ; @.str.1
	.asciz	"\033[=%dI"

	.comm	_vt4_mode,8,3                   ; @vt4_mode
	.comm	_PIO_SCRNMAP,4,2                ; @PIO_SCRNMAP
	.comm	_video_mode_changed,8,3         ; @video_mode_changed
	.comm	_M_VESA_BASE,8,3                ; @M_VESA_BASE
	.comm	_V_INFO_GRAPHICS,4,2            ; @V_INFO_GRAPHICS
	.comm	_KDRASTER,4,2                   ; @KDRASTER
l_.str.2:                               ; @.str.2
	.asciz	"\033[=%dF"

l_.str.3:                               ; @.str.3
	.asciz	"\033[=%dG"

	.no_dead_strip	_revert
.subsections_via_symbols
