	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl_usb_init
__rtl_usb_init:                         ## @_rtl_usb_init
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_rtl_priv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_rtl_usbpriv
	movq	%rax, %rdi
	callq	_rtl_usbdev
	movq	%rax, %rbx
	movq	24(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	8(%rax), %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r12
	addq	$8, %r12
	decq	%r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %r14
	leaq	(%r14,%r13), %rbx
	movq	%rbx, %rdi
	callq	_usb_endpoint_dir_in
	movq	%r12, %rcx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_usb_endpoint_dir_out
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	(%rcx)
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r14,%r13), %r8d
	movl	(%r14,%r13), %eax
	movl	4(%r14,%r13), %r9d
	movl	%eax, (%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rcx
	callq	_RT_TRACE
	subq	$1, %r15
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	addq	$12, %r13
	jmp	LBB0_3
LBB0_8:
	movq	(%r12), %rcx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_1:
	xorl	%ecx, %ecx
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_12
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_11
LBB0_12:
	cmpq	$0, (%rbx)
	je	LBB0_13
## %bb.14:
	movq	%r12, %rdi
	callq	*8(%rax)
	movl	%eax, %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	16(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%r12, %rdi
	callq	__rtl_usb_init_tx
	movq	%r12, %rdi
	callq	__rtl_usb_init_rx
	movl	%r14d, %eax
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
LBB0_11:
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"USB EP(0x%02x), MaxPacketSize=%d, Interval=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Too few input end points found\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"No output end points found\n"

	.no_dead_strip	__rtl_usb_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl_usb_init
__rtl_usb_init:                         ; @_rtl_usb_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_usbpriv
	bl	_rtl_usbdev
	mov	x21, x0
	ldr	x24, [x0, #24]
	ldr	x8, [x24]
	ldr	x9, [x8, #8]
	mov	x25, x0
	str	xzr, [x25, #8]!
	str	xzr, [x0]
	cbz	x9, LBB0_8
; %bb.1:
	stp	x19, x21, [sp]                  ; 16-byte Folded Spill
	mov	x26, #0
	sub	x27, x9, #1
Lloh0:
	adrp	x28, _COMP_INIT@GOTPAGE
Lloh1:
	ldr	x28, [x28, _COMP_INIT@GOTPAGEOFF]
Lloh2:
	adrp	x19, _DBG_DMESG@GOTPAGE
Lloh3:
	ldr	x19, [x19, _DBG_DMESG@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x8]
	add	x23, x21, x26
	mov	x0, x23
	bl	_usb_endpoint_dir_in
	mov	x8, x25
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_usb_endpoint_dir_out
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x0, LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x28]
	ldr	w2, [x19]
	add	x8, x21, x26
	ldp	w5, w4, [x8, #4]
	ldr	w6, [x8]
	mov	x0, x20
	mov	x3, x22
	bl	_RT_TRACE
	cbz	x27, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	sub	x27, x27, #1
	add	x26, x26, #12
	b	LBB0_2
LBB0_7:
	ldr	x9, [x25]
	ldp	x19, x21, [sp]                  ; 16-byte Folded Reload
LBB0_8:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ge	LBB0_10
; %bb.9:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_10:
	ldr	x9, [x21]
	cbz	x9, LBB0_12
; %bb.11:
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	mov	x22, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w8, [x8, #16]
	str	w8, [x21, #16]
	mov	x0, x19
	bl	__rtl_usb_init_tx
	mov	x0, x19
	bl	__rtl_usb_init_rx
	mov	x0, x22
	b	LBB0_14
LBB0_12:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_pr_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"USB EP(0x%02x), MaxPacketSize=%d, Interval=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Too few input end points found\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"No output end points found\n"

	.no_dead_strip	__rtl_usb_init
.subsections_via_symbols
