	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iser_free_ib_conn_res
_iser_free_ib_conn_res:                 ## @iser_free_ib_conn_res
	.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
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_BUG_ON
	movl	56(%rbx), %edx
	movq	40(%rbx), %r8
	movq	48(%rbx), %rcx
	leaq	40(%rbx), %r14
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_iser_info
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_ib_destroy_fmr_pool
LBB0_2:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rax), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rax
	movq	16(%rbx), %rcx
	movq	8(%rcx), %rcx
	decl	(%rcx,%rax,4)
	movl	56(%rbx), %edi
	callq	_rdma_destroy_qp
LBB0_4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	movq	32(%rbx), %rdi
	callq	_kfree
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.5:
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movq	_ISCSI_DEF_MAX_RECV_SEG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_ib_dma_unmap_single
LBB0_7:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movq	_ISER_RX_LOGIN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_ib_dma_unmap_single
LBB0_9:
	movq	(%rbx), %rdi
	callq	_kfree
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"freeing conn %p cma_id %p fmr pool %p qp %p\n"

	.comm	_ISCSI_DEF_MAX_RECV_SEG_LEN,4,2 ## @ISCSI_DEF_MAX_RECV_SEG_LEN
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_ISER_RX_LOGIN_SIZE,4,2         ## @ISER_RX_LOGIN_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_iser_free_ib_conn_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iser_free_ib_conn_res
_iser_free_ib_conn_res:                 ; @iser_free_ib_conn_res
	.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, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w2, [x19, #56]
	ldr	x3, [x19, #48]
	mov	x20, x19
	ldr	x4, [x20, #40]!
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_iser_info
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_ib_destroy_fmr_pool
LBB0_2:
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldrsw	x8, [x8]
	ldr	x9, [x19, #16]
	ldr	x9, [x9, #8]
	lsl	x8, x8, #2
	ldr	w10, [x9, x8]
	sub	w10, w10, #1
	str	w10, [x9, x8]
	ldr	w0, [x19, #56]
	bl	_rdma_destroy_qp
LBB0_4:
	stp	xzr, xzr, [x20]
	ldr	x0, [x19, #32]
	bl	_kfree
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.5:
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_7
; %bb.6:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh2:
	adrp	x8, _ISCSI_DEF_MAX_RECV_SEG_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISCSI_DEF_MAX_RECV_SEG_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	bl	_ib_dma_unmap_single
LBB0_7:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_9
; %bb.8:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _ISER_RX_LOGIN_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ISER_RX_LOGIN_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	bl	_ib_dma_unmap_single
LBB0_9:
	ldr	x0, [x19]
	bl	_kfree
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"freeing conn %p cma_id %p fmr pool %p qp %p\n"

	.comm	_ISCSI_DEF_MAX_RECV_SEG_LEN,4,2 ; @ISCSI_DEF_MAX_RECV_SEG_LEN
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_ISER_RX_LOGIN_SIZE,4,2         ; @ISER_RX_LOGIN_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_iser_free_ib_conn_res
.subsections_via_symbols
