	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_error
_process_error:                         ## @process_error
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_recv_error_packets@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	8(%rdi), %edi
	callq	_show_ipv6
	movl	%eax, %r14d
	movq	(%rbx), %r15
	movl	20(%rbx), %edi
	callq	_show_error
	movl	16(%rbx), %r9d
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	movq	%r15, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_vkprintf
	movq	_working_mode@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_SERVER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.1:
	movl	12(%rbx), %edi
	xorl	%esi, %esi
	callq	_get_connection_f
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r14
	movq	(%rax), %rax
	movslq	(%r15), %rcx
	movl	$1, %edx
	subq	%rcx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_5
## %bb.3:
	movl	8(%rbx), %edi
	callq	_show_ipv6
	movq	(%rbx), %rcx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_vkprintf
	movq	%r14, %rdi
	callq	_tftp_conn_complete
	jmp	LBB0_5
LBB0_4:
	movq	_CLIENT@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_assert
	movq	_work_complete@GOTPCREL(%rip), %rax
	movl	$2, (%rax)
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_recv_error_packets,4,2         ## @recv_error_packets
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Receive error packet from [%s]:%d. %s (%s).\n"

	.comm	_working_mode,4,2               ## @working_mode
	.comm	_SERVER,4,2                     ## @SERVER
L_.str.1:                               ## @.str.1
	.asciz	"Clean listening connection for [%s]:%d.\n"

	.comm	_CLIENT,4,2                     ## @CLIENT
	.comm	_work_complete,4,2              ## @work_complete
	.no_dead_strip	_process_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_error
_process_error:                         ; @process_error
	.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, x0
Lloh0:
	adrp	x8, _recv_error_packets@GOTPAGE
Lloh1:
	ldr	x8, [x8, _recv_error_packets@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	w0, [x0, #8]
	bl	_show_ipv6
	mov	x20, x0
	ldr	x21, [x19]
	ldr	w0, [x19, #20]
	bl	_show_error
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19, #16]
	stp	x0, x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	mov	x3, x21
	bl	_vkprintf
Lloh4:
	adrp	x21, _working_mode@GOTPAGE
Lloh5:
	ldr	x21, [x21, _working_mode@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _SERVER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SERVER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x19, #12]
	mov	w1, #0
	bl	_get_connection_f
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	x8, [x0]
	ldrsw	x9, [x21]
	mov	w10, #1
	sub	x9, x10, x9
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	w0, [x19, #8]
	bl	_show_ipv6
	mov	x2, x0
	ldr	x3, [x19]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	mov	x0, x20
	bl	_tftp_conn_complete
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x9, _CLIENT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CLIENT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
	bl	_assert
Lloh14:
	adrp	x8, _work_complete@GOTPAGE
Lloh15:
	ldr	x8, [x8, _work_complete@GOTPAGEOFF]
	mov	w9, #2
Lloh16:
	str	w9, [x8]
LBB0_5:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_recv_error_packets,4,2         ; @recv_error_packets
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Receive error packet from [%s]:%d. %s (%s).\n"

	.comm	_working_mode,4,2               ; @working_mode
	.comm	_SERVER,4,2                     ; @SERVER
l_.str.1:                               ; @.str.1
	.asciz	"Clean listening connection for [%s]:%d.\n"

	.comm	_CLIENT,4,2                     ; @CLIENT
	.comm	_work_complete,4,2              ; @work_complete
	.no_dead_strip	_process_error
.subsections_via_symbols
