	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_bulk_urb_init
_usb_bulk_urb_init:                     ## @usb_bulk_urb_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
	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
	movl	24(%rdi), %esi
	movl	28(%rdi), %edx
	callq	_usb_allocate_stream_buffers
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	cmpl	$0, 24(%r14)
	jle	LBB0_9
## %bb.2:
	xorl	%r12d, %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	16(%r14), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	16(%r14), %rax
	movq	(%rax,%r12,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	32(%r14), %esi
	movl	48(%r14), %r15d
	movl	%r15d, %edi
	callq	_usb_rcvbulkpipe
	movq	40(%r14), %rcx
	movl	(%rcx,%r12,4), %ecx
	movl	28(%r14), %r8d
	movq	_usb_urb_complete@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%r14, (%rsp)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_usb_fill_bulk_urb
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r14), %rcx
	movq	(%rcx,%r12,8), %rcx
	movl	%eax, 4(%rcx)
	movq	8(%r14), %rax
	movl	(%rax,%r12,4), %eax
	movl	%eax, (%rcx)
	incl	(%r14)
	incq	%r12
	movslq	24(%r14), %rax
	cmpq	%rax, %r12
	jl	LBB0_3
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_deb_mem
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_usb_free_urb
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_6
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not enough memory for urb_alloc_urb!.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_usb_urb_complete,4,2           ## @usb_urb_complete
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.no_dead_strip	_usb_bulk_urb_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_bulk_urb_init
_usb_bulk_urb_init:                     ; @usb_bulk_urb_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldp	w1, w2, [x0, #24]
	bl	_usb_allocate_stream_buffers
	tbnz	w0, #31, LBB0_10
; %bb.1:
	ldr	w8, [x19, #24]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x22, #0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	adrp	x24, _usb_urb_complete@GOTPAGE
Lloh3:
	ldr	x24, [x24, _usb_urb_complete@GOTPAGEOFF]
Lloh4:
	adrp	x25, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh5:
	ldr	x25, [x25, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	w0, #0
	bl	_usb_alloc_urb
	ldr	x8, [x19, #16]
	lsl	x9, x22, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #16]
	ldr	x20, [x8, x9]
	cbz	x20, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w21, [x19, #48]
	ldr	w1, [x19, #32]
	mov	x0, x21
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	x8, [x19, #40]
	lsl	x26, x22, #2
	ldr	w3, [x8, x26]
	ldr	w4, [x19, #28]
	ldr	w5, [x24]
	mov	x0, x20
	mov	x1, x21
	mov	x6, x19
	bl	_usb_fill_bulk_urb
	ldr	w8, [x25]
	ldp	x10, x9, [x19, #8]
	ldr	x9, [x9, x22, lsl #3]
	str	w8, [x9, #4]
	ldr	w8, [x10, x26]
	str	w8, [x9]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	add	x22, x22, #1
	ldrsw	x8, [x19, #24]
	cmp	x22, x8
	b.lt	LBB0_3
LBB0_5:
	mov	w0, #0
	b	LBB0_10
LBB0_6:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_mem
	cbz	w22, LBB0_9
; %bb.7:
	mov	x20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x20, lsl #3]
	bl	_usb_free_urb
	add	x20, x20, #1
	cmp	x22, x20
	b.ne	LBB0_8
LBB0_9:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not enough memory for urb_alloc_urb!.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_usb_urb_complete,4,2           ; @usb_urb_complete
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.no_dead_strip	_usb_bulk_urb_init
.subsections_via_symbols
