	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iser_handle_comp_error
_iser_handle_comp_error:                ## @iser_handle_comp_error
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rsi
	movq	(%rdi), %rax
	movq	_ISCSI_TX_DATAOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_ig@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_kmem_cache_free
LBB0_3:
	cmpq	$0, (%rbx)
	jne	LBB0_8
## %bb.4:
	leaq	24(%rbx), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_5
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	_ISER_CONN_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ISER_CONN_TERMINATING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_iser_conn_state_comp_exch
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movq	_ISCSI_ERR_CONN_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_iscsi_conn_failure
LBB0_7:
	movq	_ISER_CONN_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	addq	$8, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wake_up_interruptible          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ISCSI_TX_DATAOUT,8,3           ## @ISCSI_TX_DATAOUT
	.comm	_ig,4,2                         ## @ig
	.comm	_ISER_CONN_UP,4,2               ## @ISER_CONN_UP
	.comm	_ISER_CONN_TERMINATING,4,2      ## @ISER_CONN_TERMINATING
	.comm	_ISCSI_ERR_CONN_FAILED,4,2      ## @ISCSI_ERR_CONN_FAILED
	.comm	_ISER_CONN_DOWN,4,2             ## @ISER_CONN_DOWN
	.no_dead_strip	_iser_handle_comp_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iser_handle_comp_error
_iser_handle_comp_error:                ; @iser_handle_comp_error
	.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
	mov	x19, x1
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ISCSI_TX_DATAOUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ISCSI_TX_DATAOUT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _ig@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ig@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_kmem_cache_free
LBB0_3:
	ldr	x8, [x19]
	cbnz	x8, LBB0_5
; %bb.4:
	add	x0, x19, #24
	bl	_atomic_read
	cbz	x0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh6:
	adrp	x8, _ISER_CONN_UP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ISER_CONN_UP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _ISER_CONN_TERMINATING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ISER_CONN_TERMINATING@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_iser_conn_state_comp_exch
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _ISCSI_ERR_CONN_FAILED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ISCSI_ERR_CONN_FAILED@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_iscsi_conn_failure
LBB0_8:
Lloh15:
	adrp	x8, _ISER_CONN_DOWN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ISER_CONN_DOWN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	add	x0, x19, #8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wake_up_interruptible
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ISCSI_TX_DATAOUT,8,3           ; @ISCSI_TX_DATAOUT
	.comm	_ig,4,2                         ; @ig
	.comm	_ISER_CONN_UP,4,2               ; @ISER_CONN_UP
	.comm	_ISER_CONN_TERMINATING,4,2      ; @ISER_CONN_TERMINATING
	.comm	_ISCSI_ERR_CONN_FAILED,4,2      ; @ISCSI_ERR_CONN_FAILED
	.comm	_ISER_CONN_DOWN,4,2             ; @ISER_CONN_DOWN
	.no_dead_strip	_iser_handle_comp_error
.subsections_via_symbols
