	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_disc_recv_msg             ## -- Begin function tipc_disc_recv_msg
	.p2align	4, 0x90
_tipc_disc_recv_msg:                    ## @tipc_disc_recv_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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_buf_msg
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_msg_dest_domain
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_msg_prevnode
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_msg_bc_netid
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_msg_type
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_msg_get_media_addr
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_msg_dbg
	movq	%rbx, %rdi
	callq	_buf_discard
	movq	_tipc_net_id@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_26
## %bb.1:
	movq	%r12, %rdi
	callq	_tipc_addr_domain_valid
	testl	%eax, %eax
	je	LBB0_26
## %bb.2:
	movq	%r13, %rdi
	callq	_tipc_addr_node_valid
	testl	%eax, %eax
	je	LBB0_26
## %bb.3:
	movq	_tipc_own_addr@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	cmpq	%rsi, %r13
	jne	LBB0_6
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rsi
	leaq	-48(%rbp), %rdi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_26
## %bb.5:
	movq	(%rbx), %rsi
	leaq	-48(%rbp), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_disc_dupl_alert
	jmp	LBB0_26
LBB0_6:
	movq	%r12, %rdi
	callq	_in_scope
	testl	%eax, %eax
	je	LBB0_26
## %bb.7:
	movq	(%rbx), %rdi
	callq	_is_slave
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	callq	_is_slave
	testq	%rax, %rax
	jne	LBB0_26
LBB0_9:
	movq	%r13, %rdi
	callq	_is_slave
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	callq	_in_own_cluster
	testq	%rax, %rax
	je	LBB0_26
LBB0_11:
	movq	%r13, %rdi
	callq	_in_own_cluster
	testq	%rax, %rax
	je	LBB0_26
## %bb.12:
	movq	%r13, %rdi
	callq	_tipc_node_find
	movq	%rax, %r12
	leaq	L_.str.1(%rip), %rdi
	callq	_dbg
	testq	%r12, %r12
	jne	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	callq	_tipc_node_create
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_26
LBB0_14:
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	8(%r12), %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_17
## %bb.15:
	leaq	L_.str.2(%rip), %rdi
	callq	_dbg
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_tipc_link_create
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_16
LBB0_17:
	leaq	16(%rbx), %r15
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.18:
	movq	%rbx, %rdi
	callq	_tipc_link_is_up
	testq	%rax, %rax
	je	LBB0_19
LBB0_20:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_disc_dupl_alert
LBB0_16:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
LBB0_26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	cmpl	$0, 12(%rbx)
	je	LBB0_20
## %bb.21:
	movl	8(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_warn
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_tipc_link_reset
LBB0_22:
	movq	(%rbx), %r14
	movq	_WORKING_WORKING@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	_DSC_RESP_MSG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpq	%rdi, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_26
## %bb.23:
	cmpq	%rbx, %r14
	je	LBB0_26
## %bb.24:
	movl	$1, %esi
	movq	%r13, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_tipc_disc_init_msg
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_buf_msg
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rdi
	callq	_msg_dbg
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	16(%rsi), %rax
	addq	$8, %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_buf_discard
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RECV:"

	.comm	_tipc_net_id,8,3                ## @tipc_net_id
	.comm	_tipc_own_addr,8,3              ## @tipc_own_addr
L_.str.1:                               ## @.str.1
	.asciz	" in own cluster\n"

L_.str.2:                               ## @.str.2
	.asciz	"creating link\n"

L_.str.3:                               ## @.str.3
	.asciz	"Resetting link <%s>, peer interface address changed\n"

	.comm	_WORKING_WORKING,8,3            ## @WORKING_WORKING
	.comm	_DSC_RESP_MSG,8,3               ## @DSC_RESP_MSG
L_.str.4:                               ## @.str.4
	.asciz	"SEND:"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_disc_recv_msg             ; -- Begin function tipc_disc_recv_msg
	.p2align	2
_tipc_disc_recv_msg:                    ; @tipc_disc_recv_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	x19, x1
	mov	x23, x0
	bl	_buf_msg
	mov	x24, x0
	bl	_msg_dest_domain
	mov	x22, x0
	mov	x0, x24
	bl	_msg_prevnode
	mov	x20, x0
	mov	x0, x24
	bl	_msg_bc_netid
	mov	x25, x0
	mov	x0, x24
	bl	_msg_type
	mov	x21, x0
	add	x1, sp, #8
	mov	x0, x24
	bl	_msg_get_media_addr
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_msg_dbg
	mov	x0, x23
	bl	_buf_discard
Lloh2:
	adrp	x8, _tipc_net_id@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tipc_net_id@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x25, x8
	b.ne	LBB0_20
; %bb.1:
	mov	x0, x22
	bl	_tipc_addr_domain_valid
	cbz	w0, LBB0_20
; %bb.2:
	mov	x0, x20
	bl	_tipc_addr_node_valid
	cbz	w0, LBB0_20
; %bb.3:
Lloh5:
	adrp	x23, _tipc_own_addr@GOTPAGE
Lloh6:
	ldr	x23, [x23, _tipc_own_addr@GOTPAGEOFF]
	ldr	x1, [x23]
	cmp	x20, x1
	b.ne	LBB0_6
; %bb.4:
	add	x1, x19, #8
	add	x0, sp, #8
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_20
; %bb.5:
	ldr	x1, [x23]
	add	x2, sp, #8
	mov	x0, x19
	bl	_disc_dupl_alert
	b	LBB0_20
LBB0_6:
	mov	x0, x22
	bl	_in_scope
	cbz	w0, LBB0_20
; %bb.7:
	ldr	x0, [x23]
	bl	_is_slave
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_is_slave
	cbnz	x0, LBB0_20
LBB0_9:
	mov	x0, x20
	bl	_is_slave
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_in_own_cluster
	cbz	x0, LBB0_20
LBB0_11:
	mov	x0, x20
	bl	_in_own_cluster
	cbz	x0, LBB0_20
; %bb.12:
	mov	x0, x20
	bl	_tipc_node_find
	mov	x22, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dbg
	cbnz	x22, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_tipc_node_create
	mov	x22, x0
	cbz	x0, LBB0_20
LBB0_14:
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	x8, [x22, #8]
	ldr	x9, [x19]
	ldr	x23, [x8, x9, lsl #3]
	cbnz	x23, LBB0_16
; %bb.15:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dbg
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_tipc_link_create
	mov	x23, x0
	cbz	x0, LBB0_19
LBB0_16:
	add	x24, x23, #16
	add	x1, sp, #8
	mov	x0, x24
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_23
; %bb.17:
	mov	x0, x23
	bl	_tipc_link_is_up
	cbz	x0, LBB0_21
LBB0_18:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_disc_dupl_alert
LBB0_19:
	mov	x0, x22
	bl	_spin_unlock_bh
LBB0_20:
	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
LBB0_21:
	ldr	w8, [x23, #12]
	cbz	w8, LBB0_18
; %bb.22:
	ldr	w1, [x23, #8]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warn
	add	x1, sp, #8
	mov	x0, x24
	mov	w2, #4
	bl	_memcpy
	mov	x0, x23
	bl	_tipc_link_reset
LBB0_23:
	ldr	x23, [x23]
Lloh13:
	adrp	x8, _WORKING_WORKING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WORKING_WORKING@GOTPAGEOFF]
Lloh15:
	ldr	x24, [x8]
	mov	x0, x22
	bl	_spin_unlock_bh
Lloh16:
	adrp	x8, _DSC_RESP_MSG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DSC_RESP_MSG@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
	cmp	x21, x0
	b.eq	LBB0_20
; %bb.24:
	cmp	x23, x24
	b.eq	LBB0_20
; %bb.25:
	mov	w1, #1
	mov	x2, x20
	mov	x3, x19
	bl	_tipc_disc_init_msg
	cbz	x0, LBB0_20
; %bb.26:
	mov	x20, x0
	bl	_buf_msg
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_msg_dbg
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	add	x1, x19, #8
	add	x2, sp, #8
	mov	x0, x20
	blr	x8
	mov	x0, x20
	bl	_buf_discard
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RECV:"

	.comm	_tipc_net_id,8,3                ; @tipc_net_id
	.comm	_tipc_own_addr,8,3              ; @tipc_own_addr
l_.str.1:                               ; @.str.1
	.asciz	" in own cluster\n"

l_.str.2:                               ; @.str.2
	.asciz	"creating link\n"

l_.str.3:                               ; @.str.3
	.asciz	"Resetting link <%s>, peer interface address changed\n"

	.comm	_WORKING_WORKING,8,3            ; @WORKING_WORKING
	.comm	_DSC_RESP_MSG,8,3               ; @DSC_RESP_MSG
l_.str.4:                               ; @.str.4
	.asciz	"SEND:"

.subsections_via_symbols
