	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl_usb_init_tx
__rtl_usb_init_tx:                      ## @_rtl_usb_init_tx
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rtl_usbpriv
	movl	%eax, %edi
	callq	_rtl_usbdev
	movq	%rax, %r13
	movl	52(%rax), %edi
	callq	_IS_HIGH_SPEED_USB
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_USB_FULL_SPEED_BULK_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_USB_HIGH_SPEED_BULK_SIZE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r8d
	movl	%r8d, 48(%r13)
	movq	_COMP_INIT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	___RTL_TXQ_NUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	40(%r13), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_6
LBB0_8:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	12(%rax), %ecx
	movl	%ecx, 36(%r13)
	movl	8(%rax), %ecx
	movl	%ecx, 32(%r13)
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	__none_usb_tx_aggregate_hdl@GOTPCREL(%rip), %rax
LBB0_10:
	movq	%rax, 24(%r13)
	movq	%r13, %rdi
	addq	$16, %rdi
	callq	_init_usb_anchor
	movq	_RTL_USB_MAX_EP_NUM@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_11
## %bb.12:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	addq	%rbx, %rdi
	callq	_skb_queue_head_init
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	callq	_init_usb_anchor
	incq	%r12
	addq	$4, %rbx
	cmpq	(%r14), %r12
	jb	LBB0_13
	jmp	LBB0_14
LBB0_7:
	movl	(%r15), %esi
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_11:
	xorl	%r15d, %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_HIGH_SPEED_BULK_SIZE,4,2   ## @USB_HIGH_SPEED_BULK_SIZE
	.comm	_USB_FULL_SPEED_BULK_SIZE,4,2   ## @USB_FULL_SPEED_BULK_SIZE
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"USB Max Bulk-out Size=%d\n"

	.comm	___RTL_TXQ_NUM,8,3              ## @__RTL_TXQ_NUM
L_.str.1:                               ## @.str.1
	.asciz	"Invalid endpoint map setting!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	__none_usb_tx_aggregate_hdl,4,2 ## @_none_usb_tx_aggregate_hdl
	.comm	_RTL_USB_MAX_EP_NUM,8,3         ## @RTL_USB_MAX_EP_NUM
	.no_dead_strip	__rtl_usb_init_tx
.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_tx
__rtl_usb_init_tx:                      ; @_rtl_usb_init_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_usbpriv
	bl	_rtl_usbdev
	mov	x19, x0
	ldr	w0, [x0, #52]
	bl	_IS_HIGH_SPEED_USB
Lloh0:
	adrp	x8, _USB_HIGH_SPEED_BULK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_HIGH_SPEED_BULK_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _USB_FULL_SPEED_BULK_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _USB_FULL_SPEED_BULK_SIZE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh4:
	adrp	x21, _COMP_INIT@GOTPAGE
Lloh5:
	ldr	x21, [x21, _COMP_INIT@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh6:
	adrp	x22, _DBG_DMESG@GOTPAGE
Lloh7:
	ldr	x22, [x22, _DBG_DMESG@GOTPAGEOFF]
	ldr	w2, [x22]
	str	x8, [sp]
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
Lloh10:
	adrp	x8, ___RTL_TXQ_NUM@GOTPAGE
Lloh11:
	ldr	x8, [x8, ___RTL_TXQ_NUM@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x9, [x19, #40]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbz	x10, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	d0, [x8, #8]
	str	d0, [x19, #32]
	ldr	x8, [x8]
Lloh13:
	adrp	x9, __none_usb_tx_aggregate_hdl@GOTPAGE
Lloh14:
	ldr	x9, [x9, __none_usb_tx_aggregate_hdl@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x8, eq
	str	x8, [x19, #24]
	add	x0, x19, #16
	bl	_init_usb_anchor
Lloh15:
	adrp	x20, _RTL_USB_MAX_EP_NUM@GOTPAGE
Lloh16:
	ldr	x20, [x20, _RTL_USB_MAX_EP_NUM@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x21, #0
	mov	x22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x21
	bl	_skb_queue_head_init
	ldr	x8, [x19]
	add	x0, x8, x21
	bl	_init_usb_anchor
	add	x22, x22, #1
	ldr	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lo	LBB0_6
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	ldr	w1, [x21]
	ldr	w2, [x22]
Lloh17:
	adrp	x3, l_.str.1@PAGE
Lloh18:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_HIGH_SPEED_BULK_SIZE,4,2   ; @USB_HIGH_SPEED_BULK_SIZE
	.comm	_USB_FULL_SPEED_BULK_SIZE,4,2   ; @USB_FULL_SPEED_BULK_SIZE
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"USB Max Bulk-out Size=%d\n"

	.comm	___RTL_TXQ_NUM,8,3              ; @__RTL_TXQ_NUM
l_.str.1:                               ; @.str.1
	.asciz	"Invalid endpoint map setting!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	__none_usb_tx_aggregate_hdl,4,2 ; @_none_usb_tx_aggregate_hdl
	.comm	_RTL_USB_MAX_EP_NUM,8,3         ; @RTL_USB_MAX_EP_NUM
	.no_dead_strip	__rtl_usb_init_tx
.subsections_via_symbols
