	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_main                       ## -- Begin function cmd_main
	.p2align	4, 0x90
_cmd_main:                              ## @cmd_main
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-44(%rbp), %rdi
	callq	_setup_git_directory_gently
	xorl	%eax, %eax
	callq	_git_imap_config
	movq	_imap_send_options@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	_imap_send_usage@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	movq	%r14, %rsi
	xorl	%r9d, %r9d
	callq	_parse_options
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	movl	(%r15), %esi
	callq	_usage_with_options
LBB0_2:
	movq	_use_curl@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_warning
	movl	$0, (%rbx)
LBB0_4:
	movq	_server@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.6:
	cmpl	$0, 24(%rax)
	je	LBB0_7
LBB0_9:
	cmpq	$0, 8(%rax)
	jne	LBB0_13
## %bb.10:
	cmpq	$0, 16(%rax)
	je	LBB0_11
## %bb.12:
	leaq	L_.str.4(%rip), %rcx
	movq	%rcx, 8(%rax)
LBB0_13:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	callq	_read_message
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_8
LBB0_5:
	cmpq	$0, 32(%rax)
	movl	$143, %ecx
	movl	$993, %edx                      ## imm = 0x3E1
	cmovel	%ecx, %edx
	movl	%edx, (%rax)
	cmpl	$0, 24(%rax)
	jne	LBB0_9
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	callq	_fprintf
	movl	$1, %eax
LBB0_20:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	cmpq	$0, -40(%rbp)
	je	LBB0_16
## %bb.17:
	leaq	-40(%rbp), %rdi
	callq	_count_messages
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	movq	_server@GOTPCREL(%rip), %rdi
	leaq	-40(%rbp), %rsi
	movl	%eax, %edx
	callq	_append_msgs_to_imap
	jmp	LBB0_20
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_8
LBB0_18:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_imap_send_options,4,2          ## @imap_send_options
	.comm	_imap_send_usage,4,2            ## @imap_send_usage
	.comm	_use_curl,4,2                   ## @use_curl
L_.str.1:                               ## @.str.1
	.asciz	"--curl not supported in this build"

	.comm	_server,40,3                    ## @server
	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"no imap store specified\n"

L_.str.3:                               ## @.str.3
	.asciz	"no imap host specified\n"

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

	.comm	_stdin,4,2                      ## @stdin
L_.str.5:                               ## @.str.5
	.asciz	"error reading input\n"

L_.str.6:                               ## @.str.6
	.asciz	"nothing to send\n"

L_.str.7:                               ## @.str.7
	.asciz	"no messages to send\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_main                       ; -- Begin function cmd_main
	.p2align	2
_cmd_main:                              ; @cmd_main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	add	x0, sp, #4
	bl	_setup_git_directory_gently
	bl	_git_imap_config
Lloh3:
	adrp	x21, _imap_send_options@GOTPAGE
Lloh4:
	ldr	x21, [x21, _imap_send_options@GOTPAGEOFF]
	ldr	w3, [x21]
Lloh5:
	adrp	x22, _imap_send_usage@GOTPAGE
Lloh6:
	ldr	x22, [x22, _imap_send_usage@GOTPAGEOFF]
	ldr	w4, [x22]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	w5, #0
	bl	_parse_options
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x22]
	ldr	w1, [x21]
	bl	_usage_with_options
LBB0_2:
Lloh9:
	adrp	x19, _use_curl@GOTPAGE
Lloh10:
	ldr	x19, [x19, _use_curl@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.3:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warning
	str	wzr, [x19]
LBB0_4:
Lloh13:
	adrp	x8, _server@GOTPAGE
Lloh14:
	ldr	x8, [x8, _server@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_11
; %bb.5:
	ldr	w9, [x8, #24]
	cbz	w9, LBB0_12
LBB0_6:
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_9
; %bb.7:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_18
; %bb.8:
Lloh15:
	adrp	x9, l_.str.4@PAGE
Lloh16:
	add	x9, x9, l_.str.4@PAGEOFF
	str	x9, [x8, #8]
LBB0_9:
Lloh17:
	adrp	x8, _stdin@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_read_message
	cbz	x0, LBB0_15
; %bb.10:
Lloh20:
	adrp	x8, _stderr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_11:
	ldr	x9, [x8, #32]
	cmp	x9, #0
	mov	w9, #993
	mov	w10, #143
	csel	w9, w10, w9, eq
	str	w9, [x8]
	ldr	w9, [x8, #24]
	cbnz	w9, LBB0_6
LBB0_12:
Lloh25:
	adrp	x8, _stderr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_13:
	bl	_fprintf
	mov	w0, #1
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_15:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_19
; %bb.16:
	add	x0, sp, #8
	bl	_count_messages
	cbz	w0, LBB0_20
; %bb.17:
	mov	x2, x0
Lloh30:
	adrp	x0, _server@GOTPAGE
Lloh31:
	ldr	x0, [x0, _server@GOTPAGEOFF]
	add	x1, sp, #8
	bl	_append_msgs_to_imap
	b	LBB0_14
LBB0_18:
Lloh32:
	adrp	x8, _stderr@GOTPAGE
Lloh33:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_19:
Lloh37:
	adrp	x8, _stderr@GOTPAGE
Lloh38:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x1, l_.str.6@PAGE
Lloh41:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_13
LBB0_20:
Lloh42:
	adrp	x8, _stderr@GOTPAGE
Lloh43:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x1, l_.str.7@PAGE
Lloh46:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_13
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_imap_send_options,4,2          ; @imap_send_options
	.comm	_imap_send_usage,4,2            ; @imap_send_usage
	.comm	_use_curl,4,2                   ; @use_curl
l_.str.1:                               ; @.str.1
	.asciz	"--curl not supported in this build"

	.comm	_server,40,3                    ; @server
	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"no imap store specified\n"

l_.str.3:                               ; @.str.3
	.asciz	"no imap host specified\n"

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

	.comm	_stdin,4,2                      ; @stdin
l_.str.5:                               ; @.str.5
	.asciz	"error reading input\n"

l_.str.6:                               ; @.str.6
	.asciz	"nothing to send\n"

l_.str.7:                               ; @.str.7
	.asciz	"no messages to send\n"

.subsections_via_symbols
