	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tbuf_bytes
_tbuf_bytes:                            ## @tbuf_bytes
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rdi), %eax
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	(%r12), %eax
	je	LBB0_8
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rcx
	movl	%eax, %ebx
	movl	(%rcx,%rbx,4), %edi
	callq	_desc_count
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	%eax, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	xorl	%eax, %eax
	cmpl	4(%r12), %ebx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %eax
	jmp	LBB0_7
LBB0_8:
	movq	_TDCSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rd_reg32
	movq	_BIT0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	cmovel	%ecx, %r15d
	movzbl	%ah, %eax
	addl	%r14d, %eax
	addl	%r15d, %eax
	cmpq	$1, 8(%r12)
	sbbl	$-1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDCSR,4,2                      ## @TDCSR
	.comm	_BIT0,4,2                       ## @BIT0
	.no_dead_strip	_tbuf_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tbuf_bytes
_tbuf_bytes:                            ; @tbuf_bytes
	.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
	mov	w21, #0
	ldr	w8, [x0]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w0, w20
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w22, #1
	ldp	w10, w9, [x19]
	cmp	w8, w9
	csinc	w8, wzr, w22, eq
	cmp	w8, w10
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	mov	w22, w8
	ldr	w0, [x9, w8, uxtw #2]
	bl	_desc_count
	cbnz	w0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w20, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	ldr	w21, [x8, x22, lsl #2]
	b	LBB0_2
LBB0_6:
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
	csel	w8, wzr, w21, eq
	lsr	w9, w0, #8
	ldr	x10, [x19, #8]
	cmp	x10, #0
	add	w9, w20, w9, uxtb
	add	w8, w9, w8
	cinc	w0, w8, ne
	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	_tbuf_bytes
.subsections_via_symbols
