	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_freerecvbuf                    ## -- Begin function freerecvbuf
	.p2align	4, 0x90
_freerecvbuf:                           ## @freerecvbuf
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_LOCK
	movq	(%rbx), %rdx
	decq	%rdx
	movq	%rdx, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_msyslog
LBB0_3:
	movq	_free_recv_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_LINK_SLIST
	movq	_free_recvbufs@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_UNLOCK                         ## TAILCALL
LBB0_4:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"******** freerecvbuff non-zero usage: %d *******"

	.comm	_free_recv_list,4,2             ## @free_recv_list
	.comm	_link,4,2                       ## @link
	.comm	_free_recvbufs,4,2              ## @free_recvbufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_freerecvbuf                    ; -- Begin function freerecvbuf
	.p2align	2
_freerecvbuf:                           ; @freerecvbuf
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %bb.1:
	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	x19, x0
	bl	_LOCK
	ldr	x8, [x19]
	subs	x2, x8, #1
	str	x2, [x19]
	b.eq	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_msyslog
LBB0_3:
Lloh5:
	adrp	x8, _free_recv_list@GOTPAGE
Lloh6:
	ldr	x8, [x8, _free_recv_list@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _link@GOTPAGE
Lloh9:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_LINK_SLIST
Lloh11:
	adrp	x8, _free_recvbufs@GOTPAGE
Lloh12:
	ldr	x8, [x8, _free_recvbufs@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_UNLOCK
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"******** freerecvbuff non-zero usage: %d *******"

	.comm	_free_recv_list,4,2             ; @free_recv_list
	.comm	_link,4,2                       ; @link
	.comm	_free_recvbufs,4,2              ; @free_recvbufs
.subsections_via_symbols
