	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function split_mail_conv
_split_mail_conv:                       ## @split_mail_conv
	.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	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rdx)
	leaq	_split_mail_conv.stdin_only(%rip), %rax
	cmovneq	%rdx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rbx
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	je	LBB0_16
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	movq	%rax, %r13
	testq	%r13, %r13
	jne	LBB0_7
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12), %edx
	movl	12(%r12), %esi
	leal	1(%r15), %ecx
	leaq	L_.str.3(%rip), %rdi
	callq	_mkpath
	movq	%rax, %rbx
	movq	%rax, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r13, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_fclose
	movq	_stdin@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_fclose
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax,%r15,8), %rbx
	incq	%r15
	testq	%rbx, %rbx
	jne	LBB0_2
LBB0_16:
	movl	$1, (%r12)
	movl	%r15d, 4(%r12)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%r15,8), %rsi
	movl	%eax, %edi
	jmp	LBB0_11
LBB0_8:
	movq	_stdin@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	callq	_fclose
LBB0_10:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error_errno                    ## TAILCALL
LBB0_17:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%r15,8), %rsi
	movl	%eax, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @split_mail_conv.stdin_only
_split_mail_conv.stdin_only:
	.quad	L_.str
	.quad	0

	.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	"could not open '%s' for reading"

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

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

L_.str.5:                               ## @.str.5
	.asciz	"could not open '%s' for writing"

L_.str.6:                               ## @.str.6
	.asciz	"could not parse patch '%s'"

	.no_dead_strip	_split_mail_conv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function split_mail_conv
_split_mail_conv:                       ; @split_mail_conv
	.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, x1
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _split_mail_conv.stdin_only@PAGE
Lloh1:
	add	x9, x9, _split_mail_conv.stdin_only@PAGEOFF
	cmp	x8, #0
	csel	x23, x9, x2, eq
	ldr	x26, [x23]
	cbz	x26, LBB0_10
; %bb.1:
	mov	x20, x3
	mov	x21, x0
	mov	x25, #0
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
Lloh4:
	adrp	x24, _stdin@GOTPAGE
Lloh5:
	ldr	x24, [x24, _stdin@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x26
	mov	x1, x22
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x26
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	mov	x26, x0
	cbnz	x26, LBB0_5
	b	LBB0_12
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x26, [x24]
	cbz	x26, LBB0_12
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	w2, w1, [x19, #8]
	add	w3, w25, #1
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_mkpath
	mov	x27, x0
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x28, x0
	mov	x1, x26
	mov	x2, x20
	blr	x21
	mov	x27, x0
	mov	x0, x28
	bl	_fclose
	ldr	x8, [x24]
	cmp	x26, x8
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x26
	bl	_fclose
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w27, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x23, x25, lsl #3
	ldr	x26, [x8, #8]
	add	x25, x25, #1
	cbnz	x26, LBB0_2
	b	LBB0_11
LBB0_10:
	mov	w25, #0
LBB0_11:
	mov	w8, #1
	stp	w8, w25, [x19]
	mov	w0, #0
	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_12:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	ldr	x1, [x23, x25, lsl #3]
	b	LBB0_16
LBB0_13:
	ldr	x8, [x24]
	cmp	x26, x8
	b.eq	LBB0_15
; %bb.14:
	mov	x0, x26
	bl	_fclose
LBB0_15:
Lloh14:
	adrp	x0, l_.str.5@PAGE
Lloh15:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x1, x27
LBB0_16:
	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
	b	_error_errno
LBB0_17:
Lloh16:
	adrp	x0, l_.str.6@PAGE
Lloh17:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	ldr	x1, [x23, x25, lsl #3]
	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
	b	_error
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @split_mail_conv.stdin_only
_split_mail_conv.stdin_only:
	.quad	l_.str
	.quad	0

	.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	"could not open '%s' for reading"

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

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

l_.str.5:                               ; @.str.5
	.asciz	"could not open '%s' for writing"

l_.str.6:                               ; @.str.6
	.asciz	"could not parse patch '%s'"

	.no_dead_strip	_split_mail_conv
.subsections_via_symbols
