	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mailinfo                       ## -- Begin function mailinfo
	.p2align	4, 0x90
_mailinfo:                              ## @mailinfo
	.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
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_fopen
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_MAX_HDR_PARSED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_xcalloc
	movq	%rax, 24(%r13)
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_xcalloc
	movq	%rax, 40(%r13)
	movq	_EOF@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r13), %edi
	callq	_fgetc
	cmpl	(%r12), %eax
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:
	movl	32(%r13), %esi
	movl	%ebx, %edi
	callq	_ungetc
	movl	32(%r13), %esi
	leaq	-48(%rbp), %rdi
	callq	_read_one_header_line
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rdx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	_check_header
	movl	32(%r13), %esi
	movq	%r15, %rdi
	callq	_read_one_header_line
	testq	%rax, %rax
	jne	LBB0_9
LBB0_10:
	leaq	-48(%rbp), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_handle_body
	movl	16(%r13), %edx
	movl	20(%r13), %edi
	movl	$1, %esi
	movq	%r14, %rcx
	callq	_fwrite
	movq	%r14, %rdi
	callq	_fclose
	movq	8(%r13), %rdi
	callq	_fclose
	movq	%r13, %rdi
	callq	_handle_info
	movq	%r15, %rdi
	callq	_strbuf_release
	movl	(%r13), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r14, %rdi
	callq	_fclose
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_1:
	movq	%r12, %rdi
	callq	_perror
	movl	$-1, %eax
	jmp	LBB0_11
LBB0_3:
	movq	%r15, %rdi
	callq	_perror
	movq	%r14, %rdi
	callq	_fclose
	movl	$-1, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

	.comm	_MAX_HDR_PARSED,4,2             ## @MAX_HDR_PARSED
	.comm	_EOF,4,2                        ## @EOF
L_.str.1:                               ## @.str.1
	.asciz	"empty patch: '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mailinfo                       ; -- Begin function mailinfo
	.p2align	2
_mailinfo:                              ; @mailinfo
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_fopen
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_fopen
	str	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.2:
Lloh7:
	adrp	x22, _MAX_HDR_PARSED@GOTPAGE
Lloh8:
	ldr	x22, [x22, _MAX_HDR_PARSED@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #1
	bl	_xcalloc
	str	x0, [x19, #24]
	ldr	w0, [x22]
	mov	w1, #1
	bl	_xcalloc
	str	x0, [x19, #40]
Lloh9:
	adrp	x23, _EOF@GOTPAGE
Lloh10:
	ldr	x23, [x23, _EOF@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #32]
	bl	_fgetc
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	bl	_isspace
	cbnz	x0, LBB0_3
; %bb.5:
	ldr	w1, [x19, #32]
	mov	x0, x22
	bl	_ungetc
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #32]
	add	x0, sp, #8
	bl	_read_one_header_line
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [x19, #24]
	add	x1, sp, #8
	mov	x0, x19
	mov	w3, #1
	bl	_check_header
	b	LBB0_6
LBB0_8:
	mov	x0, x20
	bl	_fclose
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	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_9:
	add	x1, sp, #8
	mov	x0, x19
	bl	_handle_body
	ldp	w2, w0, [x19, #16]
	mov	w1, #1
	mov	x3, x20
	bl	_fwrite
	mov	x0, x20
	bl	_fclose
	ldr	x0, [x19, #8]
	bl	_fclose
	mov	x0, x19
	bl	_handle_info
	add	x0, sp, #8
	bl	_strbuf_release
	ldr	w0, [x19]
LBB0_10:
	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_11:
	mov	x0, x22
	bl	_perror
	mov	w0, #-1
	b	LBB0_10
LBB0_12:
	mov	x0, x21
	bl	_perror
	mov	x0, x20
	bl	_fclose
	mov	w0, #-1
	b	LBB0_10
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

	.comm	_MAX_HDR_PARSED,4,2             ; @MAX_HDR_PARSED
	.comm	_EOF,4,2                        ; @EOF
l_.str.1:                               ; @.str.1
	.asciz	"empty patch: '%s'"

.subsections_via_symbols
