	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __fill_isoc_descriptor
___fill_isoc_descriptor:                ## @__fill_isoc_descriptor
	.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
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_BT_DBG
	movq	_BTUSB_MAX_ISOC_FRAMES@GOTPCREL(%rip), %r8
	xorl	%eax, %eax
	cmpl	$0, (%r8)
	setg	%dl
	jle	LBB0_7
## %bb.1:
	cmpl	%ebx, %r15d
	jl	LBB0_7
## %bb.2:
	movq	8(%r14), %r9
	movl	%ebx, %esi
	negl	%esi
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%r9,%rax,8)
	movl	%ebx, 4(%r9,%rax,8)
	incq	%rax
	addl	%ebx, %ecx
	movslq	(%r8), %rdx
	cmpq	%rdx, %rax
	setl	%dl
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	(%r15,%rsi), %edi
	subl	%ebx, %esi
	cmpl	%ebx, %edi
	jge	LBB0_3
LBB0_5:
	subl	%ecx, %r15d
	testl	%r15d, %r15d
	jne	LBB0_8
	jmp	LBB0_10
LBB0_7:
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	je	LBB0_10
LBB0_8:
	testb	%dl, %dl
	je	LBB0_10
## %bb.9:
	movq	8(%r14), %rdx
	movl	%eax, %esi
	movl	%ecx, (%rdx,%rsi,8)
	movl	%r15d, 4(%rdx,%rsi,8)
	incl	%eax
LBB0_10:
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"len %d mtu %d"

	.comm	_BTUSB_MAX_ISOC_FRAMES,4,2      ## @BTUSB_MAX_ISOC_FRAMES
	.no_dead_strip	___fill_isoc_descriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __fill_isoc_descriptor
___fill_isoc_descriptor:                ; @__fill_isoc_descriptor
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
Lloh2:
	adrp	x9, _BTUSB_MAX_ISOC_FRAMES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BTUSB_MAX_ISOC_FRAMES@GOTPAGEOFF]
	ldr	w8, [x9]
	cmp	w8, #0
	cset	w10, gt
	cmp	w8, #1
	ccmp	w20, w21, #8, ge
	b.ge	LBB0_2
; %bb.1:
	mov	w9, #0
	mov	w8, #0
	cbnz	w20, LBB0_5
	b	LBB0_7
LBB0_2:
	mov	w8, #0
	ldr	x10, [x19, #8]
	add	x11, x10, #4
	neg	w13, w21
	mov	w12, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	stp	w8, w21, [x11, #-4]
	add	w8, w8, w21
	add	w14, w20, w13
	ldrsw	x10, [x9]
	sub	w13, w13, w21
	cmp	x12, x10
	cset	w10, lt
	add	x11, x11, #8
	add	x12, x12, #1
	ccmp	w14, w21, #8, lt
	b.ge	LBB0_3
; %bb.4:
	sub	w9, w12, #1
	sub	w20, w20, w8
	cbz	w20, LBB0_7
LBB0_5:
	cbz	w10, LBB0_7
; %bb.6:
	ldr	x10, [x19, #8]
	add	x10, x10, w9, uxtw #3
	stp	w8, w20, [x10]
	add	w9, w9, #1
LBB0_7:
	str	w9, [x19]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"len %d mtu %d"

	.comm	_BTUSB_MAX_ISOC_FRAMES,4,2      ; @BTUSB_MAX_ISOC_FRAMES
	.no_dead_strip	___fill_isoc_descriptor
.subsections_via_symbols
