	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_rx_urb
_alloc_rx_urb:                          ## @alloc_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	%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, %r14
	callq	_zd_usb_to_usbdev
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	_USB_MAX_RX_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%r12), %edx
	movq	%rax, %rcx
	addq	$4, %rcx
	movq	%r15, %rdi
	callq	_usb_alloc_coherent
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r12
	movq	_EP_DATA_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_usb_rcvbulkpipe
	movl	(%r13), %r8d
	movq	_rx_urb_complete@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r14, (%rsp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	movq	%r12, %rcx
	callq	_usb_fill_bulk_urb
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_usb_free_urb
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_USB_MAX_RX_SIZE,4,2            ## @USB_MAX_RX_SIZE
	.comm	_EP_DATA_IN,4,2                 ## @EP_DATA_IN
	.comm	_rx_urb_complete,4,2            ## @rx_urb_complete
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.no_dead_strip	_alloc_rx_urb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_rx_urb
_alloc_rx_urb:                          ; @alloc_rx_urb
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_zd_usb_to_usbdev
	mov	x21, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #0
	bl	_usb_alloc_urb
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x23, _USB_MAX_RX_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _USB_MAX_RX_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w2, [x22]
	add	x3, x19, #4
	mov	x0, x21
	bl	_usb_alloc_coherent
	cbz	x0, LBB0_3
; %bb.2:
	mov	x22, x0
Lloh4:
	adrp	x8, _EP_DATA_IN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EP_DATA_IN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	w4, [x23]
Lloh7:
	adrp	x8, _rx_urb_complete@GOTPAGE
Lloh8:
	ldr	x8, [x8, _rx_urb_complete@GOTPAGEOFF]
Lloh9:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	mov	x6, x20
	bl	_usb_fill_bulk_urb
Lloh10:
	adrp	x8, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_usb_free_urb
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_USB_MAX_RX_SIZE,4,2            ; @USB_MAX_RX_SIZE
	.comm	_EP_DATA_IN,4,2                 ; @EP_DATA_IN
	.comm	_rx_urb_complete,4,2            ; @rx_urb_complete
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.no_dead_strip	_alloc_rx_urb
.subsections_via_symbols
