	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function printchar
_printchar:                             ## @printchar
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movb	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	movq	(%rdi), %rax
	movq	_NROWS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setb	%dil
	callq	_assert
	movq	8(%r14), %rax
	movq	_NCOLS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setb	%dil
	callq	_assert
	movq	_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %r12
	movq	8(%r14), %rcx
	movq	(%rax,%rcx,8), %r13
	shlq	$4, %r12
	movq	_TF_CJK_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r13,%r12)
	jne	LBB0_17
## %bb.1:
	leaq	(%r12,%r13), %rax
	addq	$4, %rax
	movl	(%r13,%r12), %edx
	cmpl	$127, %edx
	jg	LBB0_3
## %bb.2:
	movb	%dl, -48(%rbp)
	jmp	LBB0_8
LBB0_3:
	leaq	(%r12,%r13), %rcx
	cmpl	$2047, %edx                     ## imm = 0x7FF
	ja	LBB0_5
## %bb.4:
	shrl	$6, %edx
	orb	$-64, %dl
	movb	%dl, -48(%rbp)
	movb	(%rcx), %cl
	andb	$63, %cl
	orb	$-128, %cl
	movb	%cl, -47(%rbp)
	jmp	LBB0_8
LBB0_5:
	cmpl	$65535, %edx                    ## imm = 0xFFFF
	ja	LBB0_7
## %bb.6:
	shrl	$12, %edx
	orb	$-32, %dl
	movb	%dl, -48(%rbp)
	movl	(%rcx), %edx
	shrl	$6, %edx
	andb	$63, %dl
	orb	$-128, %dl
	movb	%dl, -47(%rbp)
	movb	(%rcx), %cl
	andb	$63, %cl
	orb	$-128, %cl
	movb	%cl, -46(%rbp)
	jmp	LBB0_8
LBB0_7:
	shrl	$18, %edx
	orb	$-16, %dl
	movb	%dl, -48(%rbp)
	movl	(%rcx), %edx
	shrl	$12, %edx
	andb	$63, %dl
	orb	$-128, %dl
	movb	%dl, -47(%rbp)
	movl	(%rcx), %edx
	shrl	$6, %edx
	andb	$63, %dl
	orb	$-128, %dl
	movb	%dl, -46(%rbp)
	movb	(%rcx), %cl
	andb	$63, %cl
	orb	$-128, %cl
	movb	%cl, -45(%rbp)
LBB0_8:
	movl	(%rax), %eax
	movq	_TF_BOLD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_10
## %bb.9:
	movq	_A_BOLD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_10:
	movq	_TF_UNDERLINE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	andl	%eax, %ebx
	je	LBB0_12
## %bb.11:
	movq	_A_UNDERLINE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_12:
	movq	_TF_BLINK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	je	LBB0_14
## %bb.13:
	movq	_A_BLINK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_14:
	orl	%ecx, %ebx
	movq	_TF_REVERSE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_16
## %bb.15:
	movq	_A_REVERSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	orl	%eax, %edx
	orl	%edx, %ebx
	movl	12(%r13,%r12), %edi
	callq	_teken_256to8
	movl	%eax, %r15d
	movl	8(%r13,%r12), %edi
	callq	_teken_256to8
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r15,%rax,8), %edi
	callq	_COLOR_PAIR
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_bkgdset
	movq	_stdscr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_getyx
	movq	(%r14), %rdi
	movq	8(%r14), %rsi
	leaq	-48(%rbp), %rdx
	callq	_mvaddstr
	callq	_move
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NROWS,8,3                      ## @NROWS
	.comm	_NCOLS,8,3                      ## @NCOLS
	.comm	_buffer,8,3                     ## @buffer
	.comm	_TF_CJK_RIGHT,4,2               ## @TF_CJK_RIGHT
	.comm	_TF_BOLD,4,2                    ## @TF_BOLD
	.comm	_A_BOLD,4,2                     ## @A_BOLD
	.comm	_TF_UNDERLINE,4,2               ## @TF_UNDERLINE
	.comm	_A_UNDERLINE,4,2                ## @A_UNDERLINE
	.comm	_TF_BLINK,4,2                   ## @TF_BLINK
	.comm	_A_BLINK,4,2                    ## @A_BLINK
	.comm	_TF_REVERSE,4,2                 ## @TF_REVERSE
	.comm	_A_REVERSE,4,2                  ## @A_REVERSE
	.comm	_stdscr,4,2                     ## @stdscr
	.no_dead_strip	_printchar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function printchar
_printchar:                             ; @printchar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	strb	wzr, [sp, #12]
	str	wzr, [sp, #8]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NROWS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NROWS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, lo
	bl	_assert
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _NCOLS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NCOLS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, lo
	bl	_assert
Lloh6:
	adrp	x8, _buffer@GOTPAGE
Lloh7:
	ldr	x8, [x8, _buffer@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x8]
	ldp	x8, x10, [x19]
	ldr	x9, [x9, x10, lsl #3]
	add	x11, x9, x8, lsl #4
	mov	x10, x11
	ldr	w12, [x10, #4]!
Lloh9:
	adrp	x13, _TF_CJK_RIGHT@GOTPAGE
Lloh10:
	ldr	x13, [x13, _TF_CJK_RIGHT@GOTPAGEOFF]
Lloh11:
	ldr	w13, [x13]
	tst	w13, w12
	b.ne	LBB0_9
; %bb.1:
	ldr	w12, [x11]
	cmp	w12, #127
	b.gt	LBB0_3
; %bb.2:
	strb	w12, [sp, #8]
	b	LBB0_8
LBB0_3:
	cmp	w12, #2047
	b.hi	LBB0_5
; %bb.4:
	lsr	w12, w12, #6
	orr	w12, w12, #0xc0
	strb	w12, [sp, #8]
	ldrb	w11, [x11]
	mov	w12, #128
	bfxil	w12, w11, #0, #6
	strb	w12, [sp, #9]
	b	LBB0_8
LBB0_5:
	lsr	w13, w12, #16
	cbnz	w13, LBB0_7
; %bb.6:
	lsr	w12, w12, #12
	orr	w12, w12, #0xe0
	strb	w12, [sp, #8]
	ldr	w12, [x11]
	mov	w13, #128
	mov	w14, #128
	bfxil	w14, w12, #6, #6
	strb	w14, [sp, #9]
	ldrb	w11, [x11]
	bfxil	w13, w11, #0, #6
	strb	w13, [sp, #10]
	b	LBB0_8
LBB0_7:
	lsr	w12, w12, #18
	orr	w12, w12, #0xf0
	strb	w12, [sp, #8]
	ldr	w12, [x11]
	mov	w13, #128
	mov	w14, #128
	bfxil	w14, w12, #12, #6
	strb	w14, [sp, #9]
	ldr	w12, [x11]
	mov	w14, #128
	bfxil	w14, w12, #6, #6
	strb	w14, [sp, #10]
	ldrb	w11, [x11]
	bfxil	w13, w11, #0, #6
	strb	w13, [sp, #11]
LBB0_8:
Lloh12:
	adrp	x11, _TF_BOLD@GOTPAGE
Lloh13:
	ldr	x11, [x11, _TF_BOLD@GOTPAGEOFF]
	ldr	w10, [x10]
Lloh14:
	ldr	w11, [x11]
Lloh15:
	adrp	x12, _A_BOLD@GOTPAGE
Lloh16:
	ldr	x12, [x12, _A_BOLD@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	tst	w11, w10
	csel	w11, wzr, w12, eq
Lloh18:
	adrp	x12, _TF_UNDERLINE@GOTPAGE
Lloh19:
	ldr	x12, [x12, _TF_UNDERLINE@GOTPAGEOFF]
Lloh20:
	ldr	w12, [x12]
Lloh21:
	adrp	x13, _A_UNDERLINE@GOTPAGE
Lloh22:
	ldr	x13, [x13, _A_UNDERLINE@GOTPAGEOFF]
Lloh23:
	ldr	w13, [x13]
	tst	w12, w10
	csel	w12, wzr, w13, eq
	orr	w11, w12, w11
Lloh24:
	adrp	x12, _TF_BLINK@GOTPAGE
Lloh25:
	ldr	x12, [x12, _TF_BLINK@GOTPAGEOFF]
Lloh26:
	ldr	w12, [x12]
Lloh27:
	adrp	x13, _A_BLINK@GOTPAGE
Lloh28:
	ldr	x13, [x13, _A_BLINK@GOTPAGEOFF]
Lloh29:
	ldr	w13, [x13]
	tst	w12, w10
	csel	w12, wzr, w13, eq
	orr	w11, w11, w12
Lloh30:
	adrp	x12, _TF_REVERSE@GOTPAGE
Lloh31:
	ldr	x12, [x12, _TF_REVERSE@GOTPAGEOFF]
Lloh32:
	ldr	w12, [x12]
Lloh33:
	adrp	x13, _A_REVERSE@GOTPAGE
Lloh34:
	ldr	x13, [x13, _A_REVERSE@GOTPAGEOFF]
Lloh35:
	ldr	w13, [x13]
	tst	w12, w10
	csel	w10, wzr, w13, eq
	orr	w21, w11, w10
	add	x22, x9, x8, lsl #4
	ldr	w0, [x22, #12]
	bl	_teken_256to8
	mov	x20, x0
	ldr	w0, [x22, #8]
	bl	_teken_256to8
	add	w0, w20, w0, lsl #3
	bl	_COLOR_PAIR
	orr	w0, w21, w0
	bl	_bkgdset
Lloh36:
	adrp	x8, _stdscr@GOTPAGE
Lloh37:
	ldr	x8, [x8, _stdscr@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_getyx
	ldp	x0, x1, [x19]
	add	x2, sp, #8
	bl	_mvaddstr
	bl	_move
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NROWS,8,3                      ; @NROWS
	.comm	_NCOLS,8,3                      ; @NCOLS
	.comm	_buffer,8,3                     ; @buffer
	.comm	_TF_CJK_RIGHT,4,2               ; @TF_CJK_RIGHT
	.comm	_TF_BOLD,4,2                    ; @TF_BOLD
	.comm	_A_BOLD,4,2                     ; @A_BOLD
	.comm	_TF_UNDERLINE,4,2               ; @TF_UNDERLINE
	.comm	_A_UNDERLINE,4,2                ; @A_UNDERLINE
	.comm	_TF_BLINK,4,2                   ; @TF_BLINK
	.comm	_A_BLINK,4,2                    ; @A_BLINK
	.comm	_TF_REVERSE,4,2                 ; @TF_REVERSE
	.comm	_A_REVERSE,4,2                  ; @A_REVERSE
	.comm	_stdscr,4,2                     ; @stdscr
	.no_dead_strip	_printchar
.subsections_via_symbols
