	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_buf_linedir                    ## -- Begin function buf_linedir
	.p2align	4, 0x90
_buf_linedir:                           ## @buf_linedir
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_strlen
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	_NUMCHARLINES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%r15,%rax,2), %eax
	leal	(%rcx,%rax), %edi
	incl	%edi
	callq	_flex_alloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_flexfatal
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_sprintf
	movslq	%eax, %rcx
	movq	%r15, %rax
	addq	%rcx, %rax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	$92, (%rax)
	incq	%rax
	movzbl	(%rbx), %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movb	%cl, (%rax)
	incq	%rax
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %ecx
	cmpb	$92, %cl
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	%cl, %cl
	jne	LBB0_7
## %bb.5:
	movw	$2594, (%rax)                   ## imm = 0xA22
	movb	$0, 2(%rax)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_buf_strappend
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_flex_free
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#line \"\"\n"

	.comm	_NUMCHARLINES,4,2               ## @NUMCHARLINES
L_.str.1:                               ## @.str.1
	.asciz	"Allocation of buffer for line directive failed"

L_.str.2:                               ## @.str.2
	.asciz	"#line %d \""

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_buf_linedir                    ; -- Begin function buf_linedir
	.p2align	2
_buf_linedir:                           ; @buf_linedir
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strlen
	mov	x21, x0
	mov	x0, x20
	bl	_strlen
Lloh2:
	adrp	x8, _NUMCHARLINES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NUMCHARLINES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	w9, w21, w0, lsl #1
	add	w8, w9, w8
	add	w0, w8, #1
	bl	_flex_alloc
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_flexfatal
LBB0_2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_sprintf
	add	x8, x21, w0, sxtw
	mov	w9, #92
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	strb	w9, [x8], #1
	ldrb	w10, [x20]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	strb	w10, [x8], #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x20]
	cmp	w10, #92
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w10, LBB0_4
; %bb.7:
	mov	w9, #2594
	strh	w9, [x8]
	strb	wzr, [x8, #2]
	mov	x0, x19
	mov	x1, x21
	bl	_buf_strappend
	mov	x19, x0
	mov	x0, x21
	bl	_flex_free
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#line \"\"\n"

	.comm	_NUMCHARLINES,4,2               ; @NUMCHARLINES
l_.str.1:                               ; @.str.1
	.asciz	"Allocation of buffer for line directive failed"

l_.str.2:                               ; @.str.2
	.asciz	"#line %d \""

.subsections_via_symbols
