	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb20_desc_foreach          ## -- Begin function libusb20_desc_foreach
	.p2align	4, 0x90
_libusb20_desc_foreach:                 ## @libusb20_desc_foreach
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	8(%rdi), %r14
	movl	(%rdi), %esi
	movq	%r14, %rdi
	callq	_LIBUSB20_ADD_BYTES
	movq	%rax, %rcx
	movq	%r14, %rdx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movslq	(%rbx), %rax
	leaq	(%rbx,%rax,4), %rdx
LBB0_4:
	xorl	%eax, %eax
	cmpq	%r14, %rdx
	jb	LBB0_9
## %bb.5:
	cmpq	%rcx, %rdx
	jae	LBB0_9
## %bb.6:
	movslq	(%rdx), %rsi
	leaq	(%rdx,%rsi,4), %rdi
	xorl	%eax, %eax
	cmpq	%r14, %rdi
	jb	LBB0_9
## %bb.7:
	cmpq	%rcx, %rdi
	ja	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	cmpl	$3, %esi
	cmovlq	%rax, %rdx
	movq	%rdx, %rax
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb20_desc_foreach          ; -- Begin function libusb20_desc_foreach
	.p2align	2
_libusb20_desc_foreach:                 ; @libusb20_desc_foreach
	.cfi_startproc
; %bb.0:
	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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x1
	ldr	x19, [x0, #8]
	ldr	w1, [x0]
	mov	x0, x19
	bl	_LIBUSB20_ADD_BYTES
	cbz	x20, LBB0_3
; %bb.2:
	ldrsw	x8, [x20]
	add	x8, x20, x8, lsl #2
	b	LBB0_4
LBB0_3:
	mov	x8, x19
LBB0_4:
	cmp	x8, x19
	ccmp	x8, x0, #2, hs
	b.hs	LBB0_6
; %bb.5:
	ldrsw	x9, [x8]
	add	x10, x8, x9, lsl #2
	cmp	x10, x19
	ccmp	x10, x0, #2, hs
	b.ls	LBB0_7
LBB0_6:
	mov	x0, #0
	b	LBB0_8
LBB0_7:
	cmp	w9, #3
	csel	x0, xzr, x8, lt
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
