	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function split_mail_stgit_series
_split_mail_stgit_series:               ## @split_mail_stgit_series
	.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
	movq	%rdi, %r12
	movq	_ARGV_ARRAY_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rsi, %r15
	cmpq	$0, 8(%rsi)
	je	LBB0_2
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_2:
	movl	%edx, %r14d
	callq	_xstrdup
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_dirname
	movq	%rax, %r13
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %rbx
	leaq	-56(%rbp), %rdi
	movq	%rax, %rsi
	callq	_strbuf_getline_lf
	testl	%eax, %eax
	je	LBB0_4
LBB0_8:
	movq	%rbx, %rdi
	callq	_fclose
	leaq	-56(%rbp), %rdi
	callq	_strbuf_release
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	_stgit_patch_to_mail@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %edx
	movq	%r12, %rsi
	movl	%r14d, %ecx
	callq	_split_mail_conv
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_argv_array_clear
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	(%r15), %rsi
	movl	%eax, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error_errno                    ## TAILCALL
LBB0_4:
	leaq	-56(%rbp), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_strbuf_getline_lf
	testl	%eax, %eax
	jne	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdx
	cmpb	$35, (%rdx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movq	%r13, %rsi
	callq	_mkpath
	leaq	-48(%rbp), %rdi
	movl	%eax, %esi
	callq	_argv_array_push
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ARGV_ARRAY_INIT,4,2            ## @ARGV_ARRAY_INIT
	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Only one StGIT patch series can be applied at once"

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/%s"

	.comm	_stgit_patch_to_mail,4,2        ## @stgit_patch_to_mail
	.no_dead_strip	_split_mail_stgit_series
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function split_mail_stgit_series
_split_mail_stgit_series:               ; @split_mail_stgit_series
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
Lloh0:
	adrp	x8, _ARGV_ARRAY_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARGV_ARRAY_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp]
	ldr	x0, [x1]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x24, x1
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_3
LBB0_2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_error
LBB0_3:
	mov	x19, x2
	bl	_xstrdup
	mov	x21, x0
	bl	_dirname
	mov	x22, x0
	ldr	x0, [x24]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_6
; %bb.4:
	mov	x23, x0
	mov	x0, sp
	mov	x1, x23
	bl	_strbuf_getline_lf
	cbz	w0, LBB0_7
LBB0_5:
	mov	x0, x23
	bl	_fclose
	mov	x0, sp
	bl	_strbuf_release
	mov	x0, x21
	bl	_free
Lloh10:
	adrp	x8, _stgit_patch_to_mail@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stgit_patch_to_mail@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w2, [sp, #8]
	mov	x1, x20
	mov	x3, x19
	bl	_split_mail_conv
	mov	x19, x0
	add	x0, sp, #8
	bl	_argv_array_clear
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	ldr	x1, [x24]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_error_errno
LBB0_7:
Lloh15:
	adrp	x24, l_.str.3@PAGE
Lloh16:
	add	x24, x24, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, sp
	mov	x1, x23
	bl	_strbuf_getline_lf
	cbnz	w0, LBB0_5
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [sp]
	ldrb	w8, [x2]
	cmp	w8, #35
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_mkpath
	mov	x1, x0
	add	x0, sp, #8
	bl	_argv_array_push
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ARGV_ARRAY_INIT,4,2            ; @ARGV_ARRAY_INIT
	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Only one StGIT patch series can be applied at once"

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/%s"

	.comm	_stgit_patch_to_mail,4,2        ; @stgit_patch_to_mail
	.no_dead_strip	_split_mail_stgit_series
.subsections_via_symbols
