	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isert_disconnected_handler
_isert_disconnected_handler:            ## @isert_disconnected_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%rbx), %edx
	leal	-130(%rdx), %eax
	cmpl	$2, %eax
	jb	LBB0_4
## %bb.1:
	cmpl	$129, %edx
	je	LBB0_6
## %bb.2:
	cmpl	$128, %edx
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_isert_conn_terminate
	movl	12(%rbx), %edi
	callq	_ib_drain_qp
	movq	%rbx, %rdi
	callq	_isert_handle_unbound_conn
	jmp	LBB0_6
LBB0_4:
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	callq	_iscsit_cause_connection_reinstatement
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_isert_warn
LBB0_6:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"conn %p terminating in state %d\n"

	.no_dead_strip	_isert_disconnected_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isert_disconnected_handler
_isert_disconnected_handler:            ; @isert_disconnected_handler
	.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	x8, [x0]
	ldr	x20, [x8]
	add	x19, x20, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w2, [x20]
	sub	w8, w2, #130
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w2, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w2, #128
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_isert_conn_terminate
	ldr	w0, [x20, #12]
	bl	_ib_drain_qp
	mov	x0, x20
	bl	_isert_handle_unbound_conn
	b	LBB0_6
LBB0_4:
	ldr	w0, [x20, #8]
	mov	w1, #0
	bl	_iscsit_cause_connection_reinstatement
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_isert_warn
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"conn %p terminating in state %d\n"

	.no_dead_strip	_isert_disconnected_handler
.subsections_via_symbols
