	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_assoc_set_id              ## -- Begin function sctp_assoc_set_id
	.p2align	4, 0x90
_sctp_assoc_set_id:                     ## @sctp_assoc_set_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
	xorl	%r13d, %r13d
	cmpl	$0, (%rdi)
	jne	LBB0_9
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_sctp_assocs_id@GOTPCREL(%rip), %r15
	movq	_sctp_assocs_id_lock@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	jne	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_idr_pre_get
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	_idr_low@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	-44(%rbp), %rcx
	callq	_idr_get_new_above
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax
	incl	%eax
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$1, %ecx
	cmovel	%ecx, %eax
	movq	_idr_low@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_9
LBB0_7:
	testl	%r13d, %r13d
	jne	LBB0_9
## %bb.8:
	movl	-44(%rbp), %eax
	movl	%eax, (%rbx)
	xorl	%r13d, %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sctp_assocs_id,4,2             ## @sctp_assocs_id
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sctp_assocs_id_lock,4,2        ## @sctp_assocs_id_lock
	.comm	_idr_low,4,2                    ## @idr_low
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_assoc_set_id              ; -- Begin function sctp_assoc_set_id
	.p2align	2
_sctp_assoc_set_id:                     ; @sctp_assoc_set_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w23, #0
	b	LBB0_10
LBB0_2:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _sctp_assocs_id@GOTPAGE
Lloh1:
	ldr	x21, [x21, _sctp_assocs_id@GOTPAGEOFF]
Lloh2:
	adrp	x22, _sctp_assocs_id_lock@GOTPAGE
Lloh3:
	ldr	x22, [x22, _sctp_assocs_id_lock@GOTPAGEOFF]
Lloh4:
	adrp	x24, _idr_low@GOTPAGE
Lloh5:
	ldr	x24, [x24, _idr_low@GOTPAGEOFF]
Lloh6:
	adrp	x25, _INT_MAX@GOTPAGE
Lloh7:
	ldr	x25, [x25, _INT_MAX@GOTPAGEOFF]
	mov	w26, #1
Lloh8:
	adrp	x27, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x27, [x27, _EAGAIN@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_spin_unlock_bh
	ldr	w8, [x27]
	cmn	w23, w8
	b.ne	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_idr_pre_get
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	w2, [x24]
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x19
	bl	_idr_get_new_above
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	add	w9, w8, #1
	ldr	w10, [x25]
	cmp	w9, w10
	csinc	w8, w26, w8, eq
	str	w8, [x24]
	b	LBB0_3
LBB0_7:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_10
LBB0_8:
	cbnz	w23, LBB0_10
; %bb.9:
	ldr	w8, [sp, #12]
	str	w8, [x19]
LBB0_10:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_sctp_assocs_id,4,2             ; @sctp_assocs_id
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sctp_assocs_id_lock,4,2        ; @sctp_assocs_id_lock
	.comm	_idr_low,4,2                    ; @idr_low
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
