	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __putstr
___putstr:                              ## @__putstr
	.cfi_startproc
## %bb.0:
	testl	%edi, %edi
	je	LBB0_10
## %bb.1:
	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
	movq	%rsi, %rbx
	movq	_real_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax), %r14d
	movl	12(%rax), %eax
	movq	_cols@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	movl	%r13d, %eax
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%rax, %r12
	leal	1(%rax), %r13d
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%rbx
	movzbl	-1(%rbx), %eax
	cmpb	$10, %al
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	testb	%al, %al
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_vidmem@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r15), %edx
	movq	%r12, %rsi
	imull	%esi, %edx
	addl	%r14d, %edx
	movslq	%edx, %rdx
	movb	%al, (%rcx,%rdx,2)
	incl	%r14d
	cmpl	(%r15), %r14d
	jl	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	_lines@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_scroll
	jmp	LBB0_3
LBB0_9:
	movq	_real_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, 8(%rax)
	movq	%r12, %rbx
	movl	%ebx, 12(%rax)
	imull	(%r15), %ebx
	addl	%r14d, %ebx
	movq	_vidport@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movl	$14, %edi
	callq	_outb
	movzbl	%bh, %edi
	movq	(%r14), %rsi
	incq	%rsi
	callq	_outb
	movq	(%r14), %rsi
	movl	$15, %edi
	callq	_outb
	movzbl	%bl, %edi
	movq	(%r14), %rsi
	incq	%rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outb                           ## TAILCALL
LBB0_10:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_real_mode,8,3                  ## @real_mode
	.comm	_lines,4,2                      ## @lines
	.comm	_vidmem,8,3                     ## @vidmem
	.comm	_cols,4,2                       ## @cols
	.comm	_vidport,8,3                    ## @vidport
	.no_dead_strip	___putstr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __putstr
___putstr:                              ; @__putstr
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_10
; %bb.1:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
Lloh0:
	adrp	x20, _real_mode@GOTPAGE
Lloh1:
	ldr	x20, [x20, _real_mode@GOTPAGEOFF]
	ldr	x9, [x20]
	ldp	w8, w22, [x9, #8]
Lloh2:
	adrp	x23, _lines@GOTPAGE
Lloh3:
	ldr	x23, [x23, _lines@GOTPAGEOFF]
Lloh4:
	adrp	x24, _vidmem@GOTPAGE
Lloh5:
	ldr	x24, [x24, _vidmem@GOTPAGEOFF]
Lloh6:
	adrp	x21, _cols@GOTPAGE
Lloh7:
	ldr	x21, [x21, _cols@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
	mov	x22, x25
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	add	w25, w22, #1
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x19, x19, #1
	ldurb	w9, [x19, #-1]
	cmp	w9, #10
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	cbz	w9, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x10, [x24]
	ldr	w11, [x21]
	madd	w11, w11, w22, w8
	sbfiz	x11, x11, #1, #32
	strb	w9, [x10, x11]
	add	w8, w8, #1
	ldr	w9, [x21]
	cmp	w8, w9
	b.lt	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [x23]
	cmp	w25, w8
	b.lt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=2
	bl	_scroll
	mov	w8, #0
	b	LBB0_4
LBB0_9:
	ldr	x9, [x20]
	stp	w8, w22, [x9, #8]
	ldr	w9, [x21]
	madd	w19, w9, w22, w8
Lloh8:
	adrp	x20, _vidport@GOTPAGE
Lloh9:
	ldr	x20, [x20, _vidport@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	w0, #14
	bl	_outb
	ubfx	w0, w19, #8, #8
	ldr	x8, [x20]
	add	x1, x8, #1
	bl	_outb
	ldr	x1, [x20]
	mov	w0, #15
	bl	_outb
	and	w0, w19, #0xff
	ldr	x8, [x20]
	add	x1, x8, #1
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_outb
LBB0_10:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_real_mode,8,3                  ; @real_mode
	.comm	_lines,4,2                      ; @lines
	.comm	_vidmem,8,3                     ; @vidmem
	.comm	_cols,4,2                       ; @cols
	.comm	_vidport,8,3                    ; @vidport
	.no_dead_strip	___putstr
.subsections_via_symbols
