	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drv_doupdate
_drv_doupdate:                          ## @drv_doupdate
	.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	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_AssertTCB
	xorl	%eax, %eax
	callq	_SetSP
	leaq	L_.str(%rip), %rdi
	callq	_T_CALLED
	movl	%ebx, %edi
	callq	_T
	movq	%rbx, %rdi
	callq	_okConsoleHandle
	testq	%rax, %rax
	je	LBB0_26
## %bb.1:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	callq	_screen_columns
	movl	%eax, %r12d
	callq	_screen_lines
	movl	%eax, %ebx
	callq	_NewScreen
	movl	(%rax), %esi
	incl	%esi
	movl	%ebx, %edi
	callq	_min
	movl	%eax, %r15d
	callq	_CurScreen
	cmpq	$0, 24(%rax)
	movl	%r15d, %r14d
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_3
## %bb.2:
	callq	_NewScreen
	cmpq	$0, 24(%rax)
	je	LBB0_9
LBB0_3:
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	%r12d, %r13d
	testl	%r12d, %r12d
	jle	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$32, %esi
	movq	%r14, %rdx
	callq	_memset
LBB0_5:
	testl	%r15d, %r15d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	jle	LBB0_8
## %bb.6:
	movslq	-52(%rbp), %rcx                 ## 4-byte Folded Reload
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	shlq	$4, %r15
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_con_write
	callq	_CurScreen
	movq	16(%rax), %rax
	movq	(%rax,%r12), %rsi
	movq	%rbx, %rdi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	callq	_memcpy
	movq	%r13, %rax
	incl	%r14d
	addq	$16, %r12
	cmpq	%r12, %r15
	jne	LBB0_7
LBB0_8:
	movq	_FALSE@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	callq	_CurScreen
	movq	%rbx, 24(%rax)
	movq	(%r14), %rbx
	callq	_NewScreen
	movq	%rbx, 24(%rax)
	callq	_NewScreen
	movq	%rax, %rdi
	callq	_touchwin
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_9:
	testl	%r15d, %r15d
	jle	LBB0_18
## %bb.10:
	movl	$8, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	addq	$16, %r15
	cmpq	%rbx, %r14
	je	LBB0_18
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	callq	_NewScreen
	movq	16(%rax), %rax
	movslq	(%rax,%r15), %r12
	movq	__NOCHANGE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	callq	_NewScreen
	movq	16(%rax), %rax
	movl	4(%rax,%r15), %r13d
	subl	%r12d, %r13d
	js	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	incl	%r13d
	callq	_CurScreen
	movq	16(%rax), %rax
	movq	-8(%rax,%r15), %r14
	addq	%r12, %r14
	callq	_NewScreen
	movq	16(%rax), %rax
	movq	-8(%rax,%r15), %rsi
	addq	%r12, %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_memcpy
	callq	_CurScreen
	movq	16(%rax), %rax
	movq	%r12, %rcx
	addq	-8(%rax,%r15), %rcx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%r13d, %r8d
	callq	_con_write
	callq	_NewScreen
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jg	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	callq	_NewScreen
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_MARK_NOCHANGE
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	callq	_CurScreen
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jg	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	callq	_CurScreen
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_MARK_NOCHANGE
	jmp	LBB0_17
LBB0_18:
	callq	_NewScreen
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	cmpl	(%rax), %r12d
	jg	LBB0_21
## %bb.19:
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	callq	_NewScreen
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_MARK_NOCHANGE
	leal	1(%rbx), %r14d
	callq	_NewScreen
	cmpl	(%rax), %ebx
	movl	%r14d, %ebx
	jl	LBB0_20
LBB0_21:
	callq	_CurScreen
	cmpl	(%rax), %r12d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jg	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	callq	_CurScreen
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_MARK_NOCHANGE
	leal	1(%r12), %ebx
	callq	_CurScreen
	cmpl	(%rax), %r12d
	movl	%ebx, %r12d
	jl	LBB0_22
LBB0_23:
	callq	_NewScreen
	cmpl	$0, 12(%rax)
	jne	LBB0_25
## %bb.24:
	callq	_NewScreen
	movl	4(%rax), %ebx
	callq	_CurScreen
	movl	%ebx, 4(%rax)
	callq	_NewScreen
	movl	8(%rax), %ebx
	callq	_CurScreen
	movl	%ebx, 8(%rax)
	movq	(%r15), %rax
	movq	(%rax), %r14
	callq	_CurScreen
	movl	8(%rax), %ebx
	callq	_CurScreen
	movl	4(%rax), %r8d
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	*%r14
LBB0_25:
	movq	%r15, %rdi
	callq	_selectActiveHandle
	movq	_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_26:
	movl	%r14d, %edi
	callq	_returnCode
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR,4,2                        ## @ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"win32con::drv_doupdate(%p)"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	__NOCHANGE,4,2                  ## @_NOCHANGE
	.comm	_OK,4,2                         ## @OK
	.no_dead_strip	_drv_doupdate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drv_doupdate
_drv_doupdate:                          ; @drv_doupdate
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	bl	_AssertTCB
	bl	_SetSP
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_T_CALLED
	mov	x0, x19
	bl	_T
	mov	x0, x19
	bl	_okConsoleHandle
	cbz	x0, LBB0_26
; %bb.1:
	bl	_screen_columns
	mov	x21, x0
	bl	_screen_lines
	mov	x20, x0
	bl	_NewScreen
	ldr	w8, [x0]
	add	w1, w8, #1
	mov	x0, x20
	bl	_min
	mov	x20, x0
	bl	_CurScreen
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_3
; %bb.2:
	bl	_NewScreen
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_9
LBB0_3:
	mov	x25, sp
	mov	w2, w21
	mov	x9, x2
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x22
	mov	w1, #32
	bl	_memset
LBB0_5:
	cmp	w20, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x26, #0
	mov	w23, #0
	sxtw	x24, w21
	mov	w8, w20
	lsl	x27, x8, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	mov	x3, x22
	mov	x4, x21
	bl	_con_write
	bl	_CurScreen
	ldr	x8, [x0, #16]
	ldr	x1, [x8, x26]
	mov	x0, x22
	mov	x2, x24
	bl	_memcpy
	add	w23, w23, #1
	add	x26, x26, #16
	cmp	x27, x26
	b.ne	LBB0_7
LBB0_8:
Lloh10:
	adrp	x21, _FALSE@GOTPAGE
Lloh11:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
	ldr	x22, [x21]
	bl	_CurScreen
	str	x22, [x0, #24]
	ldr	x21, [x21]
	bl	_NewScreen
	str	x21, [x0, #24]
	bl	_NewScreen
	bl	_touchwin
	mov	sp, x25
LBB0_9:
	cmp	w20, #1
	b.lt	LBB0_18
; %bb.10:
	mov	x21, #0
	mov	w25, #8
Lloh12:
	adrp	x26, __NOCHANGE@GOTPAGE
Lloh13:
	ldr	x26, [x26, __NOCHANGE@GOTPAGEOFF]
	mov	w27, w20
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x21, x21, #1
	add	x25, x25, #16
	cmp	x27, x21
	b.eq	LBB0_18
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	bl	_NewScreen
	ldr	x8, [x0, #16]
	ldrsw	x22, [x8, x25]
	ldr	w8, [x26]
	cmp	w22, w8
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_NewScreen
	ldr	x8, [x0, #16]
	add	x8, x8, x25
	ldr	w8, [x8, #4]
	subs	w8, w8, w22
	b.mi	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w23, w8, #1
	bl	_CurScreen
	ldr	x8, [x0, #16]
	add	x8, x8, x25
	ldur	x8, [x8, #-8]
	add	x24, x8, x22
	bl	_NewScreen
	ldr	x8, [x0, #16]
	add	x8, x8, x25
	ldur	x8, [x8, #-8]
	add	x1, x8, x22
	mov	x0, x24
	mov	x2, x23
	bl	_memcpy
	bl	_CurScreen
	ldr	x8, [x0, #16]
	add	x8, x8, x25
	ldur	x8, [x8, #-8]
	add	x3, x8, x22
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x4, x23
	bl	_con_write
	bl	_NewScreen
	ldrsw	x8, [x0]
	cmp	x21, x8
	b.gt	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_NewScreen
	mov	x1, x21
	bl	_MARK_NOCHANGE
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_CurScreen
	ldrsw	x8, [x0]
	cmp	x21, x8
	b.gt	LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_CurScreen
	mov	x1, x21
	bl	_MARK_NOCHANGE
	b	LBB0_11
LBB0_18:
	bl	_NewScreen
	ldr	w8, [x0]
	cmp	w20, w8
	b.gt	LBB0_21
; %bb.19:
	mov	x21, x20
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	bl	_NewScreen
	mov	x1, x21
	bl	_MARK_NOCHANGE
	add	w22, w21, #1
	bl	_NewScreen
	ldr	w8, [x0]
	cmp	w21, w8
	mov	x21, x22
	b.lt	LBB0_20
LBB0_21:
	bl	_CurScreen
	ldr	w8, [x0]
	cmp	w20, w8
	b.gt	LBB0_23
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	bl	_CurScreen
	mov	x1, x20
	bl	_MARK_NOCHANGE
	add	w21, w20, #1
	bl	_CurScreen
	ldr	w8, [x0]
	cmp	w20, w8
	mov	x20, x21
	b.lt	LBB0_22
LBB0_23:
	bl	_NewScreen
	ldr	w8, [x0, #12]
	cbnz	w8, LBB0_25
; %bb.24:
	bl	_NewScreen
	ldr	w20, [x0, #4]
	bl	_CurScreen
	str	w20, [x0, #4]
	bl	_NewScreen
	ldr	w20, [x0, #8]
	bl	_CurScreen
	str	w20, [x0, #8]
	ldr	x8, [x19]
	ldr	x21, [x8]
	bl	_CurScreen
	ldr	w20, [x0, #8]
	bl	_CurScreen
	ldr	w4, [x0, #4]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	x3, x20
	blr	x21
LBB0_25:
	mov	x0, x19
	bl	_selectActiveHandle
Lloh14:
	adrp	x8, _OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OK@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
LBB0_26:
	mov	x0, x20
	bl	_returnCode
	ldur	x8, [x29, #-88]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR,4,2                        ; @ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"win32con::drv_doupdate(%p)"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	__NOCHANGE,4,2                  ; @_NOCHANGE
	.comm	_OK,4,2                         ; @OK
	.no_dead_strip	_drv_doupdate
.subsections_via_symbols
