	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function split_mbox
_split_mbox:                            ## @split_mbox
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	movq	%rax, %r13
	testq	%r13, %r13
	je	LBB0_19
LBB0_4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	_EOF@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_fgetc
	cmpl	(%rbx), %eax
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_5
## %bb.9:
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_ungetc
	movq	_buf@GOTPCREL(%rip), %rdi
	movq	%r13, %rsi
	movl	$10, %edx
	callq	_strbuf_getwholeline
	testq	%rax, %rax
	je	LBB0_10
## %bb.14:
	movq	_stdin@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_12
## %bb.15:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_16
LBB0_1:
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	jne	LBB0_4
LBB0_19:
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_error_errno
	jmp	LBB0_17
LBB0_6:
	movq	_stdin@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_18
## %bb.7:
	movq	%r13, %rdi
	callq	_fclose
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	%rax, %rdi
LBB0_16:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_error
LBB0_17:
	movl	$-1, %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	incl	%r15d
	leaq	L_.str.5(%rip), %rdi
	movq	%r12, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_xstrfmt
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_split_one
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_free
	testl	%r14d, %r14d
	je	LBB0_11
LBB0_12:
	movq	_stdin@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_18
## %bb.13:
	movq	%r13, %rdi
	callq	_fclose
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

	.comm	_stdin,8,3                      ## @stdin
L_.str.1:                               ## @.str.1
	.asciz	"r"

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

	.comm	_EOF,4,2                        ## @EOF
L_.str.3:                               ## @.str.3
	.asciz	"empty mbox: '%s'"

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

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

	.no_dead_strip	_split_mbox
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function split_mbox
_split_mbox:                            ; @split_mbox
	.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, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_fopen
	mov	x21, x0
	cbz	x21, LBB0_9
LBB0_2:
Lloh4:
	adrp	x26, _EOF@GOTPAGE
Lloh5:
	ldr	x26, [x26, _EOF@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_fgetc
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	bl	_isspace
	cbnz	x0, LBB0_3
; %bb.5:
	mov	x0, x25
	mov	x1, x21
	bl	_ungetc
Lloh6:
	adrp	x0, _buf@GOTPAGE
Lloh7:
	ldr	x0, [x0, _buf@GOTPAGEOFF]
	mov	x1, x21
	mov	w2, #10
	bl	_strbuf_getwholeline
Lloh8:
	adrp	x27, _stdin@GOTPAGE
Lloh9:
	ldr	x27, [x27, _stdin@GOTPAGEOFF]
	cbz	x0, LBB0_15
; %bb.6:
	ldr	x8, [x27]
	cmp	x21, x8
	b.eq	LBB0_17
; %bb.7:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_8:
Lloh12:
	adrp	x8, _stdin@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh14:
	ldr	x21, [x8]
	cbnz	x21, LBB0_2
LBB0_9:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_error_errno
	b	LBB0_13
LBB0_10:
Lloh17:
	adrp	x8, _stdin@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x21, x8
	b.eq	LBB0_14
; %bb.11:
	mov	x0, x21
	bl	_fclose
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
LBB0_12:
	mov	x1, x20
	bl	_error
LBB0_13:
	mov	w19, #-1
LBB0_14:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh22:
	adrp	x20, l_.str.5@PAGE
Lloh23:
	add	x20, x20, l_.str.5@PAGEOFF
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	w19, w19, #1
	mov	x0, x20
	mov	x1, x24
	mov	x2, x22
	mov	x3, x19
	bl	_xstrfmt
	mov	x25, x0
	mov	x0, x21
	mov	x1, x25
	mov	x2, x23
	bl	_split_one
	mov	x26, x0
	mov	x0, x25
	bl	_free
	cbz	w26, LBB0_16
LBB0_17:
	ldr	x8, [x27]
	cmp	x21, x8
	b.eq	LBB0_14
; %bb.18:
	mov	x0, x21
	bl	_fclose
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

	.comm	_stdin,8,3                      ; @stdin
l_.str.1:                               ; @.str.1
	.asciz	"r"

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

	.comm	_EOF,4,2                        ; @EOF
l_.str.3:                               ; @.str.3
	.asciz	"empty mbox: '%s'"

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

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

	.no_dead_strip	_split_mbox
.subsections_via_symbols
