	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srp_free_ch_ib
_srp_free_ch_ib:                        ## @srp_free_ch_ib
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 40(%rsi)
	je	LBB0_24
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	cmpq	$0, 16(%rdi)
	je	LBB0_4
## %bb.2:
	movq	72(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.3:
	leaq	72(%r14), %rbx
	callq	_rdma_destroy_id
	jmp	LBB0_6
LBB0_4:
	movq	64(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	leaq	64(%r14), %rbx
	callq	_ib_destroy_cm_id
LBB0_6:
	movq	$0, (%rbx)
LBB0_7:
	cmpq	$0, 32(%r14)
	je	LBB0_24
## %bb.8:
	cmpq	$0, 8(%r15)
	je	LBB0_11
## %bb.9:
	movq	56(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.10:
	callq	_srp_destroy_fr_pool
	jmp	LBB0_14
LBB0_11:
	cmpq	$0, (%r15)
	je	LBB0_14
## %bb.12:
	movq	48(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_ib_destroy_fmr_pool
LBB0_14:
	movq	%r14, %rdi
	callq	_srp_destroy_qp
	movq	24(%r14), %rdi
	callq	_ib_free_cq
	movq	16(%r14), %rdi
	callq	_ib_free_cq
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movups	%xmm0, 32(%r14)
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.15:
	cmpl	$0, (%r12)
	jle	LBB0_18
## %bb.16:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rdi,%rbx,4), %esi
	movq	%rax, %rdi
	callq	_srp_free_iu
	incq	%rbx
	movslq	(%r12), %rax
	movq	8(%r14), %rdi
	cmpq	%rax, %rbx
	jl	LBB0_17
LBB0_18:
	callq	_kfree
	movq	$0, 8(%r14)
LBB0_19:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.20:
	cmpl	$0, (%r12)
	jle	LBB0_23
## %bb.21:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rdi,%rbx,4), %esi
	movq	%rax, %rdi
	callq	_srp_free_iu
	incq	%rbx
	movslq	(%r12), %rax
	movq	(%r14), %rdi
	cmpq	%rax, %rbx
	jl	LBB0_22
LBB0_23:
	callq	_kfree
	movq	$0, (%r14)
LBB0_24:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_srp_free_ch_ib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srp_free_ch_ib
_srp_free_ch_ib:                        ; @srp_free_ch_ib
	.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
	ldr	x8, [x1, #40]
	cbz	x8, LBB0_24
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldp	x8, x9, [x0, #8]
	ldr	x21, [x8]
	mov	x22, x1
	cbz	x9, LBB0_4
; %bb.2:
	ldr	x0, [x22, #72]!
	cbz	x0, LBB0_7
; %bb.3:
	bl	_rdma_destroy_id
	b	LBB0_6
LBB0_4:
	ldr	x0, [x22, #64]!
	cbz	x0, LBB0_7
; %bb.5:
	bl	_ib_destroy_cm_id
LBB0_6:
	str	xzr, [x22]
LBB0_7:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_24
; %bb.8:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_14
; %bb.10:
	bl	_srp_destroy_fr_pool
	b	LBB0_14
LBB0_11:
	ldr	x8, [x21]
	cbz	x8, LBB0_14
; %bb.12:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_ib_destroy_fmr_pool
LBB0_14:
	mov	x0, x19
	bl	_srp_destroy_qp
	ldr	x0, [x19, #24]
	bl	_ib_free_cq
	ldr	x0, [x19, #16]
	bl	_ib_free_cq
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #16]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_19
; %bb.15:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.16:
	mov	x21, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w1, [x0, x21, lsl #2]
	mov	x0, x8
	bl	_srp_free_iu
	add	x21, x21, #1
	ldrsw	x8, [x20]
	ldr	x0, [x19, #8]
	cmp	x21, x8
	b.lt	LBB0_17
LBB0_18:
	bl	_kfree
	str	xzr, [x19, #8]
LBB0_19:
	ldr	x0, [x19]
	cbz	x0, LBB0_24
; %bb.20:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.21:
	mov	x21, #0
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w1, [x0, x21, lsl #2]
	mov	x0, x8
	bl	_srp_free_iu
	add	x21, x21, #1
	ldrsw	x8, [x20]
	ldr	x0, [x19]
	cmp	x21, x8
	b.lt	LBB0_22
LBB0_23:
	bl	_kfree
	str	xzr, [x19]
LBB0_24:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_srp_free_ch_ib
.subsections_via_symbols
