	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unregister_mad_agent
_unregister_mad_agent:                  ## @unregister_mad_agent
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_trace_ib_mad_unregister_agent
	movq	%rbx, %rdi
	callq	_cancel_mads
	movq	16(%rbx), %rax
	movq	(%rax), %r15
	leaq	12(%rbx), %rdi
	callq	_cancel_delayed_work
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	%rbx, %rdi
	callq	_remove_mad_reg_req
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	leaq	4(%rbx), %r14
	movl	4(%rbx), %esi
	movq	_ib_mad_clients@GOTPCREL(%rip), %rdi
	callq	_xa_erase
	movl	(%r15), %edi
	callq	_flush_workqueue
	movq	%rbx, %rdi
	callq	_ib_cancel_rmpp_recvs
	movq	%rbx, %rdi
	callq	_deref_mad_agent
	leaq	8(%rbx), %rdi
	callq	_wait_for_completion
	movq	%r14, %rdi
	callq	_ib_mad_agent_security_cleanup
	movl	(%rbx), %edi
	callq	_kfree
	movq	_rcu@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree_rcu                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ib_mad_clients,4,2             ## @ib_mad_clients
	.comm	_rcu,4,2                        ## @rcu
	.no_dead_strip	_unregister_mad_agent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unregister_mad_agent
_unregister_mad_agent:                  ; @unregister_mad_agent
	.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
	mov	x19, x0
	bl	_trace_ib_mad_unregister_agent
	mov	x0, x19
	bl	_cancel_mads
	ldr	x8, [x19, #16]
	ldr	x21, [x8]
	add	x0, x19, #12
	bl	_cancel_delayed_work
	add	x20, x21, #4
	mov	x0, x20
	bl	_spin_lock_irq
	mov	x0, x19
	bl	_remove_mad_reg_req
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x20, x19
	ldr	w1, [x20, #4]!
Lloh0:
	adrp	x0, _ib_mad_clients@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ib_mad_clients@GOTPAGEOFF]
	bl	_xa_erase
	ldr	w0, [x21]
	bl	_flush_workqueue
	mov	x0, x19
	bl	_ib_cancel_rmpp_recvs
	mov	x0, x19
	bl	_deref_mad_agent
	add	x0, x19, #8
	bl	_wait_for_completion
	mov	x0, x20
	bl	_ib_mad_agent_security_cleanup
	ldr	w0, [x19]
	bl	_kfree
Lloh2:
	adrp	x8, _rcu@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rcu@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_kfree_rcu
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ib_mad_clients,4,2             ; @ib_mad_clients
	.comm	_rcu,4,2                        ; @rcu
	.no_dead_strip	_unregister_mad_agent
.subsections_via_symbols
