	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function link_recv_changeover_msg
_link_recv_changeover_msg:              ## @link_recv_changeover_msg
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rdi
	movq	%rdi, %r13
	callq	_buf_msg
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_msg_type
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_msg_msgcnt
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movq	32(%rax), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_msg_bearer_id
	movq	(%rbx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.4:
	movq	(%r14), %rax
	cmpq	%rax, %rbx
	je	LBB0_5
## %bb.6:
	movq	24(%rbx), %rcx
	movslq	(%rcx), %rsi
	movq	24(%rax), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_dbg
	movq	%rbx, (%r14)
	movq	%r12, %rdi
	callq	_msg_get_wrapped
	movq	%rax, %rdi
	movq	_DUPLICATE_MSG@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_11
## %bb.7:
	callq	_msg_seqno
	movl	%eax, %r14d
	movl	16(%rbx), %edi
	callq	_mod
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_less
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r12, %rdi
	callq	_msg_dbg
	jmp	LBB0_3
LBB0_5:
	movl	12(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_err
LBB0_3:
	movq	%r13, %r14
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_23:
	movq	$0, (%r15)
	xorl	%ebx, %ebx
LBB0_24:
	movq	%r14, %rdi
	callq	_buf_discard
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_tipc_link_is_up
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_msg_dbg
	movl	12(%rbx), %esi
	leaq	L_.str.7(%rip), %rdi
	callq	_info
	movq	%rbx, %rdi
	callq	_tipc_link_reset
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, (%rbx)
	leaq	L_.str.8(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_dbg
	testq	%r14, %r14
	movq	%r13, %r14
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_15
	jmp	LBB0_23
LBB0_9:
	movq	_INT_H_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %r14
	movq	%r13, %rdi
	callq	_buf_extract
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_20
## %bb.10:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_22
LBB0_13:
	movq	(%rbx), %rax
	movq	_START_CHANGEOVER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r13, %r14
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_15
## %bb.14:
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdi
	callq	_msg_dbg
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, (%rbx)
	leaq	L_.str.8(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_dbg
	testq	%r13, %r13
	je	LBB0_23
LBB0_15:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	decq	%rax
	movq	%rax, (%rbx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_msg_seqno
	movl	8(%rbx), %esi
	movl	%eax, %edi
	callq	_less
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.13(%rip), %rsi
	movq	%r12, %rdi
	callq	_msg_dbg
	jmp	LBB0_23
LBB0_16:
	leaq	L_.str.10(%rip), %rdi
	callq	_warn
	leaq	L_.str.11(%rip), %rsi
	movq	%r12, %rdi
	callq	_msg_dbg
	leaq	L_.str.12(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dbg_print_link
	jmp	LBB0_23
LBB0_19:
	movq	_INT_H_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_buf_extract
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_21
LBB0_20:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_msg_dbg
	movl	$1, %ebx
	jmp	LBB0_24
LBB0_21:
	leaq	L_.str.14(%rip), %rdi
LBB0_22:
	callq	_warn
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NOLINK/<REC<"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected changeover message on link <%s>\n"

L_.str.2:                               ## @.str.2
	.asciz	"%c<-%c:"

	.comm	_DUPLICATE_MSG,8,3              ## @DUPLICATE_MSG
L_.str.3:                               ## @.str.3
	.asciz	"DROP/<REC<"

	.comm	_INT_H_SIZE,4,2                 ## @INT_H_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"Link changeover error, duplicate msg dropped\n"

L_.str.5:                               ## @.str.5
	.asciz	"TNL<REC<"

L_.str.6:                               ## @.str.6
	.asciz	"UP/FIRST/<REC<"

L_.str.7:                               ## @.str.7
	.asciz	"Resetting link <%s>, changeover initiated by peer\n"

L_.str.8:                               ## @.str.8
	.asciz	"Expecting %u tunnelled messages\n"

	.comm	_START_CHANGEOVER,8,3           ## @START_CHANGEOVER
L_.str.9:                               ## @.str.9
	.asciz	"BLK/FIRST/<REC<"

L_.str.10:                              ## @.str.10
	.asciz	"Link switchover error, got too many tunnelled messages\n"

L_.str.11:                              ## @.str.11
	.asciz	"OVERDUE/DROP/<REC<"

L_.str.12:                              ## @.str.12
	.asciz	"LINK:"

L_.str.13:                              ## @.str.13
	.asciz	"DROP/DUPL/<REC<"

L_.str.14:                              ## @.str.14
	.asciz	"Link changeover error, original msg dropped\n"

	.no_dead_strip	_link_recv_changeover_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function link_recv_changeover_msg
_link_recv_changeover_msg:              ; @link_recv_changeover_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x1
	mov	x24, x0
	ldr	x19, [x1]
	mov	x0, x19
	bl	_buf_msg
	mov	x21, x0
	bl	_msg_type
	mov	x25, x0
	mov	x0, x21
	bl	_msg_msgcnt
	mov	x23, x0
	ldr	x8, [x24]
	ldr	x8, [x8, #32]
	ldr	x22, [x8]
	mov	x0, x21
	bl	_msg_bearer_id
	ldr	x22, [x22, x0, lsl #3]
	cbz	x22, LBB0_5
; %bb.1:
	ldr	x8, [x24]
	cmp	x22, x8
	b.eq	LBB0_7
; %bb.2:
	ldr	x9, [x22, #24]
	ldrsw	x1, [x9]
	ldr	x8, [x8, #24]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dbg
	str	x22, [x24]
	mov	x0, x21
	bl	_msg_get_wrapped
	mov	x24, x0
Lloh2:
	adrp	x8, _DUPLICATE_MSG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DUPLICATE_MSG@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x25, x8
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x24
	bl	_msg_seqno
	mov	x23, x0
	ldr	w0, [x22, #16]
	bl	_mod
	mov	x1, x0
	mov	x0, x23
	bl	_less
	cbz	x0, LBB0_10
; %bb.4:
Lloh5:
	adrp	x1, l_.str.3@PAGE
Lloh6:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x21
	bl	_msg_dbg
	b	LBB0_23
LBB0_7:
	ldr	w1, [x22, #12]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
	b	LBB0_23
LBB0_8:
	mov	x0, x22
	bl	_tipc_link_is_up
	cbz	x0, LBB0_12
; %bb.9:
Lloh11:
	adrp	x1, l_.str.6@PAGE
Lloh12:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_msg_dbg
	ldr	w1, [x22, #12]
Lloh13:
	adrp	x0, l_.str.7@PAGE
Lloh14:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_info
	mov	x0, x22
	bl	_tipc_link_reset
	b	LBB0_14
LBB0_10:
Lloh15:
	adrp	x8, _INT_H_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INT_H_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_buf_extract
	str	x0, [x20]
	cbnz	x0, LBB0_20
; %bb.11:
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_22
LBB0_12:
	ldr	x8, [x22]
Lloh20:
	adrp	x9, _START_CHANGEOVER@GOTPAGE
Lloh21:
	ldr	x9, [x9, _START_CHANGEOVER@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.13:
Lloh23:
	adrp	x1, l_.str.9@PAGE
Lloh24:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_msg_dbg
LBB0_14:
	str	x23, [x22]
Lloh25:
	adrp	x0, l_.str.8@PAGE
Lloh26:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x23
	bl	_dbg
	cbz	x23, LBB0_23
LBB0_15:
	ldr	x8, [x22]
	cbz	x8, LBB0_18
; %bb.16:
	sub	x8, x8, #1
	str	x8, [x22]
	mov	x0, x24
	bl	_msg_seqno
	ldr	w1, [x22, #8]
	bl	_less
	cbz	x0, LBB0_19
; %bb.17:
Lloh27:
	adrp	x1, l_.str.13@PAGE
Lloh28:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_6
LBB0_18:
Lloh29:
	adrp	x0, l_.str.10@PAGE
Lloh30:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_warn
Lloh31:
	adrp	x1, l_.str.11@PAGE
Lloh32:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x21
	bl	_msg_dbg
Lloh33:
	adrp	x1, l_.str.12@PAGE
Lloh34:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x22
	bl	_dbg_print_link
	b	LBB0_23
LBB0_19:
Lloh35:
	adrp	x8, _INT_H_SIZE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _INT_H_SIZE@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_buf_extract
	str	x0, [x20]
	cbz	x0, LBB0_21
LBB0_20:
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_msg_dbg
	mov	w21, #1
	b	LBB0_24
LBB0_21:
Lloh40:
	adrp	x0, l_.str.14@PAGE
Lloh41:
	add	x0, x0, l_.str.14@PAGEOFF
LBB0_22:
	bl	_warn
LBB0_23:
	mov	w21, #0
	str	xzr, [x20]
LBB0_24:
	mov	x0, x19
	bl	_buf_discard
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NOLINK/<REC<"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected changeover message on link <%s>\n"

l_.str.2:                               ; @.str.2
	.asciz	"%c<-%c:"

	.comm	_DUPLICATE_MSG,8,3              ; @DUPLICATE_MSG
l_.str.3:                               ; @.str.3
	.asciz	"DROP/<REC<"

	.comm	_INT_H_SIZE,4,2                 ; @INT_H_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"Link changeover error, duplicate msg dropped\n"

l_.str.5:                               ; @.str.5
	.asciz	"TNL<REC<"

l_.str.6:                               ; @.str.6
	.asciz	"UP/FIRST/<REC<"

l_.str.7:                               ; @.str.7
	.asciz	"Resetting link <%s>, changeover initiated by peer\n"

l_.str.8:                               ; @.str.8
	.asciz	"Expecting %u tunnelled messages\n"

	.comm	_START_CHANGEOVER,8,3           ; @START_CHANGEOVER
l_.str.9:                               ; @.str.9
	.asciz	"BLK/FIRST/<REC<"

l_.str.10:                              ; @.str.10
	.asciz	"Link switchover error, got too many tunnelled messages\n"

l_.str.11:                              ; @.str.11
	.asciz	"OVERDUE/DROP/<REC<"

l_.str.12:                              ; @.str.12
	.asciz	"LINK:"

l_.str.13:                              ; @.str.13
	.asciz	"DROP/DUPL/<REC<"

l_.str.14:                              ; @.str.14
	.asciz	"Link changeover error, original msg dropped\n"

	.no_dead_strip	_link_recv_changeover_msg
.subsections_via_symbols
