	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function split_maildir
_split_maildir:                         ## @split_maildir
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rsi
	movq	_STRING_LIST_INIT_DUP@GOTPCREL(%rip), %rax
	movq	16(%rax), %rcx
	movq	%rcx, -64(%rbp)
	movups	(%rax), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	_maildir_filename_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-80(%rbp), %rdi
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	callq	_populate_maildir_list
	movl	$-1, %ebx
	testq	%rax, %rax
	js	LBB0_7
## %bb.1:
	cmpl	$0, -80(%rbp)
	jle	LBB0_8
## %bb.2:
	movl	%r15d, %ebx
	movl	%r15d, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_free
	movq	-72(%rbp), %rax
	movl	(%rax,%r13,4), %edx
	leaq	L_.str(%rip), %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_xstrfmt
	movq	%rax, %r14
	movq	%rax, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	movq	_buf@GOTPCREL(%rip), %rdi
	movq	%rax, %rsi
	movl	$10, %edx
	callq	_strbuf_getwholeline
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %ecx
	incl	%ecx
	leaq	L_.str.4(%rip), %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_xstrfmt
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_split_one
	movq	%r12, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_fclose
	incq	%r13
	movslq	-80(%rbp), %rax
	cmpq	%rax, %r13
	jl	LBB0_3
## %bb.6:
	addl	%r13d, %ebx
	jmp	LBB0_12
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_8:
	xorl	%r14d, %r14d
	movl	%r15d, %ebx
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_error_errno
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	callq	_error_errno
	movq	%r15, %rdi
	callq	_fclose
LBB0_11:
	movl	$-1, %ebx
LBB0_12:
	movq	%r14, %rdi
	callq	_free
	leaq	-80(%rbp), %rdi
	movl	$1, %esi
	callq	_string_list_clear
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRING_LIST_INIT_DUP,24,3      ## @STRING_LIST_INIT_DUP
	.comm	_maildir_filename_cmp,4,2       ## @maildir_filename_cmp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

L_.str.1:                               ## @.str.1
	.asciz	"r"

L_.str.2:                               ## @.str.2
	.asciz	"cannot open mail %s"

	.comm	_buf,4,2                        ## @buf
L_.str.3:                               ## @.str.3
	.asciz	"cannot read mail %s"

L_.str.4:                               ## @.str.4
	.asciz	"%s/%0*d"

	.no_dead_strip	_split_maildir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function split_maildir
_split_maildir:                         ; @split_maildir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _STRING_LIST_INIT_DUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRING_LIST_INIT_DUP@GOTPAGEOFF]
	ldr	x9, [x8, #16]
	str	x9, [sp, #32]
	ldr	q0, [x8]
	str	q0, [sp, #16]
Lloh2:
	adrp	x8, _maildir_filename_cmp@GOTPAGE
Lloh3:
	ldr	x8, [x8, _maildir_filename_cmp@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	add	x0, sp, #16
	mov	x1, x23
	bl	_populate_maildir_list
	tbnz	x0, #63, LBB0_7
; %bb.1:
	ldr	w8, [sp, #16]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x27, #0
	mov	x20, #0
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
	mov	w26, w19
Lloh5:
	adrp	x24, l_.str@PAGE
Lloh6:
	add	x24, x24, l_.str@PAGEOFF
Lloh7:
	adrp	x25, l_.str.1@PAGE
Lloh8:
	add	x25, x25, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_free
	ldr	x8, [sp, #24]
	ldr	w2, [x8, x27, lsl #2]
	mov	x0, x24
	mov	x1, x23
	bl	_xstrfmt
	mov	x20, x0
	mov	x1, x25
	bl	_fopen
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x0
Lloh9:
	adrp	x0, _buf@GOTPAGE
Lloh10:
	ldr	x0, [x0, _buf@GOTPAGEOFF]
	mov	x1, x28
	mov	w2, #10
	bl	_strbuf_getwholeline
	cbnz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x26, x27
	add	x8, x8, #1
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	bl	_xstrfmt
	mov	x19, x0
	mov	x0, x28
	mov	x1, x19
	mov	w2, #1
	bl	_split_one
	mov	x0, x19
	bl	_free
	mov	x0, x28
	bl	_fclose
	add	x27, x27, #1
	ldrsw	x8, [sp, #16]
	cmp	x27, x8
	b.lt	LBB0_3
; %bb.6:
	ldr	w19, [sp, #12]                  ; 4-byte Folded Reload
	add	w19, w19, w27
	b	LBB0_12
LBB0_7:
	mov	x20, #0
	b	LBB0_11
LBB0_8:
	mov	x20, #0
	b	LBB0_12
LBB0_9:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_error_errno
	b	LBB0_11
LBB0_10:
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_error_errno
	mov	x0, x28
	bl	_fclose
LBB0_11:
	mov	w19, #-1
LBB0_12:
	mov	x0, x20
	bl	_free
	add	x0, sp, #16
	mov	w1, #1
	bl	_string_list_clear
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_STRING_LIST_INIT_DUP,24,3      ; @STRING_LIST_INIT_DUP
	.comm	_maildir_filename_cmp,4,2       ; @maildir_filename_cmp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

l_.str.1:                               ; @.str.1
	.asciz	"r"

l_.str.2:                               ; @.str.2
	.asciz	"cannot open mail %s"

	.comm	_buf,4,2                        ; @buf
l_.str.3:                               ; @.str.3
	.asciz	"cannot read mail %s"

l_.str.4:                               ; @.str.4
	.asciz	"%s/%0*d"

	.no_dead_strip	_split_maildir
.subsections_via_symbols
