	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unexpand_if_needed
_unexpand_if_needed:                    ## @unexpand_if_needed
	.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, %r15
	movq	_unexpand_if_needed.line_buf(%rip), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	cmpb	$10, (%r15)
	jne	LBB0_4
LBB0_3:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r14, %rdi
	jmp	LBB0_19
LBB0_1:
	movl	$1024, _unexpand_if_needed.line_buf_size(%rip) ## imm = 0x400
	movl	$1024, %edi                     ## imm = 0x400
	callq	_xmalloc
	movq	%rax, %r14
	movq	%rax, _unexpand_if_needed.line_buf(%rip)
	cmpb	$10, (%r15)
	je	LBB0_3
LBB0_4:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	(%r15), %al
	incq	%r15
	movb	%al, (%r14)
	incq	%r14
	cmpb	$10, (%r15)
	je	LBB0_18
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	_unexpansions@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %r13
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	8(%r13), %rbx
	addq	$16, %r13
	testq	%rbx, %rbx
	je	LBB0_14
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r12
	movzbl	(%r15), %eax
	cmpb	(%rbx), %al
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movsbl	(%r15,%r12), %edi
	callq	_is_id_char
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rdi
	callq	_strlen
	movslq	%eax, %rbx
	leaq	(%r14,%rbx), %rdx
	movq	_unexpand_if_needed.line_buf(%rip), %rdi
	subq	%rdi, %rdx
	movslq	_unexpand_if_needed.line_buf_size(%rip), %rcx
	cmpq	%rcx, %rdx
	jl	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	subl	%edi, %r14d
	leal	(%rax,%rcx,2), %esi
	movl	%esi, _unexpand_if_needed.line_buf_size(%rip)
	callq	_xrealloc
	movq	%rax, _unexpand_if_needed.line_buf(%rip)
	movslq	%r14d, %r14
	addq	%rax, %r14
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	%r12, %r15
	movq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_strcpy
	addq	%rbx, %r14
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	cmpb	$10, (%r15)
	jne	LBB0_5
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_unexpand_if_needed.line_buf(%rip), %rdi
	movq	%r14, %rbx
	subq	%rdi, %rbx
	movslq	_unexpand_if_needed.line_buf_size(%rip), %rsi
	cmpq	%rsi, %rbx
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	addl	%esi, %esi
	movl	%esi, _unexpand_if_needed.line_buf_size(%rip)
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_xrealloc
	movq	%rax, _unexpand_if_needed.line_buf(%rip)
	movslq	%ebx, %r14
	addq	%rax, %r14
	jmp	LBB0_16
LBB0_18:
	movq	_unexpand_if_needed.line_buf(%rip), %rdi
LBB0_19:
	movq	%r14, %rax
	subq	%rdi, %rax
	addq	$2, %rax
	movslq	_unexpand_if_needed.line_buf_size(%rip), %rsi
	cmpq	%rsi, %rax
	jl	LBB0_21
## %bb.20:
	subl	%edi, %r14d
	addl	%esi, %esi
	movl	%esi, _unexpand_if_needed.line_buf_size(%rip)
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_xrealloc
	movq	%rax, _unexpand_if_needed.line_buf(%rip)
	movslq	%r14d, %r14
	addq	%rax, %r14
LBB0_21:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movw	$10, (%r14)
	testl	%eax, %eax
	je	LBB0_22
## %bb.23:
	incq	%r14
	movq	_unexpand_if_needed.line_buf(%rip), %rdi
	subl	%edi, %r14d
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_savestring                     ## TAILCALL
LBB0_22:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_unexpand_if_needed.line_buf,8,3 ## @unexpand_if_needed.line_buf
.zerofill __DATA,__bss,_unexpand_if_needed.line_buf_size,4,2 ## @unexpand_if_needed.line_buf_size
	.comm	_unexpansions,8,3               ## @unexpansions
	.no_dead_strip	_unexpand_if_needed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unexpand_if_needed
_unexpand_if_needed:                    ; @unexpand_if_needed
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	adrp	x23, _unexpand_if_needed.line_buf@PAGE
	ldr	x0, [x23, _unexpand_if_needed.line_buf@PAGEOFF]
	adrp	x24, _unexpand_if_needed.line_buf_size@PAGE
	cbnz	x0, LBB0_2
; %bb.1:
	mov	w8, #1024
	str	w8, [x24, _unexpand_if_needed.line_buf_size@PAGEOFF]
	mov	w0, #1024
	bl	_xmalloc
	str	x0, [x23, _unexpand_if_needed.line_buf@PAGEOFF]
LBB0_2:
	ldrb	w8, [x19]
	cmp	w8, #10
	b.ne	LBB0_4
; %bb.3:
	mov	w25, #0
	mov	x20, x0
	b	LBB0_19
LBB0_4:
	mov	w25, #0
Lloh0:
	adrp	x26, _unexpansions@GOTPAGE
Lloh1:
	ldr	x26, [x26, _unexpansions@GOTPAGEOFF]
	mov	x20, x0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x19], #1
	strb	w8, [x20], #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x19]
	cmp	w8, #10
	b.eq	LBB0_18
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x26]
	ldr	x22, [x8]
	cbz	x22, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x27, x8, #8
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x22, [x27, #8]
	add	x27, x27, #16
	cbz	x22, LBB0_16
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_strlen
	ldrb	w8, [x19]
	ldrb	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x21, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_strncmp
	cbnz	w0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	ldrsb	w0, [x19, x21]
	bl	_is_id_char
	cbnz	w0, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x27]
	bl	_strlen
	sxtw	x22, w0
	ldr	x8, [x23, _unexpand_if_needed.line_buf@PAGEOFF]
	add	x9, x20, x22
	sub	x10, x9, x8
	ldrsw	x9, [x24, _unexpand_if_needed.line_buf_size@PAGEOFF]
	cmp	x10, x9
	b.lt	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	w20, w20, w8
	add	w1, w0, w9, lsl #1
	str	w1, [x24, _unexpand_if_needed.line_buf_size@PAGEOFF]
	mov	x0, x8
	bl	_xrealloc
	str	x0, [x23, _unexpand_if_needed.line_buf@PAGEOFF]
	add	x20, x0, w20, sxtw
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x19, x19, x21
	ldr	x1, [x27]
	mov	x0, x20
	bl	_strcpy
	add	x20, x20, x22
	mov	w25, #1
	b	LBB0_6
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x23, _unexpand_if_needed.line_buf@PAGEOFF]
	ldrsw	x8, [x24, _unexpand_if_needed.line_buf_size@PAGEOFF]
	sub	x21, x20, x0
	cmp	x21, x8
	b.ne	LBB0_5
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	lsl	w1, w8, #1
	str	w1, [x24, _unexpand_if_needed.line_buf_size@PAGEOFF]
	bl	_xrealloc
	str	x0, [x23, _unexpand_if_needed.line_buf@PAGEOFF]
	add	x20, x0, w21, sxtw
	b	LBB0_5
LBB0_18:
	ldr	x0, [x23, _unexpand_if_needed.line_buf@PAGEOFF]
LBB0_19:
	sub	x8, x20, x0
	add	x9, x8, #2
	ldrsw	x8, [x24, _unexpand_if_needed.line_buf_size@PAGEOFF]
	cmp	x9, x8
	b.lt	LBB0_21
; %bb.20:
	sub	w19, w20, w0
	lsl	w1, w8, #1
	str	w1, [x24, _unexpand_if_needed.line_buf_size@PAGEOFF]
	bl	_xrealloc
	str	x0, [x23, _unexpand_if_needed.line_buf@PAGEOFF]
	add	x20, x0, w19, sxtw
LBB0_21:
	mov	w8, #10
	strh	w8, [x20], #1
	cbz	w25, LBB0_23
; %bb.22:
	ldr	x0, [x23, _unexpand_if_needed.line_buf@PAGEOFF]
	sub	w1, w20, w0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_savestring
LBB0_23:
	mov	x0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_unexpand_if_needed.line_buf,8,3 ; @unexpand_if_needed.line_buf
.zerofill __DATA,__bss,_unexpand_if_needed.line_buf_size,4,2 ; @unexpand_if_needed.line_buf_size
	.comm	_unexpansions,8,3               ; @unexpansions
	.no_dead_strip	_unexpand_if_needed
.subsections_via_symbols
