	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csv_record_leafs
_csv_record_leafs:                      ## @csv_record_leafs
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_strlen
	movl	%eax, %r13d
	leal	1(%r13), %ebx
	movl	%ebx, %edi
	callq	_alloca
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	testq	%r12, %r12
	je	LBB0_10
## %bb.1:
	testl	%r13d, %r13d
	jle	LBB0_10
## %bb.2:
	movslq	%r13d, %r13
	addq	%r12, %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$46, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	incq	%rbx
	movb	$0, (%rax)
	cmpb	$0, (%r12)
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rcx
	callq	_csv_dbg
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_csv_leaf_num
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r12
	cmpq	%r13, %rbx
	jb	LBB0_3
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	cmpb	$0, (%r12)
	jne	LBB0_7
	jmp	LBB0_8
LBB0_10:
	movq	_CF_LEAFS_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adding leaf: [%s]\n"

	.comm	_CF_LEAFS_DONE,4,2              ## @CF_LEAFS_DONE
	.no_dead_strip	_csv_record_leafs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csv_record_leafs
_csv_record_leafs:                      ; @csv_record_leafs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	_strlen
	mov	x22, x0
	add	w24, w0, #1
	mov	x0, x24
	bl	_alloca
	mov	x21, x0
	mov	x1, x23
	mov	x2, x24
	bl	_memcpy
	cbz	x21, LBB0_9
; %bb.1:
	cmp	w22, #1
	b.lt	LBB0_9
; %bb.2:
	add	x24, x21, w22, sxtw
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #46
	bl	_strchr
	mov	x23, x0
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	wzr, [x23], #1
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x21]
	cbz	w8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_csv_dbg
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #0
	bl	_csv_leaf_num
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	x23, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x23
	cmp	x23, x24
	b.lo	LBB0_3
LBB0_9:
Lloh2:
	adrp	x8, _CF_LEAFS_DONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CF_LEAFS_DONE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adding leaf: [%s]\n"

	.comm	_CF_LEAFS_DONE,4,2              ; @CF_LEAFS_DONE
	.no_dead_strip	_csv_record_leafs
.subsections_via_symbols
