	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s10_unlock_bufs
_s10_unlock_bufs:                       ## @s10_unlock_bufs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	%rsi, %rdx
	movq	_NUM_SVC_BUFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	(%rdi), %rsi
	addq	$8, %rsi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, -8(%rsi)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rsi
	decq	%rax
	jne	LBB0_3
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
LBB0_6:
	popq	%rbp
	retq
LBB0_7:
	movq	_SVC_BUF_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_clear_bit_unlock               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_SVC_BUFS,8,3               ## @NUM_SVC_BUFS
	.comm	_SVC_BUF_LOCK,4,2               ## @SVC_BUF_LOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown buffer returned from service layer %p\n"

	.no_dead_strip	_s10_unlock_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s10_unlock_bufs
_s10_unlock_bufs:                       ; @s10_unlock_bufs
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_6
; %bb.1:
	mov	x2, x1
Lloh0:
	adrp	x8, _NUM_SVC_BUFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_SVC_BUFS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x9, [x0]
	add	x1, x9, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x9, [x1, #-8]
	cmp	x9, x2
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, x1, #16
	subs	x8, x8, #1
	b.ne	LBB0_3
LBB0_5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	b	_WARN
LBB0_6:
	ret
LBB0_7:
Lloh5:
	adrp	x8, _SVC_BUF_LOCK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SVC_BUF_LOCK@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	_clear_bit_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_SVC_BUFS,8,3               ; @NUM_SVC_BUFS
	.comm	_SVC_BUF_LOCK,4,2               ; @SVC_BUF_LOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown buffer returned from service layer %p\n"

	.no_dead_strip	_s10_unlock_bufs
.subsections_via_symbols
