	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_aloc_a_assoc_id
_sctp_aloc_a_assoc_id:                  ## @sctp_aloc_a_assoc_id
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_SCTP_PCB_FLAGS_SOCKET_ALLGONE@GOTPCREL(%rip), %r12
	movq	_SCTP_ALL_ASSOC@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	testl	%eax, (%r15)
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rax
	movq	(%r13), %rcx
	leaq	1(%rcx), %rbx
	cmpq	%rcx, %rax
	cmovgq	%rax, %rbx
	leaq	1(%rbx), %rax
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_sctp_findasoc_ep_asocid_locked
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	movq	24(%r15), %r12
	movl	16(%r15), %esi
	movq	%rbx, %rdi
	callq	_SCTP_PCBHASH_ASOC
	leaq	(%r12,%rax,4), %rdi
	movq	_sctp_tcbasocidhash@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_LIST_INSERT_HEAD
	movl	$1, (%r14)
	jmp	LBB0_5
LBB0_2:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_PCB_FLAGS_SOCKET_ALLGONE,4,2 ## @SCTP_PCB_FLAGS_SOCKET_ALLGONE
	.comm	_SCTP_ALL_ASSOC,8,3             ## @SCTP_ALL_ASSOC
	.comm	_sctp_tcbasocidhash,4,2         ## @sctp_tcbasocidhash
	.no_dead_strip	_sctp_aloc_a_assoc_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_aloc_a_assoc_id
_sctp_aloc_a_assoc_id:                  ; @sctp_aloc_a_assoc_id
	.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	x21, x0
Lloh0:
	adrp	x22, _SCTP_PCB_FLAGS_SOCKET_ALLGONE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SCTP_PCB_FLAGS_SOCKET_ALLGONE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _SCTP_ALL_ASSOC@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SCTP_ALL_ASSOC@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	csinc	x20, x8, x9, gt
	add	x8, x20, #1
	str	x8, [x21, #8]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_sctp_findasoc_ep_asocid_locked
	cbnz	x0, LBB0_1
; %bb.3:
	ldr	x22, [x21, #24]
	ldr	w1, [x21, #16]
	mov	x0, x20
	bl	_SCTP_PCBHASH_ASOC
	add	x0, x22, x0, lsl #2
Lloh4:
	adrp	x8, _sctp_tcbasocidhash@GOTPAGE
Lloh5:
	ldr	x8, [x8, _sctp_tcbasocidhash@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_LIST_INSERT_HEAD
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_PCB_FLAGS_SOCKET_ALLGONE,4,2 ; @SCTP_PCB_FLAGS_SOCKET_ALLGONE
	.comm	_SCTP_ALL_ASSOC,8,3             ; @SCTP_ALL_ASSOC
	.comm	_sctp_tcbasocidhash,4,2         ; @sctp_tcbasocidhash
	.no_dead_strip	_sctp_aloc_a_assoc_id
.subsections_via_symbols
