	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_char
_write_char:                            ## @write_char
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r10
	movq	8(%rdi), %rcx
	movq	(%rsi), %rax
	movq	(%rax,%rcx,8), %r8
	movq	_SCREEN_COLUMNS@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	cmpq	%r9, %r10
	jae	LBB0_3
## %bb.1:
	movq	8(%rsi), %rax
	movq	16(%rsi), %rsi
	movq	(%rsi,%rcx,8), %rsi
	movq	(%rax,%rcx,8), %rax
	movb	%dl, (%r8,%r10)
	movb	16(%rdi), %cl
	movb	%cl, (%rax,%r10)
	movb	17(%rdi), %al
	movb	%al, (%rsi,%r10)
	movq	_CCSET_BASIC_AMERICAN@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, 17(%rdi)
	testb	%dl, %dl
	je	LBB0_6
## %bb.2:
	incq	(%rdi)
	popq	%rbp
	retq
LBB0_3:
	testb	%dl, %dl
	jne	LBB0_7
## %bb.4:
	cmpq	%r9, %r10
	jne	LBB0_7
## %bb.5:
	movb	$0, (%r8,%r10)
LBB0_6:
	popq	%rbp
	retq
LBB0_7:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	popq	%rbp
	jmp	_av_log                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCREEN_COLUMNS,8,3             ## @SCREEN_COLUMNS
	.comm	_CCSET_BASIC_AMERICAN,1,0       ## @CCSET_BASIC_AMERICAN
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Data Ignored since exceeding screen width\n"

	.no_dead_strip	_write_char
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_char
_write_char:                            ; @write_char
	.cfi_startproc
; %bb.0:
	ldr	x9, [x1]
	ldp	x8, x10, [x0]
	ldr	x9, [x9, x10, lsl #3]
Lloh0:
	adrp	x11, _SCREEN_COLUMNS@GOTPAGE
Lloh1:
	ldr	x11, [x11, _SCREEN_COLUMNS@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x8, x11
	b.hs	LBB0_3
; %bb.1:
	lsl	x10, x10, #3
	ldp	x12, x11, [x1, #8]
	ldr	x11, [x11, x10]
	ldr	x10, [x12, x10]
	strb	w2, [x9, x8]
	ldrb	w9, [x0, #16]
	strb	w9, [x10, x8]
	ldrb	w9, [x0, #17]
	strb	w9, [x11, x8]
Lloh3:
	adrp	x8, _CCSET_BASIC_AMERICAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CCSET_BASIC_AMERICAN@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x0, #17]
	cbz	w2, LBB0_6
; %bb.2:
	ldr	x8, [x0]
	add	x8, x8, #1
	str	x8, [x0]
	ret
LBB0_3:
	cbnz	w2, LBB0_7
; %bb.4:
	cmp	x8, x11
	b.ne	LBB0_7
; %bb.5:
	strb	wzr, [x9, x8]
LBB0_6:
	ret
LBB0_7:
Lloh5:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	b	_av_log
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SCREEN_COLUMNS,8,3             ; @SCREEN_COLUMNS
	.comm	_CCSET_BASIC_AMERICAN,1,0       ; @CCSET_BASIC_AMERICAN
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Data Ignored since exceeding screen width\n"

	.no_dead_strip	_write_char
.subsections_via_symbols
