	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ib_sa_remove_one
_ib_sa_remove_one:                      ## @ib_sa_remove_one
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	16(%rsi), %rdi
	callq	_ib_unregister_event_handler
	movq	_ib_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_flush_workqueue
	movl	(%r15), %eax
	cmpl	4(%r15), %eax
	jge	LBB0_2
LBB0_7:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_8:
	retq
LBB0_2:
	movq	$-1, %rbx
	xorl	%r12d, %r12d
	movq	_free_sm_ah@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r15), %rax
	movslq	4(%r15), %rcx
	subq	%rcx, %rax
	incq	%rbx
	addq	$16, %r12
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	2(%rbx), %esi
	movq	%r14, %rdi
	callq	_rdma_cap_ib_sa
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	movl	8(%rax,%r12), %edi
	callq	_ib_unregister_mad_agent
	movq	8(%r15), %rax
	movq	(%rax,%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %esi
	callq	_kref_put
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ib_wq,4,2                      ## @ib_wq
	.comm	_free_sm_ah,4,2                 ## @free_sm_ah
	.no_dead_strip	_ib_sa_remove_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ib_sa_remove_one
_ib_sa_remove_one:                      ; @ib_sa_remove_one
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_3
; %bb.1:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_remember_state
	mov	x19, x1
	mov	x20, x0
	add	x0, x1, #16
	bl	_ib_unregister_event_handler
Lloh0:
	adrp	x8, _ib_wq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ib_wq@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_flush_workqueue
	ldp	w8, w9, [x19]
	cmp	w8, w9
	b.ge	LBB0_4
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_kfree
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	ret
LBB0_4:
	.cfi_restore_state
	mov	x21, #0
	mov	x22, #-1
Lloh3:
	adrp	x23, _free_sm_ah@GOTPAGE
Lloh4:
	ldr	x23, [x23, _free_sm_ah@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldpsw	x8, x9, [x19]
	add	x22, x22, #1
	add	x21, x21, #16
	sub	x8, x8, x9
	cmp	x22, x8
	b.ge	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w22, #2
	mov	x0, x20
	bl	_rdma_cap_ib_sa
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	ldr	w0, [x8, #8]
	bl	_ib_unregister_mad_agent
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x21]
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x23]
	bl	_kref_put
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ib_wq,4,2                      ; @ib_wq
	.comm	_free_sm_ah,4,2                 ; @free_sm_ah
	.no_dead_strip	_ib_sa_remove_one
.subsections_via_symbols
