	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dln2_setup_rx_urbs
_dln2_setup_rx_urbs:                    ## @dln2_setup_rx_urbs
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_DLN2_MAX_URBS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	movq	%rdi, %r15
	movq	_DLN2_RX_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%r13d, %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movl	%r14d, %edi
	callq	_kmalloc
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%r13,4)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movl	%eax, %ebx
	movq	16(%r15), %rax
	movl	%ebx, (%rax,%r13,4)
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15), %esi
	movq	%r12, %r14
	movl	12(%r15), %r12d
	movl	%r12d, %edi
	callq	_usb_rcvbulkpipe
	movq	(%r15), %rcx
	movl	(%rcx,%r13,4), %ecx
	movq	_dln2_rx@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	%r15, (%rsp)
	movl	%ebx, %edi
	movl	%r12d, %esi
	movq	%r14, %r12
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%eax, %edx
	movl	%r14d, %r8d
	callq	_usb_fill_bulk_urb
	incq	%r13
	movq	_DLN2_MAX_URBS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DLN2_RX_BUF_SIZE,4,2           ## @DLN2_RX_BUF_SIZE
	.comm	_DLN2_MAX_URBS,4,2              ## @DLN2_MAX_URBS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dln2_rx,4,2                    ## @dln2_rx
	.no_dead_strip	_dln2_setup_rx_urbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dln2_setup_rx_urbs
_dln2_setup_rx_urbs:                    ; @dln2_setup_rx_urbs
	.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
Lloh0:
	adrp	x23, _DLN2_MAX_URBS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DLN2_MAX_URBS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x24, #0
Lloh2:
	adrp	x8, _DLN2_RX_BUF_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DLN2_RX_BUF_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
Lloh5:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	adrp	x26, _dln2_rx@GOTPAGE
Lloh8:
	ldr	x26, [x26, _dln2_rx@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	bl	_kmalloc
	ldr	x8, [x19]
	str	w0, [x8, x24, lsl #2]
	cbz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x25]
	mov	w0, #0
	bl	_usb_alloc_urb
	ldr	x8, [x19, #16]
	str	w0, [x8, x24, lsl #2]
	cbz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	ldp	w1, w22, [x19, #8]
	mov	x0, x22
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	x8, [x19]
	ldr	w3, [x8, x24, lsl #2]
	ldr	w5, [x26]
	mov	x0, x21
	mov	x1, x22
	mov	x4, x20
	mov	x6, x19
	bl	_usb_fill_bulk_urb
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.lt	LBB0_2
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DLN2_RX_BUF_SIZE,4,2           ; @DLN2_RX_BUF_SIZE
	.comm	_DLN2_MAX_URBS,4,2              ; @DLN2_MAX_URBS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dln2_rx,4,2                    ; @dln2_rx
	.no_dead_strip	_dln2_setup_rx_urbs
.subsections_via_symbols
