	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___console_vipostcb             ## -- Begin function __console_vipostcb
	.p2align	4, 0x90
___console_vipostcb:                    ## @__console_vipostcb
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_do_xfb_copy@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	movq	_curr_con@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	24(%rax), %rbx
	xorl	%eax, %eax
	callq	_VIDEO_GetCurrentFramebuffer
	movq	%rax, %r9
	movq	(%r15), %r10
	movslq	4(%r10), %r11
	leal	3(%r11), %esi
	testq	%r11, %r11
	movq	_VI_DISPLAY_PIX_SZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	cmovnsl	%r11d, %esi
	movslq	12(%r10), %r15
	movl	%r15d, %eax
	cltd
	idivl	%edi
	movq	16(%r10), %r8
	testq	%r8, %r8
	jle	LBB0_15
## %bb.1:
	sarl	$2, %esi
	subl	%eax, %esi
	movslq	%esi, %r12
	movslq	(%r10), %rcx
	imulq	%rcx, %r11
	leaq	(%r9,%r11,8), %rcx
	movslq	8(%r10), %rdx
	imulq	%rdi, %rdx
	leaq	(%rcx,%rdx,8), %rdx
	testb	$1, %r8b
	jne	LBB0_3
## %bb.2:
	movq	%r8, %rsi
	cmpq	$1, %r8
	jne	LBB0_8
	jmp	LBB0_15
LBB0_3:
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.4:
	movq	%r15, %rsi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	addq	$8, %rbx
	movq	%rcx, (%rdx)
	addq	$8, %rdx
	subq	%rdi, %rsi
	testq	%rsi, %rsi
	jg	LBB0_5
LBB0_6:
	leaq	(%rdx,%r12,8), %rdx
	leaq	-1(%r8), %rsi
	cmpq	$1, %r8
	jne	LBB0_8
LBB0_15:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%rdx,%r12,8), %rdx
	leaq	-2(%rsi), %rax
	cmpq	$2, %rsi
	movq	%rax, %rsi
	jle	LBB0_15
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rcx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rax
	addq	$8, %rbx
	movq	%rax, (%rdx)
	addq	$8, %rdx
	subq	%rdi, %rcx
	testq	%rcx, %rcx
	jg	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%rdx,%r12,8), %rdx
	testl	%r15d, %r15d
	jle	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r15, %rcx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rax
	addq	$8, %rbx
	movq	%rax, (%rdx)
	addq	$8, %rdx
	subq	%rdi, %rcx
	testq	%rcx, %rcx
	jg	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_do_xfb_copy,4,2                ## @do_xfb_copy
	.comm	_curr_con,8,3                   ## @curr_con
	.comm	_VI_DISPLAY_PIX_SZ,4,2          ## @VI_DISPLAY_PIX_SZ
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___console_vipostcb             ; -- Begin function __console_vipostcb
	.p2align	2
___console_vipostcb:                    ; @__console_vipostcb
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	adrp	x19, _do_xfb_copy@GOTPAGE
Lloh3:
	ldr	x19, [x19, _do_xfb_copy@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh5:
	adrp	x21, _curr_con@GOTPAGE
Lloh6:
	ldr	x21, [x21, _curr_con@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x20, [x8, #24]
	bl	_VIDEO_GetCurrentFramebuffer
	ldr	x12, [x21]
	ldr	w13, [x12, #4]
	add	w8, w13, #3
	cmp	w13, #0
	csel	w10, w8, w13, lt
	ldr	x8, [x12, #16]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.1:
Lloh7:
	adrp	x9, _VI_DISPLAY_PIX_SZ@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VI_DISPLAY_PIX_SZ@GOTPAGEOFF]
Lloh9:
	ldrsw	x9, [x9]
	asr	w11, w10, #2
	ldp	w14, w10, [x12, #8]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	sdiv	w15, w10, w9
	sub	w11, w11, w15
	sxtw	x11, w11
	ldr	w12, [x12]
	mul	w12, w13, w12
	add	x12, x0, w12, sxtw #3
	mul	w13, w9, w14
	add	x12, x12, w13, sxtw #3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x12, x12, x11, lsl #3
	subs	x8, x8, #1
	b.le	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w10, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x13, x10
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x14, [x20], #8
	str	x14, [x12], #8
	sub	x13, x13, x9
	cmp	x13, #0
	b.gt	LBB0_5
	b	LBB0_2
LBB0_6:
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_do_xfb_copy,4,2                ; @do_xfb_copy
	.comm	_curr_con,8,3                   ; @curr_con
	.comm	_VI_DISPLAY_PIX_SZ,4,2          ; @VI_DISPLAY_PIX_SZ
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
