	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function link_schedule_port
_link_schedule_port:                    ## @link_schedule_port
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_tipc_port_list_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_bh
	movl	%ebx, %edi
	callq	_tipc_port_lock
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	cmpl	$0, 24(%rax)
	je	LBB0_4
## %bb.2:
	movq	%rbx, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	%r14, 16(%rbx)
	movl	$1, 8(%rbx)
	decl	%r15d
	movq	%r14, %rdi
	callq	_link_max_pkt
	movl	%eax, %ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	incl	%eax
	movl	%eax, (%rbx)
	leaq	4(%r14), %rsi
	movq	%r12, %rdi
	callq	_list_add_tail
	incl	(%r14)
LBB0_4:
	movq	%rbx, %rdi
	callq	_tipc_port_unlock
LBB0_5:
	movq	_tipc_port_list_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
	movq	_ELINKCONG@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tipc_port_list_lock,4,2        ## @tipc_port_list_lock
	.comm	_ELINKCONG,4,2                  ## @ELINKCONG
	.no_dead_strip	_link_schedule_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function link_schedule_port
_link_schedule_port:                    ; @link_schedule_port
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _tipc_port_list_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _tipc_port_list_lock@GOTPAGEOFF]
	bl	_spin_lock_bh
	mov	x0, x20
	bl	_tipc_port_lock
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_4
; %bb.2:
	add	x22, x20, #4
	mov	x0, x22
	bl	_list_empty
	cbz	w0, LBB0_4
; %bb.3:
	str	x19, [x20, #16]
	mov	w8, #1
	str	w8, [x20, #8]
	sub	w21, w21, #1
	mov	x0, x19
	bl	_link_max_pkt
	sdiv	w8, w21, w0
	add	w8, w8, #1
	str	w8, [x20]
	add	x1, x19, #4
	mov	x0, x22
	bl	_list_add_tail
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_4:
	mov	x0, x20
	bl	_tipc_port_unlock
LBB0_5:
Lloh2:
	adrp	x0, _tipc_port_list_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _tipc_port_list_lock@GOTPAGEOFF]
	bl	_spin_unlock_bh
Lloh4:
	adrp	x8, _ELINKCONG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ELINKCONG@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_tipc_port_list_lock,4,2        ; @tipc_port_list_lock
	.comm	_ELINKCONG,4,2                  ; @ELINKCONG
	.no_dead_strip	_link_schedule_port
.subsections_via_symbols
