	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tipc_bclink_peek_nack
_tipc_bclink_peek_nack:                 ## @tipc_bclink_peek_nack
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %rbx
	callq	_tipc_node_find
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	callq	_tipc_node_is_up
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_tipc_node_lock
	movq	(%r13), %r14
	movq	8(%r13), %rbx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_less_eq
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_less
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_less
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r12, (%r13)
	jmp	LBB0_23
LBB0_8:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_less_eq
	testq	%rax, %rax
	je	LBB0_23
## %bb.9:
	movq	(%r13), %rax
	movq	%rax, 8(%r13)
	jmp	LBB0_23
LBB0_10:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_less_eq
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_less_eq
	testq	%rax, %rax
	jne	LBB0_22
	jmp	LBB0_23
LBB0_12:
	movq	16(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_22
## %bb.13:
	movq	8(%r13), %r14
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_22
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_buf_seqno
	movq	%rax, %r12
	movq	%rax, %rdi
	subq	%r14, %rdi
	callq	_mod
	cmpl	$1, %eax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	$0, %ebx
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	jne	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpq	%r15, %r12
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r12, %r14
	jmp	LBB0_20
LBB0_21:
	testq	%rbx, %rbx
	jne	LBB0_23
LBB0_22:
	movq	%r15, 8(%r13)
LBB0_23:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	incq	%rdi
	callq	_bclink_ack_allowed
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:
	movq	8(%r13), %rax
	cmpq	(%r13), %rax
	je	LBB0_26
## %bb.25:
	movq	%r13, %rdi
	callq	_bclink_send_nack
	movq	%r13, %rdi
	callq	_bclink_set_gap
LBB0_26:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tipc_node_unlock               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tipc_bclink_peek_nack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tipc_bclink_peek_nack
_tipc_bclink_peek_nack:                 ; @tipc_bclink_peek_nack
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	bl	_tipc_node_find
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_tipc_node_is_up
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w0, #1
	bl	_unlikely
	cbnz	x0, LBB0_2
LBB0_4:
	mov	x0, x19
	bl	_tipc_node_lock
	ldp	x24, x23, [x19]
	mov	x0, x21
	mov	x1, x24
	bl	_less_eq
	cbz	x0, LBB0_10
; %bb.5:
	mov	x0, x24
	mov	x1, x22
	bl	_less
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x22
	mov	x1, x23
	bl	_less
	cbz	x0, LBB0_8
; %bb.7:
	str	x22, [x19]
	b	LBB0_18
LBB0_8:
	mov	x0, x23
	mov	x1, x22
	bl	_less_eq
	cbz	x0, LBB0_18
; %bb.9:
	ldr	x8, [x19]
	str	x8, [x19, #8]
	b	LBB0_18
LBB0_10:
	mov	x0, x21
	mov	x1, x23
	bl	_less_eq
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x23
	mov	x1, x22
	bl	_less_eq
	cbnz	x0, LBB0_17
	b	LBB0_18
LBB0_12:
	ldr	x22, [x19, #16]
	cbz	x22, LBB0_17
; %bb.13:
	ldr	x24, [x19, #8]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_buf_seqno
	mov	x23, x0
	sub	x0, x0, x24
	bl	_mod
	cmp	w0, #1
	csel	x8, x22, xzr, eq
	ccmp	x23, x21, #4, eq
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	x23, x21
	csel	x24, x24, x23, eq
	ldr	x22, [x8]
	cbnz	x22, LBB0_14
	b	LBB0_17
LBB0_16:
	cbnz	x8, LBB0_18
LBB0_17:
	str	x21, [x19, #8]
LBB0_18:
	add	x0, x20, #1
	bl	_bclink_ack_allowed
	cbz	x0, LBB0_21
; %bb.19:
	ldp	x9, x8, [x19]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.20:
	mov	x0, x19
	bl	_bclink_send_nack
	mov	x0, x19
	bl	_bclink_set_gap
LBB0_21:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_tipc_node_unlock
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tipc_bclink_peek_nack
.subsections_via_symbols
