	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function udl_alloc_urb_list
LCPI0_0:
	.space	16
LCPI0_1:
	.space	16,255
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_udl_alloc_urb_list:                    ## @udl_alloc_urb_list
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_to_udl
	movq	%rax, %r15
	movslq	%r14d, %r12
	imulq	%rbx, %r12
	leaq	32(%rax), %rdi
	callq	_spin_lock_init
	leaq	28(%r15), %rdi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, (%r15)
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_INIT_LIST_HEAD
	leaq	24(%r15), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	_sema_init
	leaq	8(%r15), %r14
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 8(%r15)
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	je	LBB0_11
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rax, %r14
	movq	%r15, 24(%rax)
	movq	%rax, %rdi
	addq	$16, %rdi
	movq	_udl_release_urb_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movl	(%rbx), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rax, %r12
	movq	%rax, 8(%r14)
	movl	40(%r15), %edi
	movl	(%rbx), %edx
	movq	%rax, %rcx
	addq	$4, %rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_usb_alloc_coherent
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rax, %r13
	movq	%r15, %rbx
	movl	40(%r15), %r15d
	movl	%r15d, %edi
	movl	$1, %esi
	callq	_usb_sndbulkpipe
	movq	_udl_urb_completion@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r14, (%rsp)
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%rbx, %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %edx
	movq	%r13, %rcx
	movq	%rbx, %r8
	callq	_usb_fill_bulk_urb
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_up
	movdqu	8(%r15), %xmm0
	psubq	LCPI0_1(%rip), %xmm0
	movdqu	%xmm0, 8(%r15)
	movq	%xmm0, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	imulq	%rbx, %rax
	cmpq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	jb	LBB0_3
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_usb_free_urb
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jbe	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	shrq	%rbx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_udl_free_urb_list
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, (%r15)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_INIT_LIST_HEAD
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_sema_init
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, (%rax)
	jmp	LBB0_2
LBB0_5:
	movq	%r14, %rdi
	callq	_kfree
LBB0_10:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_11:
	movq	(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_DRM_DEBUG
	movl	(%r14), %eax
	addq	$56, %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	_udl_release_urb_work,4,2       ## @udl_release_urb_work
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_udl_urb_completion,4,2         ## @udl_urb_completion
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"allocated %d %d byte urbs\n"

	.no_dead_strip	_udl_alloc_urb_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udl_alloc_urb_list
_udl_alloc_urb_list:                    ; @udl_alloc_urb_list
	.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, x2
	mov	x22, x1
	mov	x25, x0
	bl	_to_udl
	mov	x21, x0
	sxtw	x8, w22
	mul	x20, x8, x19
	add	x0, x0, #32
	bl	_spin_lock_init
	add	x22, x21, #28
	str	x19, [x21]
	mov	x0, x22
	bl	_INIT_LIST_HEAD
	add	x23, x21, #24
	mov	x0, x23
	mov	w1, #0
	bl	_sema_init
	mov	x24, x21
	str	xzr, [x24, #8]!
	str	xzr, [x21, #16]
	cbz	x20, LBB0_10
; %bb.1:
	stp	x25, x24, [sp]                  ; 16-byte Folded Spill
Lloh0:
	adrp	x28, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x28, [x28, _GFP_KERNEL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x28]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x0
	str	x21, [x0, #24]
	add	x0, x0, #16
Lloh2:
	adrp	x8, _udl_release_urb_work@GOTPAGE
Lloh3:
	ldr	x8, [x8, _udl_release_urb_work@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	ldr	w1, [x28]
	mov	w0, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x0
	str	x0, [x24, #8]
	ldr	w0, [x21, #40]
	add	x3, x25, #4
	ldr	w2, [x28]
	mov	x1, x19
	bl	_usb_alloc_coherent
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x26, x0
	ldr	w27, [x21, #40]
	mov	x0, x27
	mov	w1, #1
	bl	_usb_sndbulkpipe
	mov	x2, x0
Lloh5:
	adrp	x8, _udl_urb_completion@GOTPAGE
Lloh6:
	ldr	x8, [x8, _udl_urb_completion@GOTPAGEOFF]
Lloh7:
	ldr	w5, [x8]
	mov	x0, x25
	mov	x1, x27
	mov	x3, x26
	mov	x4, x19
	mov	x6, x24
	bl	_usb_fill_bulk_urb
Lloh8:
	adrp	x8, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x25]
	orr	w8, w9, w8
	str	w8, [x25]
	mov	x0, x24
	mov	x1, x22
	bl	_list_add_tail
	mov	x0, x23
	bl	_up
	mov	w8, #1
	dup.2d	v0, x8
	ldur	q1, [x21, #8]
	add.2d	v0, v1, v0
	stur	q0, [x21, #8]
	fmov	x8, d0
	mul	x8, x8, x19
	cmp	x8, x20
	b.lo	LBB0_2
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_kfree
	mov	x0, x25
	bl	_usb_free_urb
Lloh11:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x19, x8
	b.ls	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	x19, x19, #1
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_udl_free_urb_list
	str	x19, [x21]
	mov	x0, x22
	bl	_INIT_LIST_HEAD
	mov	x0, x23
	mov	w1, #0
	bl	_sema_init
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	stp	xzr, xzr, [x8]
	b	LBB0_2
LBB0_8:
	mov	x0, x24
	bl	_kfree
LBB0_9:
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
LBB0_10:
	ldr	x1, [x24]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_DRM_DEBUG
	ldr	w0, [x24]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_udl_release_urb_work,4,2       ; @udl_release_urb_work
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_udl_urb_completion,4,2         ; @udl_urb_completion
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"allocated %d %d byte urbs\n"

	.no_dead_strip	_udl_alloc_urb_list
.subsections_via_symbols
