	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_cm_event_reset
_i40iw_cm_event_reset:                  ## @i40iw_cm_event_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	(%rbx), %r8
	testq	%r8, %r8
	je	LBB0_2
## %bb.1:
	movq	(%r8), %r14
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movl	8(%rbx), %edi
	movq	_I40IW_DEBUG_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rcx
	callq	_i40iw_debug
	movq	$0, (%r14)
	movq	(%rbx), %rsi
	movq	_IW_CM_EVENT_DISCONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_i40iw_send_cm_event
	movq	(%rbx), %rsi
	movq	_IW_CM_EVENT_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_i40iw_send_cm_event            ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_DEBUG_CM,4,2             ## @I40IW_DEBUG_CM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset event %p - cm_id = %p\n"

	.comm	_IW_CM_EVENT_DISCONNECT,4,2     ## @IW_CM_EVENT_DISCONNECT
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_IW_CM_EVENT_CLOSE,4,2          ## @IW_CM_EVENT_CLOSE
	.no_dead_strip	_i40iw_cm_event_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_cm_event_reset
_i40iw_cm_event_reset:                  ; @i40iw_cm_event_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	ldr	x4, [x19]
	cbz	x4, LBB0_3
; %bb.1:
	ldr	x20, [x4]
	cbz	x20, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x8, _I40IW_DEBUG_CM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_DEBUG_CM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x19
	bl	_i40iw_debug
	str	xzr, [x20]
Lloh5:
	adrp	x8, _IW_CM_EVENT_DISCONNECT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IW_CM_EVENT_DISCONNECT@GOTPAGEOFF]
	ldr	x1, [x19]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w3, w8
	mov	x0, x19
	bl	_i40iw_send_cm_event
Lloh11:
	adrp	x8, _IW_CM_EVENT_CLOSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IW_CM_EVENT_CLOSE@GOTPAGEOFF]
	ldr	x1, [x19]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i40iw_send_cm_event
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_DEBUG_CM,4,2             ; @I40IW_DEBUG_CM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset event %p - cm_id = %p\n"

	.comm	_IW_CM_EVENT_DISCONNECT,4,2     ; @IW_CM_EVENT_DISCONNECT
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_IW_CM_EVENT_CLOSE,4,2          ; @IW_CM_EVENT_CLOSE
	.no_dead_strip	_i40iw_cm_event_reset
.subsections_via_symbols
