	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_tbuf_count
_free_tbuf_count:                       ## @free_tbuf_count
	.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, %r14
	movl	(%rdi), %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r15d
	movl	%eax, %ebx
	cmpl	(%r14), %eax
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %edi
	callq	_desc_count
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	xorl	%eax, %eax
	cmpl	4(%r14), %ebx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %eax
	jmp	LBB0_4
LBB0_5:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.7:
	movq	_TDCSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rd_reg32
	movq	_BIT0@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$1, %eax
	adcl	$-1, %r15d
	jmp	LBB0_8
LBB0_6:
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDCSR,4,2                      ## @TDCSR
	.comm	_BIT0,4,2                       ## @BIT0
	.no_dead_strip	_free_tbuf_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_tbuf_count
_free_tbuf_count:                       ; @free_tbuf_count
	.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
	mov	w20, #0
	ldr	w21, [x0]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, w21, uxtw #2]
	bl	_desc_count
	cbnz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w20, w20, #1
	add	w8, w21, #1
	ldp	w10, w9, [x19]
	cmp	w8, w9
	csinc	w21, wzr, w21, eq
	cmp	w21, w10
	b.ne	LBB0_1
LBB0_3:
	cbz	w20, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _TDCSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TDCSR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rd_reg32
Lloh3:
	adrp	x8, _BIT0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIT0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	sub	w0, w20, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TDCSR,4,2                      ; @TDCSR
	.comm	_BIT0,4,2                       ; @BIT0
	.no_dead_strip	_free_tbuf_count
.subsections_via_symbols
