	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Con_CheckResize                ## -- Begin function Con_CheckResize
	.p2align	4, 0x90
_Con_CheckResize:                       ## @Con_CheckResize
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CON_TEXTSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	(%rbx,%rbx), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_SCREEN_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SMALLCHAR_WIDTH@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
                                        ## kill: def $eax killed $eax def $rax
	leal	-2(%rax), %ecx
	movq	_con@GOTPCREL(%rip), %r13
	movl	(%r13), %r15d
	cmpl	%r15d, %ecx
	je	LBB0_16
## %bb.1:
	cmpl	$2, %eax
	jg	LBB0_5
## %bb.2:
	movq	_DEFAULT_CONSOLE_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r13)
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, 4(%r13)
	testl	%ebx, %ebx
	movq	_CON_TEXTSIZE@GOTPCREL(%rip), %r15
	jle	LBB0_15
## %bb.3:
	xorl	%ebx, %ebx
	movq	_COLOR_WHITE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_ColorIndex
	shll	$8, %eax
	orl	$32, %eax
	movq	8(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
	jmp	LBB0_15
LBB0_5:
	movl	%ecx, (%r13)
	movl	4(%r13), %r14d
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, 4(%r13)
	cmpl	%r14d, %eax
	cmovgel	%r14d, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	%r15d, %ecx
	cmovgel	%r15d, %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	8(%r13), %rsi
	addl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_Com_Memcpy
	movq	_CON_TEXTSIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_COLOR_WHITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ColorIndex
	shll	$8, %eax
	orl	$32, %eax
	movq	8(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	_CON_TEXTSIZE@GOTPCREL(%rip), %rax
	incq	%rbx
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movl	-56(%rbp), %r11d                ## 4-byte Reload
	jle	LBB0_14
## %bb.9:
	movq	8(%r13), %r9
	movl	%r11d, %r10d
	xorl	%r8d, %r8d
	movl	$-1, %edi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%r8d
	decl	%edi
	cmpl	-52(%rbp), %r8d                 ## 4-byte Folded Reload
	je	LBB0_14
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	testl	%r11d, %r11d
	jle	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r14d, %ebx
	subl	%r8d, %ebx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	16(%r13), %eax
	addl	%ebx, %eax
	cltd
	idivl	%r14d
	imull	%r15d, %edx
	movslq	%edx, %rax
	addq	%rcx, %rax
	movswl	(%r12,%rax,2), %eax
	movslq	(%r13), %rdx
	movl	4(%r13), %esi
	addl	%edi, %esi
	movslq	%esi, %rsi
	imulq	%rdx, %rsi
	addq	%rcx, %rsi
	movl	%eax, (%r9,%rsi,4)
	incq	%rcx
	cmpl	%ecx, %r10d
	jne	LBB0_12
	jmp	LBB0_13
LBB0_14:
	xorl	%eax, %eax
	callq	_Con_ClearNotify
LBB0_15:
	movl	4(%r13), %eax
	decl	%eax
	movl	%eax, 16(%r13)
	movl	%eax, 20(%r13)
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CON_TEXTSIZE,4,2               ## @CON_TEXTSIZE
	.comm	_SCREEN_WIDTH,4,2               ## @SCREEN_WIDTH
	.comm	_SMALLCHAR_WIDTH,4,2            ## @SMALLCHAR_WIDTH
	.comm	_con,24,3                       ## @con
	.comm	_DEFAULT_CONSOLE_WIDTH,4,2      ## @DEFAULT_CONSOLE_WIDTH
	.comm	_COLOR_WHITE,4,2                ## @COLOR_WHITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Con_CheckResize                ; -- Begin function Con_CheckResize
	.p2align	2
_Con_CheckResize:                       ; @Con_CheckResize
	.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
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	x22, _CON_TEXTSIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CON_TEXTSIZE@GOTPAGEOFF]
	ldr	w12, [x22]
	lsl	x8, x12, #1
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x3fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh7:
	adrp	x8, _SCREEN_WIDTH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SCREEN_WIDTH@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _SMALLCHAR_WIDTH@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SMALLCHAR_WIDTH@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	sdiv	w9, w8, w9
	sub	w8, w9, #2
Lloh13:
	adrp	x20, _con@GOTPAGE
Lloh14:
	ldr	x20, [x20, _con@GOTPAGEOFF]
	ldr	w21, [x20]
	cmp	w8, w21
	b.eq	LBB0_16
; %bb.1:
	cmp	w9, #2
	b.gt	LBB0_5
; %bb.2:
Lloh15:
	adrp	x8, _DEFAULT_CONSOLE_WIDTH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DEFAULT_CONSOLE_WIDTH@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	sdiv	w9, w12, w8
	stp	w8, w9, [x20]
	cmp	w12, #1
	b.lt	LBB0_15
; %bb.3:
	mov	x19, #0
Lloh18:
	adrp	x21, _COLOR_WHITE@GOTPAGE
Lloh19:
	ldr	x21, [x21, _COLOR_WHITE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_ColorIndex
	mov	w8, #32
	bfi	w8, w0, #8, #24
	ldr	x9, [x20, #8]
	str	w8, [x9, x19, lsl #2]
	add	x19, x19, #1
	ldrsw	x8, [x22]
	cmp	x19, x8
	b.lt	LBB0_4
	b	LBB0_15
LBB0_5:
	ldr	w23, [x20, #4]
	sdiv	w9, w12, w8
	stp	w8, w9, [x20]
	cmp	w9, w23
	csel	w24, w9, w23, lt
	cmp	w8, w21
	csel	w25, w8, w21, lt
	ldr	x1, [x20, #8]
	lsl	w2, w12, #1
	mov	x0, x19
	bl	_Com_Memcpy
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x26, #0
Lloh20:
	adrp	x27, _COLOR_WHITE@GOTPAGE
Lloh21:
	ldr	x27, [x27, _COLOR_WHITE@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	bl	_ColorIndex
	mov	w8, #32
	bfi	w8, w0, #8, #24
	ldr	x9, [x20, #8]
	str	w8, [x9, x26, lsl #2]
	add	x26, x26, #1
	ldrsw	x8, [x22]
	cmp	x26, x8
	b.lt	LBB0_7
LBB0_8:
	cmp	w24, #1
	b.lt	LBB0_14
; %bb.9:
	mov	w8, #0
	ldr	x9, [x20, #8]
	mov	w10, #-1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w8, w8, #1
	sub	w10, w10, #1
	cmp	w8, w24
	b.eq	LBB0_14
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	cmp	w25, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x11, #0
	sub	w12, w23, w8
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w13, [x20, #16]
	add	w13, w12, w13
	sdiv	w14, w13, w23
	msub	w13, w14, w23, w13
	mul	w13, w13, w21
	add	x13, x11, w13, sxtw
	ldrsh	w13, [x19, x13, lsl #1]
	ldp	w15, w14, [x20]
                                        ; kill: def $w15 killed $w15 def $x15
	sxtw	x15, w15
	add	w14, w10, w14
	sxtw	x14, w14
	madd	x14, x15, x14, x11
	str	w13, [x9, x14, lsl #2]
	add	x11, x11, #1
	cmp	w25, w11
	b.ne	LBB0_13
	b	LBB0_10
LBB0_14:
	bl	_Con_ClearNotify
LBB0_15:
	ldr	w8, [x20, #4]
	sub	w8, w8, #1
	stp	w8, w8, [x20, #16]
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	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_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_CON_TEXTSIZE,4,2               ; @CON_TEXTSIZE
	.comm	_SCREEN_WIDTH,4,2               ; @SCREEN_WIDTH
	.comm	_SMALLCHAR_WIDTH,4,2            ; @SMALLCHAR_WIDTH
	.comm	_con,24,3                       ; @con
	.comm	_DEFAULT_CONSOLE_WIDTH,4,2      ; @DEFAULT_CONSOLE_WIDTH
	.comm	_COLOR_WHITE,4,2                ; @COLOR_WHITE
.subsections_via_symbols
