	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_link_recv_fragment        ## -- Begin function tipc_link_recv_fragment
	.p2align	4, 0x90
_tipc_link_recv_fragment:               ## @tipc_link_recv_fragment
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_buf_msg
	movq	%rax, %r15
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r14
	movq	%rax, %rdi
	callq	_msg_long_msgno
	movq	%rax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	$0, (%rbx)
	movq	%r15, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_msg_dbg
	testq	%r14, %r14
	je	LBB0_8
## %bb.1:
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %r13
	movq	(%r14), %rax
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_buf_msg
	movq	%rax, %rdi
	callq	_msg_seqno
	cmpq	%r12, %rax
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_msg_orignode
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_buf_msg
	movq	%rax, %rdi
	callq	_msg_orignode
	cmpq	%rax, %r15
	jne	LBB0_2
## %bb.5:
	movq	%rbx, %rdi
	callq	_msg_type
	movq	_FIRST_FRAGMENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.6:
	movq	%rbx, %rdi
	callq	_msg_data_sz
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_get_fragm_size
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_msg_fragm_no
	decl	%eax
	movq	%rbx, %r12
	movslq	%eax, %rbx
	imulq	%r15, %rbx
	movq	%r14, %rdi
	callq	_get_expected_frags
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_msg_data
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_skb_copy_to_linear_data_offset
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_buf_discard
	decq	%r15
	je	LBB0_21
## %bb.7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_set_expected_frags
	jmp	LBB0_19
LBB0_8:
	movq	%rbx, %rdi
	callq	_msg_type
	movq	_FIRST_FRAGMENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	callq	_msg_data
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_msg_size
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_msg_data_sz
	movq	%rax, %rcx
	movq	%r13, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_12
## %bb.10:
	movq	%r13, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%rbx, %r15
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_dbg
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_msg_dbg
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_dbg
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_dbg_print_buf_chain
	movq	%rbx, %rdi
	callq	_buf_discard
	jmp	LBB0_20
LBB0_12:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $eax killed $eax def $rax
LBB0_13:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	setne	-64(%rbp)                       ## 1-byte Folded Spill
	movq	_TIPC_MAX_USER_MSG_SIZE@GOTPCREL(%rip), %rcx
	movq	_LONG_H_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	(%rcx), %r15
	movq	%r14, %rdi
	callq	_msg_type
	movq	_TIPC_MCAST_MSG@GOTPCREL(%rip), %rcx
	movq	_MCAST_H_SIZE@GOTPCREL(%rip), %rdx
	movq	%r14, %r13
	movq	(%rdx), %r14
	movq	_TIPC_MAX_USER_MSG_SIZE@GOTPCREL(%rip), %rdx
	addq	(%rdx), %r14
	cmpq	(%rcx), %rax
	cmovneq	%r15, %r14
	movq	%r13, %rdi
	callq	_msg_size
	cmpq	%r14, %rax
	jle	LBB0_15
## %bb.14:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_msg_dbg
	jmp	LBB0_18
LBB0_15:
	movq	%r13, %rdi
	callq	_msg_size
	movq	%rax, %rdi
	callq	_buf_acquire
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%rax, %r14
	xorl	%r15d, %r15d
	movb	-64(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r15b
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	%rax, (%r14)
	movq	%r14, (%rcx)
	movq	%rbx, %rdi
	callq	_msg_data_sz
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	_skb_copy_to_linear_data
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_set_long_msg_seqno
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_fragm_size
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %rsi
	decq	%rsi
	movq	%r14, %rdi
	callq	_set_expected_frags
	jmp	LBB0_18
LBB0_17:
	leaq	L_.str.2(%rip), %rdi
	callq	_warn
LBB0_18:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_buf_discard
LBB0_19:
	xorl	%r14d, %r14d
LBB0_20:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	testq	%r13, %r13
	movq	(%r14), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmovneq	%r13, %rcx
	movq	%rax, (%rcx)
	movq	%r14, %rdi
	callq	_buf_msg
	movq	%rax, %rdi
	callq	_msg_reset_reroute_cnt
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movq	%r14, %rdi
	callq	_buf_msg
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	$1, %r14d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FRG<REC<"

	.comm	_FIRST_FRAGMENT,8,3             ## @FIRST_FRAGMENT
	.comm	_TIPC_MAX_USER_MSG_SIZE,8,3     ## @TIPC_MAX_USER_MSG_SIZE
	.comm	_LONG_H_SIZE,8,3                ## @LONG_H_SIZE
	.comm	_TIPC_MCAST_MSG,8,3             ## @TIPC_MCAST_MSG
	.comm	_MCAST_H_SIZE,8,3               ## @MCAST_H_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"<REC<Oversized: "

L_.str.2:                               ## @.str.2
	.asciz	"Link unable to reassemble fragmented message\n"

L_.str.3:                               ## @.str.3
	.asciz	" Discarding orphan fragment %x\n"

L_.str.4:                               ## @.str.4
	.asciz	"ORPHAN:"

L_.str.5:                               ## @.str.5
	.asciz	"Pending long buffers:\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_link_recv_fragment        ; -- Begin function tipc_link_recv_fragment
	.p2align	2
_tipc_link_recv_fragment:               ; @tipc_link_recv_fragment
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	ldr	x19, [x1]
	mov	x0, x19
	bl	_buf_msg
	mov	x21, x0
	ldr	x25, [x20]
	bl	_msg_long_msgno
	mov	x22, x0
	str	xzr, [x24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_msg_dbg
	cbz	x25, LBB0_8
; %bb.1:
	mov	x28, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25]
	mov	x28, x25
	mov	x25, x8
	cbz	x8, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_buf_msg
	bl	_msg_seqno
	cmp	x0, x22
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_msg_orignode
	mov	x26, x0
	mov	x0, x25
	bl	_buf_msg
	bl	_msg_orignode
	cmp	x26, x0
	b.ne	LBB0_2
; %bb.5:
	mov	x0, x21
	bl	_msg_type
Lloh2:
	adrp	x8, _FIRST_FRAGMENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FIRST_FRAGMENT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.6:
	mov	x0, x21
	bl	_msg_data_sz
	mov	x26, x0
	mov	x0, x25
	bl	_get_fragm_size
	mov	x22, x0
	mov	x0, x21
	bl	_msg_fragm_no
	sub	w8, w0, #1
	sxtw	x8, w8
	mul	x27, x22, x8
	mov	x0, x25
	bl	_get_expected_frags
	sub	x22, x0, #1
	mov	x0, x21
	bl	_msg_data
	mov	x2, x0
	mov	x0, x25
	mov	x1, x27
	mov	x3, x26
	bl	_skb_copy_to_linear_data_offset
	mov	x0, x19
	bl	_buf_discard
	cbz	x22, LBB0_18
; %bb.7:
	mov	x0, x25
	mov	x1, x22
	bl	_set_expected_frags
	b	LBB0_13
LBB0_8:
	mov	x0, x21
	bl	_msg_type
Lloh5:
	adrp	x8, _FIRST_FRAGMENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FIRST_FRAGMENT@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x21
	bl	_msg_data
	mov	x24, x0
	bl	_msg_size
	mov	x25, x0
	mov	x0, x21
	bl	_msg_data_sz
	mov	x23, x0
	sdiv	x26, x25, x0
	msub	x8, x26, x0, x25
	cmp	x8, #0
Lloh8:
	adrp	x25, _TIPC_MAX_USER_MSG_SIZE@GOTPAGE
Lloh9:
	ldr	x25, [x25, _TIPC_MAX_USER_MSG_SIZE@GOTPAGEOFF]
	cset	w27, ne
	ldr	x8, [x25]
Lloh10:
	adrp	x9, _LONG_H_SIZE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _LONG_H_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x28, x9, x8
	mov	x0, x24
	bl	_msg_type
Lloh13:
	adrp	x8, _TIPC_MCAST_MSG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TIPC_MCAST_MSG@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x9, [x25]
Lloh16:
	adrp	x10, _MCAST_H_SIZE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _MCAST_H_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	add	x9, x10, x9
	cmp	x0, x8
	csel	x25, x9, x28, eq
	mov	x0, x24
	bl	_msg_size
	cmp	x0, x25
	b.le	LBB0_15
; %bb.10:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_msg_dbg
	b	LBB0_12
LBB0_11:
	str	x19, [sp]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_dbg
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_msg_dbg
Lloh25:
	adrp	x0, l_.str.5@PAGE
Lloh26:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_dbg
	ldr	x0, [x20]
	bl	_dbg_print_buf_chain
LBB0_12:
	mov	x0, x19
	bl	_buf_discard
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	mov	x0, x24
	bl	_msg_size
	bl	_buf_acquire
	cbz	x0, LBB0_17
; %bb.16:
	mov	x25, x0
	ldr	x8, [x20]
	str	x8, [x0]
	str	x0, [x20]
	mov	x0, x21
	bl	_msg_data_sz
	mov	x2, x0
	mov	x0, x25
	mov	x1, x24
	bl	_skb_copy_to_linear_data
	mov	x0, x25
	mov	x1, x22
	bl	_set_long_msg_seqno
	mov	x0, x25
	mov	x1, x23
	bl	_set_fragm_size
	add	x8, x26, x27
	sub	x1, x8, #1
	mov	x0, x25
	bl	_set_expected_frags
	b	LBB0_12
LBB0_17:
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warn
	b	LBB0_12
LBB0_18:
	ldr	x8, [x25]
	cmp	x28, #0
	csel	x9, x20, x28, eq
	str	x8, [x9]
	mov	x0, x25
	bl	_buf_msg
	bl	_msg_reset_reroute_cnt
	str	x25, [x24]
	mov	x0, x25
	bl	_buf_msg
	str	x0, [x23]
	mov	w0, #1
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FRG<REC<"

	.comm	_FIRST_FRAGMENT,8,3             ; @FIRST_FRAGMENT
	.comm	_TIPC_MAX_USER_MSG_SIZE,8,3     ; @TIPC_MAX_USER_MSG_SIZE
	.comm	_LONG_H_SIZE,8,3                ; @LONG_H_SIZE
	.comm	_TIPC_MCAST_MSG,8,3             ; @TIPC_MCAST_MSG
	.comm	_MCAST_H_SIZE,8,3               ; @MCAST_H_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"<REC<Oversized: "

l_.str.2:                               ; @.str.2
	.asciz	"Link unable to reassemble fragmented message\n"

l_.str.3:                               ; @.str.3
	.asciz	" Discarding orphan fragment %x\n"

l_.str.4:                               ; @.str.4
	.asciz	"ORPHAN:"

l_.str.5:                               ; @.str.5
	.asciz	"Pending long buffers:\n"

.subsections_via_symbols
