	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbnet_get_endpoints           ## -- Begin function usbnet_get_endpoints
	.p2align	4, 0x90
_usbnet_get_endpoints:                  ## @usbnet_get_endpoints
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rsi)
	jle	LBB0_24
## %bb.1:
	movq	%rdi, %r15
	xorl	%edx, %edx
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	movslq	(%rsi), %rax
	cmpq	%rax, %rdx
	jge	LBB0_22
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	8(%rsi), %rax
	movq	%rdx, %rcx
	shlq	$5, %rcx
	cmpl	$0, (%rax,%rcx)
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx), %r13
	addq	%rcx, %rax
	addq	$24, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	cmoveq	%r14, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%r15
	movl	(%r13), %eax
	addq	$8, %r12
	cmpq	%rax, %r15
	jae	LBB0_19
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rbx
	leaq	(%rbx,%r12), %r14
	movq	%r14, %rdi
	callq	_usb_endpoint_maxp
	testl	%eax, %eax
	je	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	(%rbx,%r12), %eax
	cmpl	$129, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$128, %eax
	jne	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	%r14, %rdi
	callq	_usb_endpoint_dir_in
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	movb	$1, %r13b
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movb	$1, %bl
	xorl	%r13d, %r13d
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%r14, %rdi
	callq	_usb_endpoint_dir_in
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	setne	%al
	orb	%al, %r13b
	cmpb	$1, %r13b
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	cmovneq	%rax, %r14
	testb	%bl, %bl
	cmoveq	%r14, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_17
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_2
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_2
LBB0_22:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_24
## %bb.23:
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.25:
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	8(%rsi,%rax), %rdx
	testq	%rdx, %rdx
	jne	LBB0_27
## %bb.26:
	movq	24(%r15), %rdi
	movq	_FLAG_NO_SETINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	jne	LBB0_28
LBB0_27:
	movl	8(%r15), %edi
	movl	16(%rsi,%rax), %esi
	callq	_usb_set_interface
	testl	%eax, %eax
	js	LBB0_29
LBB0_28:
	movl	8(%r15), %edi
	movq	_USB_ENDPOINT_NUMBER_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	andl	4(%rax), %esi
	callq	_usb_rcvbulkpipe
	movl	%eax, 16(%r15)
	movl	8(%r15), %edi
	movl	(%r14), %esi
	andl	4(%rbx), %esi
	callq	_usb_sndbulkpipe
	movl	%eax, 12(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_29
LBB0_24:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_29:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FLAG_NO_SETINT,4,2             ## @FLAG_NO_SETINT
	.comm	_USB_ENDPOINT_NUMBER_MASK,4,2   ## @USB_ENDPOINT_NUMBER_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbnet_get_endpoints           ; -- Begin function usbnet_get_endpoints
	.p2align	2
_usbnet_get_endpoints:                  ; @usbnet_get_endpoints
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.1:
	stp	x0, x1, [sp]                    ; 16-byte Folded Spill
	mov	x8, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, #0
	mov	x23, #0
	mov	x24, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x10, #1
	ldrsw	x9, [x1]
	cmp	x8, x9
	b.ge	LBB0_17
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	x10, x8
	ldr	x8, [x1, #8]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	add	x27, x8, x10, lsl #5
	ldr	w8, [x27]
	cbz	w8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x10, [sp, #24]                  ; 8-byte Folded Spill
	mov	x28, #0
	mov	x19, #0
	mov	x22, #0
	mov	x23, #0
	mov	x24, #0
	add	x26, x27, #24
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	w25, #0
	mov	w20, #1
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x21
	bl	_usb_endpoint_dir_in
	cmp	x23, #0
	csel	x8, x21, x23, eq
	cmp	x24, #0
	cset	w9, ne
	orr	w9, w25, w9
	cmp	x22, #0
	cset	w10, ne
	orr	w10, w20, w10
	cmp	w10, #0
	csel	x10, x22, x21, ne
	cmp	w9, #1
	csel	x9, x21, x24, ne
	csel	x10, x22, x10, ne
	cmp	x0, #0
	csel	x24, x24, x9, eq
	csel	x23, x8, x23, eq
	csel	x22, x22, x10, eq
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x19, x19, #1
	ldr	w8, [x27]
	add	x28, x28, #8
	cmp	x19, x8
	b.hs	LBB0_14
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x20, [x26]
	add	x21, x20, x28
	mov	x0, x21
	bl	_usb_endpoint_maxp
	cbz	w0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [x20, x28]
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x21
	bl	_usb_endpoint_dir_in
	cbz	x0, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	w20, #0
	mov	w25, #1
	b	LBB0_7
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x24, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	cbz	x23, LBB0_3
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_3
LBB0_17:
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	cbz	x24, LBB0_23
; %bb.18:
	cbz	x23, LBB0_23
; %bb.19:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x8, x8, x10, lsl #5
	ldr	x2, [x8, #8]
	cbnz	x2, LBB0_21
; %bb.20:
	ldr	x9, [x20, #24]
	ldr	w9, [x9]
Lloh0:
	adrp	x10, _FLAG_NO_SETINT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FLAG_NO_SETINT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_22
LBB0_21:
	ldr	w0, [x20, #8]
	ldr	w1, [x8, #16]
	bl	_usb_set_interface
	tbnz	w0, #31, LBB0_24
LBB0_22:
	ldr	w0, [x20, #8]
	ldr	w8, [x24, #4]
Lloh3:
	adrp	x19, _USB_ENDPOINT_NUMBER_MASK@GOTPAGE
Lloh4:
	ldr	x19, [x19, _USB_ENDPOINT_NUMBER_MASK@GOTPAGEOFF]
	ldr	w9, [x19]
	and	w1, w9, w8
	bl	_usb_rcvbulkpipe
	str	w0, [x20, #16]
	ldr	w0, [x20, #8]
	ldr	w8, [x23, #4]
	ldr	w9, [x19]
	and	w1, w9, w8
	bl	_usb_sndbulkpipe
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20, #12]
	str	x22, [x20]
	b	LBB0_24
LBB0_23:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_24:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FLAG_NO_SETINT,4,2             ; @FLAG_NO_SETINT
	.comm	_USB_ENDPOINT_NUMBER_MASK,4,2   ; @USB_ENDPOINT_NUMBER_MASK
.subsections_via_symbols
