	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_line
_get_line:                              ## @get_line
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	cmpq	$0, _get_line.buf(%rip)
	jne	LBB0_2
## %bb.1:
	movq	$100, _get_line.length(%rip)
	movl	$100, %edi
	callq	_XMALLOC
	movq	%rax, _get_line.buf(%rip)
LBB0_2:
	movq	%r14, %rdi
	callq	_getwc
	movl	%eax, %ebx
	xorl	%r12d, %r12d
	movq	_WEOF@GOTPCREL(%rip), %rcx
	cmpb	$10, %al
	je	LBB0_26
## %bb.3:
	cmpb	(%rcx), %bl
	je	LBB0_26
## %bb.4:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	_format_troff@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	%r15d, %eax
	movl	$1, %r15d
	cmovnel	%eax, %r15d
	cmpb	$46, %bl
	cmovnel	%eax, %r15d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	addq	%r13, %r12
	cmovnel	%eax, %r15d
	cmpb	$32, %bl
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movsbl	%bl, %r14d
	testl	%r15d, %r15d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %edi
	callq	_iswprint
	testq	%rax, %rax
	je	LBB0_16
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movq	_get_line.length(%rip), %rsi
	cmpq	%rsi, %r12
	jb	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_get_line.buf(%rip), %rax
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addq	%rsi, %rsi
	movq	%rsi, _get_line.length(%rip)
	movq	%rax, %rdi
	callq	_xrealloc
	movq	%rax, _get_line.buf(%rip)
	movq	_get_line.length(%rip), %rsi
	cmpq	%rsi, %r12
	jae	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_get_line.buf(%rip), %r14
	testq	%r13, %r13
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	%r14, %rdi
	movl	$32, %esi
	movq	%r13, %rdx
	callq	_memset
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%r13, %rax
	movq	%rax, %r13
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movb	%bl, (%r14,%r12)
	incq	%r12
	callq	_wcwidth
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovll	%ecx, %eax
	addq	%rax, %r13
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_getwc
	movl	%eax, %ebx
	movq	_WEOF@GOTPCREL(%rip), %rcx
	cmpb	$10, %al
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpb	(%rcx), %bl
	jne	LBB0_5
	jmp	LBB0_26
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$8, %bl
	je	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$9, %bl
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_tab_width@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%r13, %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_21
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	subq	$1, %r12
	movl	$0, %eax
	cmovbq	%rax, %r12
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	subq	$1, %rcx
	cmovbq	%rax, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_23
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	%r13, %rcx
	subq	%rdx, %rcx
	movq	%rcx, %r13
	jmp	LBB0_24
LBB0_26:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	xorl	%eax, %eax
	cmpb	(%rcx), %bl
	movq	_get_line.buf(%rip), %rcx
	cmovneq	%rcx, %rax
	testq	%r12, %r12
	cmovneq	%rcx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_get_line.buf,8,3 ## @get_line.buf
.zerofill __DATA,__bss,_get_line.length,8,3 ## @get_line.length
	.comm	_WEOF,1,0                       ## @WEOF
	.comm	_format_troff,4,2               ## @format_troff
	.comm	_tab_width,8,3                  ## @tab_width
	.no_dead_strip	_get_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_line
_get_line:                              ; @get_line
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x1
	mov	x20, x0
	adrp	x24, _get_line.buf@PAGE
	ldr	x8, [x24, _get_line.buf@PAGEOFF]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	w8, #100
	adrp	x9, _get_line.length@PAGE
	str	x8, [x9, _get_line.length@PAGEOFF]
	mov	w0, #100
	bl	_XMALLOC
	str	x0, [x24, _get_line.buf@PAGEOFF]
LBB0_2:
	mov	x0, x20
	bl	_getwc
	mov	x22, x0
	mov	x25, #0
Lloh0:
	adrp	x28, _WEOF@GOTPAGE
Lloh1:
	ldr	x28, [x28, _WEOF@GOTPAGEOFF]
	cmp	w0, #10
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	b.eq	LBB0_22
; %bb.3:
	ldrb	w8, [x28]
	cmp	w8, w22, uxtb
	b.eq	LBB0_22
; %bb.4:
	mov	x25, #0
	mov	x23, #0
	mov	w27, #0
	mov	x21, #0
	adrp	x19, _get_line.length@PAGE
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	add	x26, x25, x21
	and	w8, w22, #0xff
Lloh2:
	adrp	x9, _format_troff@GOTPAGE
Lloh3:
	ldr	x9, [x9, _format_troff@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w9, #0
	mov	w9, #46
	ccmp	w8, w9, #0, eq
	ccmp	x26, #0, #0, eq
	csinc	w27, w27, wzr, ne
	cmp	w8, #32
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	b	LBB0_16
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x23, [sp, #24]                  ; 8-byte Folded Spill
	sxtb	w23, w22
	cbnz	w27, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_iswprint
	cbz	x0, LBB0_18
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, _get_line.length@PAGEOFF]
	cmp	x26, x8
	b.lo	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x24, _get_line.buf@PAGEOFF]
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x1, x8, #1
	str	x1, [x19, _get_line.length@PAGEOFF]
	bl	_xrealloc
	str	x0, [x24, _get_line.buf@PAGEOFF]
	ldr	x8, [x19, _get_line.length@PAGEOFF]
	cmp	x26, x8
	b.hs	LBB0_11
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x20, [x24, _get_line.buf@PAGEOFF]
	mov	x28, x23
	cbz	x21, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x20, x25
	mov	w1, #32
	mov	x2, x21
	bl	_memset
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	add	x23, x21, x23
	mov	x25, x26
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x25, #1
	strb	w22, [x20, x25]
	mov	x0, x28
	bl	_wcwidth
	mov	x21, #0
	cmp	w0, #1
	csinc	w8, w0, wzr, gt
	add	x23, x23, x8
	mov	x25, x26
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
Lloh5:
	adrp	x28, _WEOF@GOTPAGE
Lloh6:
	ldr	x28, [x28, _WEOF@GOTPAGEOFF]
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_getwc
	mov	x22, x0
	cmp	w0, #10
	b.eq	LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x28]
	cmp	w8, w22, uxtb
	b.ne	LBB0_5
	b	LBB0_22
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w8, w22, #0xff
	cmp	w8, #8
	b.eq	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #9
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	b.ne	LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh7:
	adrp	x8, _tab_width@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tab_width@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	add	x9, x23, x21
	neg	x10, x9
	udiv	x9, x9, x8
	madd	x9, x9, x8, x10
	add	x8, x8, x21
	add	x21, x8, x9
	b	LBB0_16
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x8, x25, #1
	cmp	x25, #0
	csel	x25, xzr, x8, eq
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	sub	x8, x9, #1
	cmp	x9, #0
	csel	x23, xzr, x8, eq
	b	LBB0_16
LBB0_22:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x25, [x8]
	ldrb	w8, [x28]
	and	w9, w22, #0xff
	cmp	w9, w8
	ccmp	x25, #0, #0, eq
	ldr	x8, [x24, _get_line.buf@PAGEOFF]
	csel	x0, xzr, x8, eq
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_get_line.buf,8,3 ; @get_line.buf
.zerofill __DATA,__bss,_get_line.length,8,3 ; @get_line.length
	.comm	_WEOF,1,0                       ; @WEOF
	.comm	_format_troff,4,2               ; @format_troff
	.comm	_tab_width,8,3                  ; @tab_width
	.no_dead_strip	_get_line
.subsections_via_symbols
