	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mips_receive_packet
_mips_receive_packet:                   ## @mips_receive_packet
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%rsp, -112(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HDR_LENGTH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_TRLR_LENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	movl	$0, -56(%rbp)
	movl	$0, -68(%rbp)
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	incq	%rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_1
LBB0_27:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_remote_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_37
## %bb.28:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_fprintf_unfiltered
LBB0_37:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movq	_HDR_LENGTH@GOTPCREL(%rip), %rbx
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_TRLR_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %edx
	movq	%r15, %rdi
	leaq	-68(%rbp), %rsi
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	_mips_receive_header
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_47
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_mips_error
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, -56(%rbp)
	movq	%r15, %rdi
	callq	_HDR_IS_DATA
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_HDR_GET_LEN
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	xorl	%r12d, %r12d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=2
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_mips_error
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=2
	movb	%r13b, (%rbx,%r12)
	incq	%r12
	cmpq	%r12, %r14
	je	LBB0_17
LBB0_12:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_mips_readchar
	movl	%eax, %r13d
	movq	_SYN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_24
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	_SERIAL_TIMEOUT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_15
	jmp	LBB0_47
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leaq	-68(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	_mips_receive_trailer
	cmpl	$-2, %eax
	je	LBB0_27
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_47
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_mips_error
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_HDR_GET_SEQ
	movq	_mips_receive_seq@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_22
## %bb.29:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_mips_cksum
	movslq	%eax, %r14
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_TRLR_GET_CKSUM
	cmpq	%r14, %rax
	je	LBB0_38
## %bb.30:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_remote_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_mips_cksum
	movl	%eax, %ebx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_TRLR_GET_CKSUM
	leaq	L_.str.6(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_printf_unfiltered
LBB0_32:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_HDR_SET_SYN
	movq	_HDR_INDX_SYN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movb	%al, (%r14,%rcx)
	movl	(%r13), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_HDR_SET_TYPE_LEN
	movq	_HDR_INDX_TYPE_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	%al, (%r14,%rcx)
	movl	(%r13), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_HDR_SET_LEN1
	movq	_HDR_INDX_LEN1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	%al, (%r14,%rcx)
	movl	(%r13), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_HDR_SET_SEQ
	movq	_HDR_INDX_SEQ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	%al, (%r14,%rcx)
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_mips_cksum
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_TRLR_SET_CSUM1
	movq	_HDR_LENGTH@GOTPCREL(%rip), %r15
	movslq	(%r15), %rcx
	movq	_TRLR_INDX_CSUM1@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	addq	%rcx, %rdx
	movb	%al, (%r14,%rdx)
	movl	%ebx, %edi
	callq	_TRLR_SET_CSUM2
	movslq	(%r15), %rcx
	movq	_TRLR_INDX_CSUM2@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	addq	%rcx, %rdx
	movb	%al, (%r14,%rdx)
	movl	%ebx, %edi
	callq	_TRLR_SET_CSUM3
	movl	(%r15), %edx
	movslq	%edx, %rcx
	movq	_TRLR_INDX_CSUM3@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rsi
	addq	%rcx, %rsi
	movb	%al, (%r14,%rsi)
	movq	_remote_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_TRLR_LENGTH@GOTPCREL(%rip), %rbx
	jle	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%rbx), %rax
	addq	%rcx, %rax
	movb	$0, (%r14,%rax)
	movl	(%r13), %esi
	leaq	L_.str.7(%rip), %rdi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_printf_unfiltered
	movl	(%r15), %edx
LBB0_34:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_mips_desc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	(%rbx), %edx
	movq	%r14, %rsi
	callq	_serial_write
	testq	%rax, %rax
	je	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_47
## %bb.36:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_safe_strerror
	leaq	L_.str.8(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_mips_error
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leaq	-68(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	_mips_receive_trailer
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_remote_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_37
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_24:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, -56(%rbp)
	movq	_remote_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_37
## %bb.25:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	jmp	LBB0_26
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_remote_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_37
## %bb.23:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_HDR_GET_SEQ
	movl	(%r13), %ecx
	movl	%ebx, %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edx
LBB0_26:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_fprintf_unfiltered
	jmp	LBB0_37
LBB0_47:
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movl	$-1, %r15d
	movq	-112(%rbp), %rbx                ## 8-byte Reload
LBB0_45:
	movq	%rbx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_48
## %bb.46:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movq	_remote_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_40
## %bb.39:
	movslq	%ebx, %rax
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movb	$0, (%rsi,%rax)
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf_unfiltered
LBB0_40:
	movl	(%r13), %eax
	incl	%eax
	movq	_SEQ_MODULOS@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%edx, (%r13)
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_HDR_SET_SYN
	movq	_HDR_INDX_SYN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movb	%al, (%r12,%rcx)
	movl	(%r13), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_HDR_SET_TYPE_LEN
	movq	_HDR_INDX_TYPE_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	%al, (%r12,%rcx)
	movl	(%r13), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_HDR_SET_LEN1
	movq	_HDR_INDX_LEN1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	%al, (%r12,%rcx)
	movl	(%r13), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_HDR_SET_SEQ
	movq	_HDR_INDX_SEQ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	%al, (%r12,%rcx)
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_mips_cksum
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_TRLR_SET_CSUM1
	movq	_HDR_LENGTH@GOTPCREL(%rip), %r13
	movslq	(%r13), %rcx
	movq	_TRLR_INDX_CSUM1@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	addq	%rcx, %rdx
	movb	%al, (%r12,%rdx)
	movl	%r14d, %edi
	callq	_TRLR_SET_CSUM2
	movslq	(%r13), %rcx
	movq	_TRLR_INDX_CSUM2@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	addq	%rcx, %rdx
	movb	%al, (%r12,%rdx)
	movl	%r14d, %edi
	callq	_TRLR_SET_CSUM3
	movl	(%r13), %edx
	movslq	%edx, %rcx
	movq	_TRLR_INDX_CSUM3@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rsi
	addq	%rcx, %rsi
	movb	%al, (%r12,%rsi)
	movq	_remote_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	_TRLR_LENGTH@GOTPCREL(%rip), %r14
	jle	LBB0_42
## %bb.41:
	movslq	(%r14), %rax
	addq	%rcx, %rax
	movb	$0, (%r12,%rax)
	movq	_mips_receive_seq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_printf_unfiltered
	movl	(%r13), %edx
LBB0_42:
	movq	_mips_desc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	(%r14), %edx
	movq	%r12, %rsi
	callq	_serial_write
	movq	%rax, %rcx
	negq	%rcx
	sbbl	%r15d, %r15d
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	orl	%r14d, %r15d
	testq	%rax, %rax
	je	LBB0_45
## %bb.43:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_45
## %bb.44:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_safe_strerror
	leaq	L_.str.8(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_mips_error
	movl	%r14d, %r15d
	jmp	LBB0_45
LBB0_48:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HDR_LENGTH,4,2                 ## @HDR_LENGTH
	.comm	_TRLR_LENGTH,4,2                ## @TRLR_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timed out waiting for remote packet"

	.comm	_remote_debug,8,3               ## @remote_debug
	.comm	_gdb_stdlog,4,2                 ## @gdb_stdlog
L_.str.1:                               ## @.str.1
	.asciz	"Ignoring unexpected ACK\n"

	.comm	_SYN,4,2                        ## @SYN
	.comm	_SERIAL_TIMEOUT,4,2             ## @SERIAL_TIMEOUT
L_.str.2:                               ## @.str.2
	.asciz	"Got new SYN after %d chars (wanted %d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"Timed out waiting for packet"

L_.str.4:                               ## @.str.4
	.asciz	"Got SYN when wanted trailer\n"

	.comm	_mips_receive_seq,4,2           ## @mips_receive_seq
L_.str.5:                               ## @.str.5
	.asciz	"Ignoring sequence number %d (want %d)\n"

L_.str.6:                               ## @.str.6
	.asciz	"Bad checksum; data %d, trailer %d\n"

	.comm	_HDR_INDX_SYN,8,3               ## @HDR_INDX_SYN
	.comm	_HDR_INDX_TYPE_LEN,8,3          ## @HDR_INDX_TYPE_LEN
	.comm	_HDR_INDX_LEN1,8,3              ## @HDR_INDX_LEN1
	.comm	_HDR_INDX_SEQ,8,3               ## @HDR_INDX_SEQ
	.comm	_TRLR_INDX_CSUM1,4,2            ## @TRLR_INDX_CSUM1
	.comm	_TRLR_INDX_CSUM2,4,2            ## @TRLR_INDX_CSUM2
	.comm	_TRLR_INDX_CSUM3,4,2            ## @TRLR_INDX_CSUM3
L_.str.7:                               ## @.str.7
	.asciz	"Writing ack %d \"%s\"\n"

	.comm	_mips_desc,4,2                  ## @mips_desc
L_.str.8:                               ## @.str.8
	.asciz	"write to target failed: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.9:                               ## @.str.9
	.asciz	"Got packet \"%s\"\n"

	.comm	_SEQ_MODULOS,4,2                ## @SEQ_MODULOS
	.no_dead_strip	_mips_receive_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mips_receive_packet
_mips_receive_packet:                   ; @mips_receive_packet
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #64
	mov	x22, x2
	stur	w1, [x29, #-100]                ; 4-byte Folded Spill
	mov	x21, x0
	mov	x8, sp
	stur	x8, [x29, #-128]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x28, _HDR_LENGTH@GOTPAGE
Lloh4:
	ldr	x28, [x28, _HDR_LENGTH@GOTPAGEOFF]
Lloh5:
	adrp	x27, _TRLR_LENGTH@GOTPAGE
Lloh6:
	ldr	x27, [x27, _TRLR_LENGTH@GOTPAGEOFF]
	ldr	w8, [x28]
	ldr	w9, [x27]
	add	w8, w8, w9
	add	w9, w8, #1
	add	x8, x9, #15
	and	x8, x8, #0x1fffffff0
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x8, x9, x8
	mov	sp, x8
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
	add	x8, x8, #1
	stur	x8, [x29, #-136]                ; 8-byte Folded Spill
	stur	xzr, [x29, #-96]
Lloh9:
	adrp	x23, _SYN@GOTPAGE
Lloh10:
	ldr	x23, [x23, _SYN@GOTPAGEOFF]
Lloh11:
	adrp	x20, _SERIAL_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x20, [x20, _SERIAL_TIMEOUT@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_fprintf_unfiltered
	add	sp, sp, #16
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	mov	sp, x8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	x8, sp
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
	ldr	w8, [x28]
	mov	x9, x8
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x26, x9, x8
	mov	sp, x26
	ldr	w8, [x27]
	mov	x9, x8
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	ldur	w2, [x29, #-92]
	sub	x1, x29, #96
	mov	x0, x26
	mov	x3, x22
	bl	_mips_receive_header
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	cbz	w8, LBB0_37
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mips_error
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	stur	wzr, [x29, #-92]
	mov	x0, x26
	bl	_HDR_IS_DATA
	mov	x27, x0
	mov	x0, x26
	bl	_HDR_GET_LEN
	mov	x28, x0
	cbz	w27, LBB0_27
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w28, #1
	b.lt	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, #0
	mov	w19, w28
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=2
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mips_error
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	strb	w27, [x21, x25]
	add	x25, x25, #1
	cmp	x19, x25
	b.eq	LBB0_14
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_mips_readchar
	mov	x27, x0
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_31
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w8, [x20]
	cmp	w27, w8
	b.ne	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	cbnz	w8, LBB0_9
	b	LBB0_37
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x1, x29, #96
	sub	x2, x29, #92
	mov	x0, x24
	mov	x3, x22
	bl	_mips_receive_trailer
	cmn	w0, #2
	b.eq	LBB0_33
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	cmn	w0, #1
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	cbz	w8, LBB0_37
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_mips_error
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
	bl	_HDR_GET_SEQ
Lloh23:
	adrp	x8, _mips_receive_seq@GOTPAGE
Lloh24:
	ldr	x8, [x8, _mips_receive_seq@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_35
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	stp	x21, x28, [sp, #-16]!
	mov	x0, x26
	bl	_mips_cksum
	add	sp, sp, #16
	mov	x27, x0
	mov	x0, x24
	bl	_TRLR_GET_CKSUM
	cmp	x0, w27, sxtw
	b.eq	LBB0_40
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh26:
	adrp	x8, _remote_debug@GOTPAGE
Lloh27:
	ldr	x8, [x8, _remote_debug@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x8, #1
Lloh29:
	adrp	x27, _TRLR_LENGTH@GOTPAGE
Lloh30:
	ldr	x27, [x27, _TRLR_LENGTH@GOTPAGEOFF]
	b.lt	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	stp	x21, x28, [sp, #-16]!
	mov	x0, x26
	bl	_mips_cksum
	add	sp, sp, #16
	mov	x26, x0
	mov	x0, x24
	bl	_TRLR_GET_CKSUM
	stp	x26, x0, [sp, #-16]!
Lloh31:
	adrp	x0, l_.str.6@PAGE
Lloh32:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf_unfiltered
	add	sp, sp, #16
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh33:
	adrp	x25, _mips_receive_seq@GOTPAGE
Lloh34:
	ldr	x25, [x25, _mips_receive_seq@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	w0, #0
	mov	w1, #0
	bl	_HDR_SET_SYN
Lloh35:
	adrp	x8, _HDR_INDX_SYN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _HDR_INDX_SYN@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	ldur	x19, [x29, #-120]               ; 8-byte Folded Reload
	strb	w0, [x19, x8]
	ldr	w2, [x25]
	mov	w0, #0
	mov	w1, #0
	bl	_HDR_SET_TYPE_LEN
Lloh38:
	adrp	x8, _HDR_INDX_TYPE_LEN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _HDR_INDX_TYPE_LEN@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	strb	w0, [x19, x8]
	ldr	w2, [x25]
	mov	w0, #0
	mov	w1, #0
	bl	_HDR_SET_LEN1
Lloh41:
	adrp	x8, _HDR_INDX_LEN1@GOTPAGE
Lloh42:
	ldr	x8, [x8, _HDR_INDX_LEN1@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	strb	w0, [x19, x8]
	ldr	w2, [x25]
	mov	w0, #0
	mov	w1, #0
	bl	_HDR_SET_SEQ
Lloh44:
	adrp	x8, _HDR_INDX_SEQ@GOTPAGE
Lloh45:
	ldr	x8, [x8, _HDR_INDX_SEQ@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	strb	w0, [x19, x8]
	stp	xzr, xzr, [sp, #-16]!
	mov	x0, x19
	bl	_mips_cksum
	add	sp, sp, #16
	mov	x24, x0
	bl	_TRLR_SET_CSUM1
Lloh47:
	adrp	x28, _HDR_LENGTH@GOTPAGE
Lloh48:
	ldr	x28, [x28, _HDR_LENGTH@GOTPAGEOFF]
	ldrsw	x8, [x28]
Lloh49:
	adrp	x9, _TRLR_INDX_CSUM1@GOTPAGE
Lloh50:
	ldr	x9, [x9, _TRLR_INDX_CSUM1@GOTPAGEOFF]
Lloh51:
	ldrsw	x9, [x9]
	add	x8, x9, x8
	strb	w0, [x19, x8]
	mov	x0, x24
	bl	_TRLR_SET_CSUM2
	ldrsw	x8, [x28]
Lloh52:
	adrp	x9, _TRLR_INDX_CSUM2@GOTPAGE
Lloh53:
	ldr	x9, [x9, _TRLR_INDX_CSUM2@GOTPAGEOFF]
Lloh54:
	ldrsw	x9, [x9]
	add	x8, x9, x8
	strb	w0, [x19, x8]
	mov	x0, x24
	bl	_TRLR_SET_CSUM3
	ldr	w8, [x28]
	sxtw	x9, w8
Lloh55:
	adrp	x10, _TRLR_INDX_CSUM3@GOTPAGE
Lloh56:
	ldr	x10, [x10, _TRLR_INDX_CSUM3@GOTPAGEOFF]
Lloh57:
	ldrsw	x10, [x10]
	add	x10, x10, x9
	strb	w0, [x19, x10]
Lloh58:
	adrp	x10, _remote_debug@GOTPAGE
Lloh59:
	ldr	x10, [x10, _remote_debug@GOTPAGEOFF]
Lloh60:
	ldr	x10, [x10]
	cmp	x10, #1
	b.lt	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x27]
	add	x8, x8, x9
	strb	wzr, [x19, x8]
	ldr	w8, [x25]
	ldur	x9, [x29, #-136]                ; 8-byte Folded Reload
	stp	x8, x9, [sp, #-16]!
Lloh61:
	adrp	x0, l_.str.7@PAGE
Lloh62:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf_unfiltered
	add	sp, sp, #16
	ldr	w8, [x28]
LBB0_24:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh63:
	adrp	x9, _mips_desc@GOTPAGE
Lloh64:
	ldr	x9, [x9, _mips_desc@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x9]
	ldr	w9, [x27]
	add	w2, w9, w8
	mov	x1, x19
	bl	_serial_write
	cbz	x0, LBB0_2
; %bb.25:                               ;   in Loop: Header=BB0_3 Depth=1
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	cbz	w8, LBB0_37
; %bb.26:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh66:
	adrp	x8, _errno@GOTPAGE
Lloh67:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh68:
	ldr	w0, [x8]
	bl	_safe_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh69:
	adrp	x0, l_.str.8@PAGE
Lloh70:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_mips_error
	add	sp, sp, #16
Lloh71:
	adrp	x27, _TRLR_LENGTH@GOTPAGE
Lloh72:
	ldr	x27, [x27, _TRLR_LENGTH@GOTPAGEOFF]
Lloh73:
	adrp	x28, _HDR_LENGTH@GOTPAGE
Lloh74:
	ldr	x28, [x28, _HDR_LENGTH@GOTPAGEOFF]
	b	LBB0_2
LBB0_27:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w28, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	x1, x29, #96
	sub	x2, x29, #92
	mov	x0, x24
	mov	x3, x22
	bl	_mips_receive_trailer
LBB0_29:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh75:
	adrp	x8, _remote_debug@GOTPAGE
Lloh76:
	ldr	x8, [x8, _remote_debug@GOTPAGEOFF]
Lloh77:
	ldr	x8, [x8]
	cmp	x8, #1
Lloh78:
	adrp	x27, _TRLR_LENGTH@GOTPAGE
Lloh79:
	ldr	x27, [x27, _TRLR_LENGTH@GOTPAGEOFF]
Lloh80:
	adrp	x28, _HDR_LENGTH@GOTPAGE
Lloh81:
	ldr	x28, [x28, _HDR_LENGTH@GOTPAGEOFF]
	b.lt	LBB0_2
; %bb.30:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh82:
	adrp	x8, _gdb_stdlog@GOTPAGE
Lloh83:
	ldr	x8, [x8, _gdb_stdlog@GOTPAGEOFF]
Lloh84:
	ldr	w0, [x8]
Lloh85:
	adrp	x1, l_.str.1@PAGE
Lloh86:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf_unfiltered
	b	LBB0_2
LBB0_31:                                ;   in Loop: Header=BB0_3 Depth=1
	stur	w27, [x29, #-92]
Lloh87:
	adrp	x8, _remote_debug@GOTPAGE
Lloh88:
	ldr	x8, [x8, _remote_debug@GOTPAGEOFF]
Lloh89:
	ldr	x8, [x8]
	cmp	x8, #1
Lloh90:
	adrp	x27, _TRLR_LENGTH@GOTPAGE
Lloh91:
	ldr	x27, [x27, _TRLR_LENGTH@GOTPAGEOFF]
Lloh92:
	adrp	x28, _HDR_LENGTH@GOTPAGE
Lloh93:
	ldr	x28, [x28, _HDR_LENGTH@GOTPAGEOFF]
	b.lt	LBB0_2
; %bb.32:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh94:
	adrp	x8, _gdb_stdlog@GOTPAGE
Lloh95:
	ldr	x8, [x8, _gdb_stdlog@GOTPAGEOFF]
Lloh96:
	ldr	w0, [x8]
	stp	x25, x19, [sp, #-16]!
Lloh97:
	adrp	x1, l_.str.2@PAGE
Lloh98:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_1
LBB0_33:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh99:
	adrp	x8, _remote_debug@GOTPAGE
Lloh100:
	ldr	x8, [x8, _remote_debug@GOTPAGEOFF]
Lloh101:
	ldr	x8, [x8]
	cmp	x8, #1
Lloh102:
	adrp	x27, _TRLR_LENGTH@GOTPAGE
Lloh103:
	ldr	x27, [x27, _TRLR_LENGTH@GOTPAGEOFF]
Lloh104:
	adrp	x28, _HDR_LENGTH@GOTPAGE
Lloh105:
	ldr	x28, [x28, _HDR_LENGTH@GOTPAGEOFF]
	b.lt	LBB0_2
; %bb.34:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh106:
	adrp	x8, _gdb_stdlog@GOTPAGE
Lloh107:
	ldr	x8, [x8, _gdb_stdlog@GOTPAGEOFF]
Lloh108:
	ldr	w0, [x8]
Lloh109:
	adrp	x1, l_.str.4@PAGE
Lloh110:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf_unfiltered
	b	LBB0_2
LBB0_35:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh111:
	adrp	x8, _remote_debug@GOTPAGE
Lloh112:
	ldr	x8, [x8, _remote_debug@GOTPAGEOFF]
Lloh113:
	ldr	x8, [x8]
	cmp	x8, #1
Lloh114:
	adrp	x27, _TRLR_LENGTH@GOTPAGE
Lloh115:
	ldr	x27, [x27, _TRLR_LENGTH@GOTPAGEOFF]
Lloh116:
	adrp	x28, _HDR_LENGTH@GOTPAGE
Lloh117:
	ldr	x28, [x28, _HDR_LENGTH@GOTPAGEOFF]
	b.lt	LBB0_2
; %bb.36:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh118:
	adrp	x8, _gdb_stdlog@GOTPAGE
Lloh119:
	ldr	x8, [x8, _gdb_stdlog@GOTPAGEOFF]
Lloh120:
	ldr	w24, [x8]
	mov	x0, x26
	bl	_HDR_GET_SEQ
                                        ; kill: def $w0 killed $w0 def $x0
Lloh121:
	adrp	x8, _mips_receive_seq@GOTPAGE
Lloh122:
	ldr	x8, [x8, _mips_receive_seq@GOTPAGEOFF]
Lloh123:
	ldr	w8, [x8]
	stp	x0, x8, [sp, #-16]!
	mov	x0, x24
Lloh124:
	adrp	x1, l_.str.5@PAGE
Lloh125:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_1
LBB0_37:
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	mov	sp, x8
	mov	w0, #-1
	ldur	x19, [x29, #-128]               ; 8-byte Folded Reload
LBB0_38:
	mov	sp, x19
	ldur	x8, [x29, #-88]
Lloh126:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh127:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh128:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_47
; %bb.39:
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_40:
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	mov	sp, x8
Lloh129:
	adrp	x8, _remote_debug@GOTPAGE
Lloh130:
	ldr	x8, [x8, _remote_debug@GOTPAGEOFF]
Lloh131:
	ldr	x8, [x8]
	cmp	x8, #1
Lloh132:
	adrp	x20, _TRLR_LENGTH@GOTPAGE
Lloh133:
	ldr	x20, [x20, _TRLR_LENGTH@GOTPAGEOFF]
	b.lt	LBB0_42
; %bb.41:
	strb	wzr, [x21, w28, sxtw]
	str	x21, [sp, #-16]!
Lloh134:
	adrp	x0, l_.str.9@PAGE
Lloh135:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf_unfiltered
	add	sp, sp, #16
LBB0_42:
Lloh136:
	adrp	x24, _mips_receive_seq@GOTPAGE
Lloh137:
	ldr	x24, [x24, _mips_receive_seq@GOTPAGEOFF]
	ldr	w8, [x24]
	add	w8, w8, #1
Lloh138:
	adrp	x9, _SEQ_MODULOS@GOTPAGE
Lloh139:
	ldr	x9, [x9, _SEQ_MODULOS@GOTPAGEOFF]
Lloh140:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w2, w10, w9, w8
	str	w2, [x24]
	mov	w0, #0
	mov	w1, #0
	bl	_HDR_SET_SYN
Lloh141:
	adrp	x8, _HDR_INDX_SYN@GOTPAGE
Lloh142:
	ldr	x8, [x8, _HDR_INDX_SYN@GOTPAGEOFF]
Lloh143:
	ldr	x8, [x8]
	ldur	x23, [x29, #-120]               ; 8-byte Folded Reload
	strb	w0, [x23, x8]
	ldr	w2, [x24]
	mov	w0, #0
	mov	w1, #0
	bl	_HDR_SET_TYPE_LEN
Lloh144:
	adrp	x8, _HDR_INDX_TYPE_LEN@GOTPAGE
Lloh145:
	ldr	x8, [x8, _HDR_INDX_TYPE_LEN@GOTPAGEOFF]
Lloh146:
	ldr	x8, [x8]
	strb	w0, [x23, x8]
	ldr	w2, [x24]
	mov	w0, #0
	mov	w1, #0
	bl	_HDR_SET_LEN1
Lloh147:
	adrp	x8, _HDR_INDX_LEN1@GOTPAGE
Lloh148:
	ldr	x8, [x8, _HDR_INDX_LEN1@GOTPAGEOFF]
Lloh149:
	ldr	x8, [x8]
	strb	w0, [x23, x8]
	ldr	w2, [x24]
	mov	w0, #0
	mov	w1, #0
	bl	_HDR_SET_SEQ
Lloh150:
	adrp	x8, _HDR_INDX_SEQ@GOTPAGE
Lloh151:
	ldr	x8, [x8, _HDR_INDX_SEQ@GOTPAGEOFF]
Lloh152:
	ldr	x8, [x8]
	strb	w0, [x23, x8]
	stp	xzr, xzr, [sp, #-16]!
	mov	x0, x23
	bl	_mips_cksum
	add	sp, sp, #16
	mov	x21, x0
	bl	_TRLR_SET_CSUM1
Lloh153:
	adrp	x22, _HDR_LENGTH@GOTPAGE
Lloh154:
	ldr	x22, [x22, _HDR_LENGTH@GOTPAGEOFF]
	ldrsw	x8, [x22]
Lloh155:
	adrp	x9, _TRLR_INDX_CSUM1@GOTPAGE
Lloh156:
	ldr	x9, [x9, _TRLR_INDX_CSUM1@GOTPAGEOFF]
Lloh157:
	ldrsw	x9, [x9]
	add	x8, x9, x8
	strb	w0, [x23, x8]
	mov	x0, x21
	bl	_TRLR_SET_CSUM2
	ldrsw	x8, [x22]
Lloh158:
	adrp	x9, _TRLR_INDX_CSUM2@GOTPAGE
Lloh159:
	ldr	x9, [x9, _TRLR_INDX_CSUM2@GOTPAGEOFF]
Lloh160:
	ldrsw	x9, [x9]
	add	x8, x9, x8
	strb	w0, [x23, x8]
	mov	x0, x21
	bl	_TRLR_SET_CSUM3
	ldr	w8, [x22]
	sxtw	x9, w8
Lloh161:
	adrp	x10, _TRLR_INDX_CSUM3@GOTPAGE
Lloh162:
	ldr	x10, [x10, _TRLR_INDX_CSUM3@GOTPAGEOFF]
Lloh163:
	ldrsw	x10, [x10]
	add	x10, x10, x9
	strb	w0, [x23, x10]
Lloh164:
	adrp	x10, _remote_debug@GOTPAGE
Lloh165:
	ldr	x10, [x10, _remote_debug@GOTPAGEOFF]
Lloh166:
	ldr	x10, [x10]
	cmp	x10, #1
	ldur	x19, [x29, #-128]               ; 8-byte Folded Reload
	b.lt	LBB0_44
; %bb.43:
	ldrsw	x8, [x20]
	add	x8, x8, x9
	strb	wzr, [x23, x8]
	ldr	w8, [x24]
	ldur	x9, [x29, #-136]                ; 8-byte Folded Reload
	stp	x8, x9, [sp, #-16]!
Lloh167:
	adrp	x0, l_.str.7@PAGE
Lloh168:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf_unfiltered
	add	sp, sp, #16
	ldr	w8, [x22]
LBB0_44:
Lloh169:
	adrp	x9, _mips_desc@GOTPAGE
Lloh170:
	ldr	x9, [x9, _mips_desc@GOTPAGEOFF]
Lloh171:
	ldr	w0, [x9]
	ldr	w9, [x20]
	add	w2, w9, w8
	mov	x1, x23
	bl	_serial_write
	mov	x8, x0
	cmp	x0, #0
	csinv	w0, w28, wzr, eq
	cbz	x8, LBB0_38
; %bb.45:
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	cbz	w8, LBB0_38
; %bb.46:
Lloh172:
	adrp	x8, _errno@GOTPAGE
Lloh173:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh174:
	ldr	w0, [x8]
	bl	_safe_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh175:
	adrp	x0, l_.str.8@PAGE
Lloh176:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_mips_error
	add	sp, sp, #16
	mov	x0, x28
	b	LBB0_38
LBB0_47:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGot	Lloh104, Lloh105
	.loh AdrpLdrGot	Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGot	Lloh116, Lloh117
	.loh AdrpLdrGot	Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpAdd	Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGotLdr	Lloh126, Lloh127, Lloh128
	.loh AdrpLdrGot	Lloh132, Lloh133
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.loh AdrpAdd	Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh164, Lloh165, Lloh166
	.loh AdrpLdrGotLdr	Lloh161, Lloh162, Lloh163
	.loh AdrpLdrGotLdr	Lloh158, Lloh159, Lloh160
	.loh AdrpLdrGotLdr	Lloh155, Lloh156, Lloh157
	.loh AdrpLdrGot	Lloh153, Lloh154
	.loh AdrpLdrGotLdr	Lloh150, Lloh151, Lloh152
	.loh AdrpLdrGotLdr	Lloh147, Lloh148, Lloh149
	.loh AdrpLdrGotLdr	Lloh144, Lloh145, Lloh146
	.loh AdrpLdrGotLdr	Lloh141, Lloh142, Lloh143
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.loh AdrpLdrGot	Lloh136, Lloh137
	.loh AdrpAdd	Lloh167, Lloh168
	.loh AdrpLdrGotLdr	Lloh169, Lloh170, Lloh171
	.loh AdrpAdd	Lloh175, Lloh176
	.loh AdrpLdrGotLdr	Lloh172, Lloh173, Lloh174
	.cfi_endproc
                                        ; -- End function
	.comm	_HDR_LENGTH,4,2                 ; @HDR_LENGTH
	.comm	_TRLR_LENGTH,4,2                ; @TRLR_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timed out waiting for remote packet"

	.comm	_remote_debug,8,3               ; @remote_debug
	.comm	_gdb_stdlog,4,2                 ; @gdb_stdlog
l_.str.1:                               ; @.str.1
	.asciz	"Ignoring unexpected ACK\n"

	.comm	_SYN,4,2                        ; @SYN
	.comm	_SERIAL_TIMEOUT,4,2             ; @SERIAL_TIMEOUT
l_.str.2:                               ; @.str.2
	.asciz	"Got new SYN after %d chars (wanted %d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"Timed out waiting for packet"

l_.str.4:                               ; @.str.4
	.asciz	"Got SYN when wanted trailer\n"

	.comm	_mips_receive_seq,4,2           ; @mips_receive_seq
l_.str.5:                               ; @.str.5
	.asciz	"Ignoring sequence number %d (want %d)\n"

l_.str.6:                               ; @.str.6
	.asciz	"Bad checksum; data %d, trailer %d\n"

	.comm	_HDR_INDX_SYN,8,3               ; @HDR_INDX_SYN
	.comm	_HDR_INDX_TYPE_LEN,8,3          ; @HDR_INDX_TYPE_LEN
	.comm	_HDR_INDX_LEN1,8,3              ; @HDR_INDX_LEN1
	.comm	_HDR_INDX_SEQ,8,3               ; @HDR_INDX_SEQ
	.comm	_TRLR_INDX_CSUM1,4,2            ; @TRLR_INDX_CSUM1
	.comm	_TRLR_INDX_CSUM2,4,2            ; @TRLR_INDX_CSUM2
	.comm	_TRLR_INDX_CSUM3,4,2            ; @TRLR_INDX_CSUM3
l_.str.7:                               ; @.str.7
	.asciz	"Writing ack %d \"%s\"\n"

	.comm	_mips_desc,4,2                  ; @mips_desc
l_.str.8:                               ; @.str.8
	.asciz	"write to target failed: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.9:                               ; @.str.9
	.asciz	"Got packet \"%s\"\n"

	.comm	_SEQ_MODULOS,4,2                ; @SEQ_MODULOS
	.no_dead_strip	_mips_receive_packet
.subsections_via_symbols
