	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_bclink_acknowledge        ## -- Begin function tipc_bclink_acknowledge
	.p2align	4, 0x90
_tipc_bclink_acknowledge:               ## @tipc_bclink_acknowledge
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %esi
	movl	%r14d, %edi
	callq	_less_eq
	testq	%rax, %rax
	je	LBB0_1
## %bb.17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_bc_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_bh
	movq	_bcl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rbx
	xorl	%r13d, %r13d
	testq	%rbx, %rbx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_buf_seqno
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_less_eq
	testq	%rax, %rax
	je	LBB0_4
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_9:
	movl	%r14d, (%r15)
	movq	_bcl@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	(%rbx), %rdi
	callq	_tipc_link_push_queue
LBB0_11:
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.13:
	movq	(%rbx), %rdi
	addq	$4, %rdi
	callq	_list_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	jmp	LBB0_14
LBB0_12:
	xorl	%edi, %edi
LBB0_14:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	_tipc_link_wakeup_ports
LBB0_16:
	movq	_bc_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
LBB0_4:
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rbx
	testq	%r12, %r12
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_buf_seqno
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_less_eq
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %r12
	movq	%rbx, %rdi
	callq	_bcbuf_decr_acks
	movq	%rbx, %rdi
	callq	_bcbuf_acks
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_bcl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r12, 16(%rax)
	decl	8(%rax)
	movq	%rbx, %rdi
	callq	_buf_discard
	movl	$1, %r13d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_bc_lock,4,2                    ## @bc_lock
	.comm	_bcl,8,3                        ## @bcl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_bclink_acknowledge        ; -- Begin function tipc_bclink_acknowledge
	.p2align	2
_tipc_bclink_acknowledge:               ; @tipc_bclink_acknowledge
	.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	x19, x1
	mov	x20, x0
	ldr	w1, [x0]
	mov	x0, x19
	bl	_less_eq
	cbz	x0, LBB0_2
; %bb.1:
	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_2:
Lloh0:
	adrp	x0, _bc_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _bc_lock@GOTPAGEOFF]
	bl	_spin_lock_bh
Lloh2:
	adrp	x22, _bcl@GOTPAGE
Lloh3:
	ldr	x22, [x22, _bcl@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x21, [x8, #16]
	cbz	x21, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_buf_seqno
	ldr	w1, [x20]
	bl	_less_eq
	cbz	x0, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x21, [x21]
	cbnz	x21, LBB0_3
LBB0_5:
	mov	w23, #0
LBB0_6:
	str	w19, [x20]
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x22]
	bl	_tipc_link_push_queue
LBB0_8:
	cbz	w23, LBB0_12
; %bb.9:
	ldr	x8, [x22]
	add	x0, x8, #4
	bl	_list_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_11
LBB0_10:
	ldr	x0, [x22]
	mov	w1, #0
	bl	_tipc_link_wakeup_ports
LBB0_11:
Lloh4:
	adrp	x0, _bc_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _bc_lock@GOTPAGEOFF]
	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	_spin_unlock_bh
LBB0_12:
	mov	w0, #0
	bl	_unlikely
	cbnz	x0, LBB0_10
	b	LBB0_11
LBB0_13:
	mov	w23, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x21, x24
	cbz	x24, LBB0_6
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_buf_seqno
	mov	x1, x19
	bl	_less_eq
	cbz	x0, LBB0_6
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x24, [x21]
	mov	x0, x21
	bl	_bcbuf_decr_acks
	mov	x0, x21
	bl	_bcbuf_acks
	cbnz	x0, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x22]
	str	x24, [x8, #16]
	ldr	w9, [x8, #8]
	sub	w9, w9, #1
	str	w9, [x8, #8]
	mov	x0, x21
	bl	_buf_discard
	mov	w23, #1
	b	LBB0_14
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_bc_lock,4,2                    ; @bc_lock
	.comm	_bcl,8,3                        ; @bcl
.subsections_via_symbols
