	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_next_avail_ep
_get_next_avail_ep:                     ## @get_next_avail_ep
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ENDPOINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ENDPOINT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	decl	%ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, %ecx
	jbe	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ecx, %esi
	decl	%ecx
	cmpq	$0, (%rdi,%rsi,8)
	jne	LBB0_1
## %bb.3:
	leaq	(%rdi,%rsi,8), %rax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENDPOINT_MAX,4,2               ## @ENDPOINT_MAX
	.comm	_ENDPOINT0,4,2                  ## @ENDPOINT0
	.no_dead_strip	_get_next_avail_ep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_next_avail_ep
_get_next_avail_ep:                     ; @get_next_avail_ep
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ENDPOINT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENDPOINT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ENDPOINT0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENDPOINT0@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sub	w10, w8, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w10, w9
	b.ls	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x8, x0, w10, uxtw #3
	ldr	x11, [x8]
	sub	w10, w10, #1
	cbnz	x11, LBB0_1
; %bb.3:
	mov	x0, x8
	ret
LBB0_4:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENDPOINT_MAX,4,2               ; @ENDPOINT_MAX
	.comm	_ENDPOINT0,4,2                  ; @ENDPOINT0
	.no_dead_strip	_get_next_avail_ep
.subsections_via_symbols
