	.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	_cancel_mads
	movq	24(%rbx), %rax
	movq	(%rax), %r15
	leaq	16(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_remove_mad_reg_req
	leaq	12(%rbx), %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	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	(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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	_cancel_mads
	ldr	x8, [x19, #24]
	ldr	x21, [x8]
	add	x0, x19, #16
	bl	_cancel_delayed_work_sync
	add	x20, x21, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_remove_mad_reg_req
	add	x0, x19, #12
	bl	_list_del
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	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
	ldr	x0, [x19]
	bl	_kfree
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_unregister_mad_agent
.subsections_via_symbols
