	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @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	%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	%rsi, %r14
	movl	%edi, %r15d
	movq	_acting_as_client@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_peer@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movq	_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_isatty
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdi
	callq	_el_init
	movq	%rax, _main.el(%rip)
	xorl	%r13d, %r13d
	movl	%r13d, %ebx
	movl	%r13d, %eax
	callq	_history_init
	movq	%rax, _main.hist(%rip)
	movq	_H_SETSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-44(%rbp), %rsi
	movl	$100, %ecx
	movq	%rax, %rdi
	callq	_history
	movq	_history@GOTPCREL(%rip), %rdx
	movq	_main.el(%rip), %rdi
	movq	_EL_HIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_main.hist(%rip), %rcx
	movl	%r13d, %eax
	callq	_el_set
	movq	_main.el(%rip), %rdi
	movq	_EL_EDITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%r13d, %eax
	callq	_el_set
	movq	_main.el(%rip), %rdi
	movq	_EL_PROMPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_command_prompt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %eax
	callq	_el_set
	movq	_main.el(%rip), %rdi
	movq	_EL_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	movl	%r13d, %eax
	callq	_el_set
	movq	_main.el(%rip), %rdi
	movl	%r13d, %esi
	callq	_el_source
LBB0_2:
	cmpl	$2, %r15d
	jl	LBB0_8
## %bb.3:
	movq	_toplevel@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_setjmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	8(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$7, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_setpeer
LBB0_8:
	movl	%r12d, %r14d
	movq	_toplevel@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_setjmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.10:
	movq	_main.el(%rip), %rdi
	callq	_el_reset
LBB0_11:
	movl	$10, %edi
	callq	_putchar
LBB0_12:
	xorl	%ebx, %ebx
	movl	%ebx, %eax
	callq	_init_options
	movq	_main.el(%rip), %rsi
	movq	_main.hist(%rip), %rdx
	leaq	-44(%rbp), %rcx
	movl	%r14d, %edi
	callq	_command
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%r14), %rdi
	callq	_urihandling
LBB0_6:
	movq	_txrx_error@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_main.el,8,3     ## @main.el
.zerofill __DATA,__bss,_main.hist,8,3   ## @main.hist
	.comm	_acting_as_client,4,2           ## @acting_as_client
	.comm	_peer,4,2                       ## @peer
	.comm	_mode,4,2                       ## @mode
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"octet"

	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_intr,4,2                       ## @intr
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
L_.str.1:                               ## @.str.1
	.asciz	"tftp"

	.comm	_stdin,4,2                      ## @stdin
	.comm	_stdout,4,2                     ## @stdout
	.comm	_stderr,4,2                     ## @stderr
	.comm	_H_SETSIZE,4,2                  ## @H_SETSIZE
	.comm	_EL_HIST,4,2                    ## @EL_HIST
	.comm	_EL_EDITOR,4,2                  ## @EL_EDITOR
L_.str.2:                               ## @.str.2
	.asciz	"emacs"

	.comm	_EL_PROMPT,4,2                  ## @EL_PROMPT
	.comm	_command_prompt,4,2             ## @command_prompt
	.comm	_EL_SIGNAL,4,2                  ## @EL_SIGNAL
	.comm	_toplevel,4,2                   ## @toplevel
	.comm	_txrx_error,4,2                 ## @txrx_error
L_.str.3:                               ## @.str.3
	.asciz	"tftp://"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _acting_as_client@GOTPAGE
Lloh1:
	ldr	x8, [x8, _acting_as_client@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	adrp	x10, _peer@GOTPAGE
Lloh3:
	ldr	x10, [x10, _peer@GOTPAGEOFF]
Lloh4:
	str	w9, [x8]
	mov	w8, #-1
Lloh5:
	str	w8, [x10]
Lloh6:
	adrp	x8, _mode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mode@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
Lloh11:
	adrp	x8, _SIGINT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _intr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _intr@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_signal
Lloh17:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_isatty
	mov	x21, x0
	adrp	x22, _main.el@PAGE
	adrp	x23, _main.hist@PAGE
	cbz	w0, LBB0_2
; %bb.1:
Lloh20:
	adrp	x8, _stdin@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _stdout@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_el_init
	str	x0, [x22, _main.el@PAGEOFF]
	bl	_history_init
	str	x0, [x23, _main.hist@PAGEOFF]
Lloh31:
	adrp	x8, _H_SETSIZE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _H_SETSIZE@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	add	x1, sp, #28
	mov	w3, #100
	bl	_history
Lloh34:
	adrp	x8, _history@GOTPAGE
Lloh35:
	ldr	x8, [x8, _history@GOTPAGEOFF]
	ldr	x0, [x22, _main.el@PAGEOFF]
Lloh36:
	adrp	x9, _EL_HIST@GOTPAGE
Lloh37:
	ldr	x9, [x9, _EL_HIST@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x9]
	ldr	x9, [x23, _main.hist@PAGEOFF]
	mov	x10, sp
	stp	x8, x9, [x10]
	bl	_el_set
	ldr	x0, [x22, _main.el@PAGEOFF]
Lloh39:
	adrp	x8, _EL_EDITOR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EL_EDITOR@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x8, sp
Lloh42:
	adrp	x9, l_.str.2@PAGE
Lloh43:
	add	x9, x9, l_.str.2@PAGEOFF
	str	x9, [x8]
	bl	_el_set
	ldr	x0, [x22, _main.el@PAGEOFF]
Lloh44:
	adrp	x8, _EL_PROMPT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EL_PROMPT@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x8, _command_prompt@GOTPAGE
Lloh48:
	ldr	x8, [x8, _command_prompt@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
                                        ; kill: def $x8 killed $w8
	mov	x9, sp
	str	x8, [x9]
	bl	_el_set
	ldr	x0, [x22, _main.el@PAGEOFF]
Lloh50:
	adrp	x8, _EL_SIGNAL@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EL_SIGNAL@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x8, sp
	mov	w9, #1
                                        ; kill: def $x9 killed $w9
	str	x9, [x8]
	bl	_el_set
	ldr	x0, [x22, _main.el@PAGEOFF]
	mov	x1, #0
	bl	_el_source
LBB0_2:
Lloh53:
	adrp	x24, _toplevel@GOTPAGE
Lloh54:
	ldr	x24, [x24, _toplevel@GOTPAGEOFF]
	cmp	w20, #2
	b.lt	LBB0_6
; %bb.3:
	ldr	w0, [x24]
	bl	_setjmp
	cbnz	x0, LBB0_12
; %bb.4:
	ldr	x0, [x19, #8]
Lloh55:
	adrp	x1, l_.str.3@PAGE
Lloh56:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #7
	bl	_strncmp
	cbz	x0, LBB0_11
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_setpeer
LBB0_6:
	ldr	w0, [x24]
	bl	_setjmp
	cbz	x0, LBB0_10
; %bb.7:
	cbz	w21, LBB0_9
; %bb.8:
	ldr	x0, [x22, _main.el@PAGEOFF]
	bl	_el_reset
LBB0_9:
	mov	w0, #10
	bl	_putchar
LBB0_10:
	bl	_init_options
	ldr	x1, [x22, _main.el@PAGEOFF]
	ldr	x2, [x23, _main.hist@PAGEOFF]
	add	x3, sp, #28
	mov	x0, x21
	bl	_command
	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
	add	sp, sp, #96
	ret
LBB0_11:
	ldr	x0, [x19, #8]
	bl	_urihandling
LBB0_12:
Lloh57:
	adrp	x8, _txrx_error@GOTPAGE
Lloh58:
	ldr	x8, [x8, _txrx_error@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_main.el,8,3     ; @main.el
.zerofill __DATA,__bss,_main.hist,8,3   ; @main.hist
	.comm	_acting_as_client,4,2           ; @acting_as_client
	.comm	_peer,4,2                       ; @peer
	.comm	_mode,4,2                       ; @mode
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"octet"

	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_intr,4,2                       ; @intr
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
l_.str.1:                               ; @.str.1
	.asciz	"tftp"

	.comm	_stdin,4,2                      ; @stdin
	.comm	_stdout,4,2                     ; @stdout
	.comm	_stderr,4,2                     ; @stderr
	.comm	_H_SETSIZE,4,2                  ; @H_SETSIZE
	.comm	_EL_HIST,4,2                    ; @EL_HIST
	.comm	_EL_EDITOR,4,2                  ; @EL_EDITOR
l_.str.2:                               ; @.str.2
	.asciz	"emacs"

	.comm	_EL_PROMPT,4,2                  ; @EL_PROMPT
	.comm	_command_prompt,4,2             ; @command_prompt
	.comm	_EL_SIGNAL,4,2                  ; @EL_SIGNAL
	.comm	_toplevel,4,2                   ; @toplevel
	.comm	_txrx_error,4,2                 ; @txrx_error
l_.str.3:                               ; @.str.3
	.asciz	"tftp://"

.subsections_via_symbols
