	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl_prep_rx_urb
__rtl_prep_rx_urb:                      ## @_rtl_prep_rx_urb
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	(%rsi), %esi
	movl	8(%rbx), %edi
	leaq	4(%rdx), %rax
	movl	%ecx, %edx
	movq	%rax, %rcx
	callq	_usb_alloc_coherent
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	4(%rbx), %esi
	movl	8(%rbx), %r12d
	movl	%r12d, %edi
	callq	_usb_rcvbulkpipe
	movl	(%rbx), %r8d
	movq	__rtl_rx_completed@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%rbx, (%rsp)
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	movq	%r15, %rcx
	callq	_usb_fill_bulk_urb
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to usb_alloc_coherent!!\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	__rtl_rx_completed,4,2          ## @_rtl_rx_completed
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.no_dead_strip	__rtl_prep_rx_urb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl_prep_rx_urb
__rtl_prep_rx_urb:                      ; @_rtl_prep_rx_urb
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x8, x3
	mov	x19, x2
	mov	x20, x1
	ldr	w0, [x1, #8]
	ldr	w1, [x1]
	add	x3, x2, #4
	mov	x2, x8
	bl	_usb_alloc_coherent
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldp	w1, w22, [x20, #4]
	mov	x0, x22
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	w4, [x20]
Lloh0:
	adrp	x8, __rtl_rx_completed@GOTPAGE
Lloh1:
	ldr	x8, [x8, __rtl_rx_completed@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	mov	x6, x20
	bl	_usb_fill_bulk_urb
	mov	w0, #0
Lloh3:
	adrp	x8, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to usb_alloc_coherent!!\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	__rtl_rx_completed,4,2          ; @_rtl_rx_completed
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.no_dead_strip	__rtl_prep_rx_urb
.subsections_via_symbols
