	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function link_handle_out_of_seq_msg
_link_handle_out_of_seq_msg:            ## @link_handle_out_of_seq_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_buf_msg
	movl	%eax, %edi
	callq	_msg_seqno
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_buf_msg
	movl	%eax, %edi
	callq	_msg_user
	movq	_LINK_PROTOCOL@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_link_recv_proto_msg            ## TAILCALL
LBB0_1:
	movl	20(%r14), %edi
	callq	_mod
	movl	20(%r14), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_dbg
	decl	24(%r14)
	movl	20(%r14), %edi
	callq	_mod
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_less
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:
	incl	4(%r14)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_buf_discard                    ## TAILCALL
LBB0_2:
	leaq	16(%r14), %rdi
	leaq	12(%r14), %rsi
	movq	%rbx, %rdx
	callq	_tipc_link_defer_pkt
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	(%r14), %eax
	incl	%eax
	movl	%eax, (%r14)
	incl	8(%r14)
	andl	$-2147483633, %eax              ## imm = 0x8000000F
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.4:
	movq	_STATE_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, (%rsp)
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_tipc_link_send_proto_msg
	jmp	LBB0_6
LBB0_5:
	incl	4(%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LINK_PROTOCOL,8,3              ## @LINK_PROTOCOL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx OOS msg: seq_no %u, expecting %u (%u)\n"

	.comm	_STATE_MSG,4,2                  ## @STATE_MSG
	.no_dead_strip	_link_handle_out_of_seq_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function link_handle_out_of_seq_msg
_link_handle_out_of_seq_msg:            ; @link_handle_out_of_seq_msg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_buf_msg
	bl	_msg_seqno
	mov	x21, x0
	mov	x0, x20
	bl	_buf_msg
	bl	_msg_user
Lloh0:
	adrp	x8, _LINK_PROTOCOL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LINK_PROTOCOL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_link_recv_proto_msg
LBB0_2:
	ldr	w0, [x19, #20]
	bl	_mod
	mov	x2, x0
	ldr	w3, [x19, #20]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_dbg
	ldp	w0, w8, [x19, #20]
	sub	w8, w8, #1
	str	w8, [x19, #24]
	bl	_mod
	mov	x1, x0
	mov	x0, x21
	bl	_less
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_buf_discard
LBB0_4:
	add	x0, x19, #16
	add	x1, x19, #12
	mov	x2, x20
	bl	_tipc_link_defer_pkt
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	w9, [x19, #8]
	add	w9, w9, #1
	str	w9, [x19, #8]
	and	w8, w8, #0x8000000f
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.6:
Lloh5:
	adrp	x8, _STATE_MSG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STATE_MSG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tipc_link_send_proto_msg
LBB0_7:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LINK_PROTOCOL,8,3              ; @LINK_PROTOCOL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx OOS msg: seq_no %u, expecting %u (%u)\n"

	.comm	_STATE_MSG,4,2                  ; @STATE_MSG
	.no_dead_strip	_link_handle_out_of_seq_msg
.subsections_via_symbols
