	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fastrpc_cb_remove
_fastrpc_cb_remove:                     ## @fastrpc_cb_remove
	.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, %r14
	movq	(%rdi), %rdi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_FASTRPC_MAX_SESSIONS@GOTPCREL(%rip), %r8
	movl	(%r8), %ecx
	cmpl	$2, %ecx
	jl	LBB0_5
## %bb.1:
	movq	8(%rbx), %rdx
	movq	(%r14), %rsi
	addq	$24, %rdx
	movl	$1, %edi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	movslq	%ecx, %rax
	addq	$16, %rdx
	cmpq	%rax, %rdi
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, -8(%rdx)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, (%rdx)
	decl	4(%rbx)
	movl	(%r8), %ecx
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FASTRPC_MAX_SESSIONS,4,2       ## @FASTRPC_MAX_SESSIONS
	.no_dead_strip	_fastrpc_cb_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fastrpc_cb_remove
_fastrpc_cb_remove:                     ; @fastrpc_cb_remove
	.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	x20, x0
	ldr	x0, [x0]
	bl	_dev_get_drvdata
	mov	x19, x0
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _FASTRPC_MAX_SESSIONS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FASTRPC_MAX_SESSIONS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #2
	b.lt	LBB0_5
; %bb.1:
	ldr	x11, [x19, #8]
	ldr	x10, [x20]
	add	x11, x11, #24
	mov	w12, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x12, x12, #1
	add	x11, x11, #16
	cmp	x12, w9, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x13, [x11, #-8]
	cmp	x13, x10
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [x11]
	ldr	w9, [x19, #4]
	sub	w9, w9, #1
	str	w9, [x19, #4]
	ldr	w9, [x8]
	b	LBB0_2
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FASTRPC_MAX_SESSIONS,4,2       ; @FASTRPC_MAX_SESSIONS
	.no_dead_strip	_fastrpc_cb_remove
.subsections_via_symbols
