	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redraw_screen                  ## -- Begin function redraw_screen
	.p2align	4, 0x90
_redraw_screen:                         ## @redraw_screen
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_WARN_CONSOLE_UNLOCKED
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.2:
	movq	_vc_cons@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_fg_console@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	(%rax,%rcx,8), %r15
	cmpq	%rbx, %r15
	je	LBB0_16
## %bb.3:
	movq	%rbx, %rdi
	callq	_CON_IS_VISIBLE
	movl	%eax, %r12d
	movq	40(%rbx), %rax
	movq	%rbx, (%rax)
	movq	(%rbx), %rax
	movq	%rax, (%r13)
	movq	%r15, %rdi
	callq	_hide_cursor
	movq	%r15, %rdi
	callq	_CON_IS_VISIBLE
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	testl	%r12d, %r12d
	jne	LBB0_6
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	callq	_hide_cursor
LBB0_9:
	movl	8(%rbx), %r12d
	movq	%rbx, %rdi
	callq	_set_origin
	movq	32(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_set_palette
	cmpl	8(%rbx), %r12d
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_update_attr
	movq	%rbx, %rdi
	callq	_clear_buffer_attributes
LBB0_11:
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.12:
	movq	16(%rbx), %rax
	movq	_KD_GRAPHICS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
LBB0_13:
	movq	%rbx, %rdi
	callq	_vt_force_oops_output
	testq	%rax, %rax
	je	LBB0_15
LBB0_14:
	movl	24(%rbx), %eax
	movl	28(%rbx), %esi
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movq	%rbx, %rdi
	callq	_do_update_region
LBB0_15:
	movq	%rbx, %rdi
	callq	_set_cursor
	testl	%r14d, %r14d
	jne	LBB0_7
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	callq	_save_screen
	movq	%r15, %rdi
	callq	_set_origin
	testl	%r12d, %r12d
	je	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	callq	_set_cursor
LBB0_7:
	xorl	%eax, %eax
	callq	_set_leds
	xorl	%eax, %eax
	callq	_compute_shiftstate
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_notify_update                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vc_cons,8,3                    ## @vc_cons
	.comm	_fg_console,8,3                 ## @fg_console
	.comm	_KD_GRAPHICS,8,3                ## @KD_GRAPHICS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_redraw_screen                  ; -- Begin function redraw_screen
	.p2align	2
_redraw_screen:                         ; @redraw_screen
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_WARN_CONSOLE_UNLOCKED
	cbz	x19, LBB0_13
; %bb.1:
	cbz	w20, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _vc_cons@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vc_cons@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x23, _fg_console@GOTPAGE
Lloh4:
	ldr	x23, [x23, _fg_console@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	x21, [x8, x9, lsl #3]
	cmp	x21, x19
	b.eq	LBB0_13
; %bb.3:
	mov	x0, x19
	bl	_CON_IS_VISIBLE
	mov	x22, x0
	ldr	x8, [x19, #40]
	str	x19, [x8]
	ldr	x8, [x19]
	str	x8, [x23]
	mov	x0, x21
	bl	_hide_cursor
	mov	x0, x21
	bl	_CON_IS_VISIBLE
	cbz	w0, LBB0_14
; %bb.4:
	cbnz	w22, LBB0_15
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_hide_cursor
LBB0_6:
	ldr	w22, [x19, #8]
	mov	x0, x19
	bl	_set_origin
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	mov	x0, x19
	bl	_set_palette
	ldr	w8, [x19, #8]
	cmp	w22, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_update_attr
	mov	x0, x19
	bl	_clear_buffer_attributes
LBB0_8:
	cbz	w21, LBB0_10
; %bb.9:
	ldr	x8, [x19, #16]
Lloh5:
	adrp	x9, _KD_GRAPHICS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _KD_GRAPHICS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_vt_force_oops_output
	cbz	x0, LBB0_12
LBB0_11:
	ldp	w8, w1, [x19, #24]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x19
	bl	_do_update_region
LBB0_12:
	mov	x0, x19
	bl	_set_cursor
	cbnz	w20, LBB0_16
LBB0_13:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x21
	bl	_save_screen
	mov	x0, x21
	bl	_set_origin
	cbz	w22, LBB0_6
LBB0_15:
	mov	x0, x19
	bl	_set_cursor
LBB0_16:
	bl	_set_leds
	bl	_compute_shiftstate
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_notify_update
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_vc_cons,8,3                    ; @vc_cons
	.comm	_fg_console,8,3                 ; @fg_console
	.comm	_KD_GRAPHICS,8,3                ; @KD_GRAPHICS
.subsections_via_symbols
