	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_timewait_handler
_cm_timewait_handler:                   ## @cm_timewait_handler
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_cm@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	leaq	16(%r14), %rdi
	callq	_list_del
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movl	8(%r14), %esi
	movl	12(%r14), %edi
	callq	_cm_acquire_id
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	8(%rax), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movq	24(%rbx), %rax
	movq	_IB_CM_TIMEWAIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_4
## %bb.5:
	movq	_IB_CM_IDLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	leaq	16(%rbx), %rdi
	callq	_atomic_inc_and_test
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cm_process_work
	jmp	LBB0_8
LBB0_4:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	%rbx, %rdi
	callq	_cm_deref_id
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rsi
	addq	$12, %rsi
	movq	%r14, %rdi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	%rbx, %rdi
	callq	_cm_deref_id
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_cm,4,2                         ## @cm
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_CM_TIMEWAIT,8,3             ## @IB_CM_TIMEWAIT
	.comm	_IB_CM_IDLE,8,3                 ## @IB_CM_IDLE
	.no_dead_strip	_cm_timewait_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_timewait_handler
_cm_timewait_handler:                   ; @cm_timewait_handler
	.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	x19, x0
Lloh0:
	adrp	x20, _cm@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cm@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock_irq
	add	x0, x19, #16
	bl	_list_del
	mov	x0, x20
	bl	_spin_unlock_irq
	ldp	w1, w0, [x19, #8]
	bl	_cm_acquire_id
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	add	x21, x0, #8
	mov	x0, x21
	bl	_spin_lock_irq
	ldr	x8, [x20, #24]
Lloh2:
	adrp	x9, _IB_CM_TIMEWAIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IB_CM_TIMEWAIT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _IB_CM_IDLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_CM_IDLE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x20, #24]
	add	x0, x20, #16
	bl	_atomic_inc_and_test
	cbz	w0, LBB0_8
; %bb.4:
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	x0, x20
	mov	x1, x19
	bl	_cm_process_work
	b	LBB0_9
LBB0_5:
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	x0, x20
	bl	_cm_deref_id
LBB0_6:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
LBB0_8:
	add	x1, x20, #12
	mov	x0, x19
	bl	_list_add_tail
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	x0, x20
	bl	_cm_deref_id
LBB0_9:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_cm,4,2                         ; @cm
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_CM_TIMEWAIT,8,3             ; @IB_CM_TIMEWAIT
	.comm	_IB_CM_IDLE,8,3                 ; @IB_CM_IDLE
	.no_dead_strip	_cm_timewait_handler
.subsections_via_symbols
