	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_link_send_duplicate       ## -- Begin function tipc_link_send_duplicate
	.p2align	4, 0x90
_tipc_link_send_duplicate:              ## @tipc_link_send_duplicate
	.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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	_CHANGEOVER_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DUPLICATE_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_INT_H_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	40(%rdi), %r8d
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_msg_init
	movl	36(%r13), %esi
	movq	%rbx, %rdi
	callq	_msg_set_msgcnt
	movl	32(%r13), %esi
	movq	%rbx, %rdi
	callq	_msg_set_bearer_id
	movq	24(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_buf_msg
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_msg_size
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_msg_user
	movq	_MSG_BUNDLER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_CLOSED_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_msg_set_type
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r13), %rdi
	decq	%rdi
	callq	_mod
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_msg_set_ack
	movq	8(%r13), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_msg_set_bcast_ack
	movq	_INT_H_SIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	%r14, %rsi
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_msg_set_size
	movq	(%rbx), %rdi
	addq	%r14, %rdi
	callq	_buf_acquire
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r12
	movq	(%rbx), %rdx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_skb_copy_to_linear_data
	movq	(%rbx), %rsi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	8(%r15), %edx
	movq	%r12, %rdi
	movq	%r14, %rcx
	callq	_skb_copy_to_linear_data_offset
	movq	(%r13), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	_dbg
	movq	%r12, %rdi
	callq	_buf_msg
	movq	%rax, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_msg_dbg
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_tipc_link_send_buf
	movq	%r13, %rdi
	callq	_tipc_link_is_up
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_3
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_warn
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHANGEOVER_PROTOCOL,4,2        ## @CHANGEOVER_PROTOCOL
	.comm	_DUPLICATE_MSG,4,2              ## @DUPLICATE_MSG
	.comm	_INT_H_SIZE,8,3                 ## @INT_H_SIZE
	.comm	_MSG_BUNDLER,8,3                ## @MSG_BUNDLER
	.comm	_CLOSED_MSG,4,2                 ## @CLOSED_MSG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Link changeover error, unable to send duplicate msg\n"

L_.str.1:                               ## @.str.1
	.asciz	"%c->%c:"

L_.str.2:                               ## @.str.2
	.asciz	">SEND>"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_link_send_duplicate       ; -- Begin function tipc_link_send_duplicate
	.p2align	2
_tipc_link_send_duplicate:              ; @tipc_link_send_duplicate
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CHANGEOVER_PROTOCOL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHANGEOVER_PROTOCOL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DUPLICATE_MSG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DUPLICATE_MSG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w2, [x9]
Lloh6:
	adrp	x26, _INT_H_SIZE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _INT_H_SIZE@GOTPAGEOFF]
	ldr	x3, [x26]
	ldr	w4, [x0, #40]
	add	x0, sp, #8
	bl	_msg_init
	ldr	w1, [x20, #36]
	add	x0, sp, #8
	bl	_msg_set_msgcnt
	ldr	w1, [x20, #32]
	add	x0, sp, #8
	bl	_msg_set_bearer_id
	ldr	x21, [x20, #24]
	cbz	x21, LBB0_8
; %bb.1:
Lloh8:
	adrp	x27, _MSG_BUNDLER@GOTPAGE
Lloh9:
	ldr	x27, [x27, _MSG_BUNDLER@GOTPAGEOFF]
Lloh10:
	adrp	x28, _CLOSED_MSG@GOTPAGE
Lloh11:
	ldr	x28, [x28, _CLOSED_MSG@GOTPAGEOFF]
Lloh12:
	adrp	x22, l_.str.1@PAGE
Lloh13:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh14:
	adrp	x23, l_.str.2@PAGE
Lloh15:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_buf_msg
	mov	x25, x0
	bl	_msg_size
	mov	x24, x0
	mov	x0, x25
	bl	_msg_user
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x28]
	mov	x0, x25
	bl	_msg_set_type
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #16]
	sub	x0, x8, #1
	bl	_mod
	mov	x1, x0
	mov	x0, x25
	bl	_msg_set_ack
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	mov	x0, x25
	bl	_msg_set_bcast_ack
	ldr	x8, [x26]
	add	x1, x8, x24
	add	x0, sp, #8
	bl	_msg_set_size
	ldr	x8, [x26]
	add	x0, x8, x24
	bl	_buf_acquire
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x0
	ldr	x2, [x26]
	add	x1, sp, #8
	bl	_skb_copy_to_linear_data
	ldr	x1, [x26]
	ldr	w2, [x21, #8]
	mov	x0, x25
	mov	x3, x24
	bl	_skb_copy_to_linear_data_offset
	ldr	x8, [x20]
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	w2, [x8]
	mov	x0, x22
	bl	_dbg
	mov	x0, x25
	bl	_buf_msg
	mov	x1, x23
	bl	_msg_dbg
	mov	x0, x19
	mov	x1, x25
	bl	_tipc_link_send_buf
	mov	x0, x20
	bl	_tipc_link_is_up
	cbz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x21, [x21]
	cbnz	x21, LBB0_2
	b	LBB0_8
LBB0_7:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CHANGEOVER_PROTOCOL,4,2        ; @CHANGEOVER_PROTOCOL
	.comm	_DUPLICATE_MSG,4,2              ; @DUPLICATE_MSG
	.comm	_INT_H_SIZE,8,3                 ; @INT_H_SIZE
	.comm	_MSG_BUNDLER,8,3                ; @MSG_BUNDLER
	.comm	_CLOSED_MSG,4,2                 ; @CLOSED_MSG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Link changeover error, unable to send duplicate msg\n"

l_.str.1:                               ; @.str.1
	.asciz	"%c->%c:"

l_.str.2:                               ; @.str.2
	.asciz	">SEND>"

.subsections_via_symbols
