	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdc_ncm_find_endpoints
_cdc_ncm_find_endpoints:                ## @cdc_ncm_find_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	cmpq	$0, 8(%rax)
	jle	LBB0_18
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_usb_endpoint_dir_in
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	cmoveq	%rbx, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	(%r15), %rax
	addq	$8, %r14
	cmpq	8(%rax), %r12
	jge	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %r13
	leaq	(%r14,%r13), %rbx
	movq	%rbx, %rdi
	callq	_usb_endpoint_maxp
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_USB_ENDPOINT_XFERTYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r13,%r14), %eax
	cmpl	$129, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_usb_endpoint_dir_in
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 16(%rax)
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, 16(%rax)
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	cmoveq	%rbx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
LBB0_12:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_15
## %bb.13:
	cmpl	$0, 8(%rbx)
	jne	LBB0_15
## %bb.14:
	movl	(%rbx), %edi
	movq	_USB_ENDPOINT_NUMBER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	4(%rcx), %esi
	callq	_usb_rcvbulkpipe
	movl	%eax, 8(%rbx)
LBB0_15:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.16:
	cmpl	$0, 4(%rbx)
	jne	LBB0_18
## %bb.17:
	movl	(%rbx), %edi
	movq	_USB_ENDPOINT_NUMBER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	4(%rcx), %esi
	callq	_usb_sndbulkpipe
	movl	%eax, 4(%rbx)
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_ENDPOINT_XFERTYPE_MASK,4,2 ## @USB_ENDPOINT_XFERTYPE_MASK
	.comm	_USB_ENDPOINT_NUMBER_MASK,4,2   ## @USB_ENDPOINT_NUMBER_MASK
	.no_dead_strip	_cdc_ncm_find_endpoints
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdc_ncm_find_endpoints
_cdc_ncm_find_endpoints:                ; @cdc_ncm_find_endpoints
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x8, [x1]
	ldr	x9, [x8, #8]
	cmp	x9, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x24, #0
	mov	x25, #0
	mov	x22, #0
	mov	x23, #0
Lloh0:
	adrp	x26, _USB_ENDPOINT_XFERTYPE_MASK@GOTPAGE
Lloh1:
	ldr	x26, [x26, _USB_ENDPOINT_XFERTYPE_MASK@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_usb_endpoint_dir_in
	cmp	x22, #0
	csel	x8, x21, x22, eq
	cmp	x23, #0
	csel	x9, x21, x23, eq
	cmp	w0, #0
	csel	x23, x23, x9, eq
	csel	x22, x8, x22, eq
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	add	x24, x24, #8
	cmp	x25, x9
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x8]
	add	x21, x27, x24
	mov	x0, x21
	bl	_usb_endpoint_maxp
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x27, x24]
	ldr	w9, [x26]
	and	w8, w9, w8
	cmp	w8, #129
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_usb_endpoint_dir_in
	cbz	w0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x21, [x19, #16]
	b	LBB0_3
LBB0_10:
	cbz	x23, LBB0_13
; %bb.11:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_13
; %bb.12:
	ldr	w0, [x19]
	ldr	w8, [x23, #4]
Lloh2:
	adrp	x9, _USB_ENDPOINT_NUMBER_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _USB_ENDPOINT_NUMBER_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w1, w9, w8
	bl	_usb_rcvbulkpipe
	str	w0, [x19, #8]
LBB0_13:
	cbz	x22, LBB0_16
; %bb.14:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_16
; %bb.15:
	ldr	w0, [x19]
	ldr	w8, [x22, #4]
Lloh5:
	adrp	x9, _USB_ENDPOINT_NUMBER_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _USB_ENDPOINT_NUMBER_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w1, w9, w8
	bl	_usb_sndbulkpipe
	str	w0, [x19, #4]
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_ENDPOINT_XFERTYPE_MASK,4,2 ; @USB_ENDPOINT_XFERTYPE_MASK
	.comm	_USB_ENDPOINT_NUMBER_MASK,4,2   ; @USB_ENDPOINT_NUMBER_MASK
	.no_dead_strip	_cdc_ncm_find_endpoints
.subsections_via_symbols
