	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function split_one
_split_one:                             ## @split_one
	.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
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_buf@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movl	8(%rbx), %esi
	callq	_is_from_line
	movq	%rax, %r15
	testl	%r13d, %r13d
	jne	LBB0_2
## %bb.1:
	testq	%r15, %r15
	je	LBB0_23
LBB0_2:
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_EXCL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r12, %rdi
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_open
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_die_errno
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edi
	callq	_xfdopen
	movq	%rax, %r12
	movq	_mboxrd@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_keep_cr@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%rbx), %esi
	cmpl	$2, %esi
	jl	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rax
	leal	-1(%rsi), %ecx
	cmpb	$10, (%rax,%rcx)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	$-2, %esi
	cmpb	$13, (%rax,%rsi)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_strbuf_setlen
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_strbuf_addch
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, (%r13)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_is_gtfrom
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_strbuf_remove
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rdi
	movl	8(%rbx), %edx
	movl	$1, %esi
	movq	%r12, %rcx
	callq	_fwrite
	cmpl	8(%rbx), %eax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_die_errno
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$10, %edx
	callq	_strbuf_getwholeline
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_feof
	testq	%rax, %rax
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_die_errno
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	testq	%r15, %r15
	je	LBB0_5
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rdi
	movl	8(%rbx), %esi
	callq	_is_from_line
	testq	%rax, %rax
	je	LBB0_5
## %bb.21:
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_17:
	movl	$1, %ebx
LBB0_22:
	movq	%r12, %rdi
	callq	_fclose
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_buf,16,3                       ## @buf
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"corrupt mailbox\n"

	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_EXCL,4,2                     ## @O_EXCL
L_.str.1:                               ## @.str.1
	.asciz	"cannot open output file '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"w"

	.comm	_keep_cr,4,2                    ## @keep_cr
	.comm	_mboxrd,8,3                     ## @mboxrd
L_.str.3:                               ## @.str.3
	.asciz	"cannot write output"

L_.str.4:                               ## @.str.4
	.asciz	"cannot read mbox"

	.no_dead_strip	_split_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function split_one
_split_one:                             ; @split_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x20, _buf@GOTPAGE
Lloh1:
	ldr	x20, [x20, _buf@GOTPAGEOFF]
	ldr	x0, [x20]
	ldr	w1, [x20, #8]
	bl	_is_from_line
	mov	x21, x0
	cbnz	w23, LBB0_2
; %bb.1:
	cbz	x21, LBB0_22
LBB0_2:
Lloh2:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _O_EXCL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _O_EXCL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x22
	mov	w2, #438
	bl	_open
	mov	x23, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
	str	x22, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die_errno
LBB0_4:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_xfdopen
	mov	x22, x0
Lloh15:
	adrp	x25, _keep_cr@GOTPAGE
Lloh16:
	ldr	x25, [x25, _keep_cr@GOTPAGEOFF]
Lloh17:
	adrp	x26, _mboxrd@GOTPAGE
Lloh18:
	ldr	x26, [x26, _mboxrd@GOTPAGEOFF]
Lloh19:
	adrp	x23, l_.str.4@PAGE
Lloh20:
	add	x23, x23, l_.str.4@PAGEOFF
Lloh21:
	adrp	x24, l_.str.3@PAGE
Lloh22:
	add	x24, x24, l_.str.3@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x25]
	ldr	w8, [x20, #8]
	cmp	w9, #0
	ccmp	w8, #2, #8, eq
	b.lt	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x20]
	sub	w10, w8, #1
	ldrb	w10, [x9, w10, uxtw]
	cmp	w10, #10
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w1, w8, #2
	ldrb	w8, [x9, w1, uxtw]
	cmp	w8, #13
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_strbuf_setlen
	mov	x0, x20
	mov	w1, #10
	bl	_strbuf_addch
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
	cbz	x8, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_is_gtfrom
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	bl	_strbuf_remove
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x20]
	ldr	w2, [x20, #8]
	mov	w1, #1
	mov	x3, x22
	bl	_fwrite
	ldr	w8, [x20, #8]
	cmp	w0, w8
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_die_errno
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	w2, #10
	bl	_strbuf_getwholeline
	cbz	x0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_feof
	cbnz	x0, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_die_errno
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x21, LBB0_5
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x20]
	ldr	w1, [x20, #8]
	bl	_is_from_line
	cbz	x0, LBB0_5
; %bb.19:
	mov	w19, #0
	b	LBB0_21
LBB0_20:
	mov	w19, #1
LBB0_21:
	mov	x0, x22
	bl	_fclose
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_22:
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_buf,16,3                       ; @buf
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"corrupt mailbox\n"

	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_EXCL,4,2                     ; @O_EXCL
l_.str.1:                               ; @.str.1
	.asciz	"cannot open output file '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"w"

	.comm	_keep_cr,4,2                    ; @keep_cr
	.comm	_mboxrd,8,3                     ; @mboxrd
l_.str.3:                               ; @.str.3
	.asciz	"cannot write output"

l_.str.4:                               ; @.str.4
	.asciz	"cannot read mbox"

	.no_dead_strip	_split_one
.subsections_via_symbols
