	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_user_sdma_queue_pkts
_ipath_user_sdma_queue_pkts:            ## @ipath_user_sdma_queue_pkts
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	testq	%r8, %r8
	je	LBB0_50
## %bb.1:
	movl	%r9d, %r14d
	testl	%r9d, %r9d
	jle	LBB0_50
## %bb.2:
	movq	%rdx, %rbx
	movl	8(%rsi), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	-112(%rbp), %rax                ## 8-byte Reload
	addq	$24, %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	%r14d, -124(%rbp)               ## 4-byte Spill
	movq	%r8, -144(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	movl	%eax, -128(%rbp)                ## 4-byte Spill
	movq	%r13, %rdx
	shlq	$4, %rdx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%rdx), %rbx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	8(%rax,%rdx), %r12
	movq	%rsi, %r15
	movl	(%rsi), %edi
	movl	(%rcx), %esi
	callq	_kmem_cache_alloc
	testq	%rax, %rax
	je	LBB0_38
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rsi
	testb	$3, %bl
	jne	LBB0_39
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rcx
	movq	_IPATH_USER_SDMA_MIN_HEADER_LENGTH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jb	LBB0_39
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	ja	LBB0_39
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	andl	$3, %r12d
	testq	%r12, %r12
	jne	LBB0_39
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	_IPATH_USER_SDMA_EXP_HEADER_LENGTH@GOTPCREL(%rip), %rax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	cmpq	(%rax), %rcx
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rdx
	callq	_dma_pool_alloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_41
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_kmap
	movq	%rax, %rbx
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	addq	%rcx, %rax
	addq	$8, %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_copy_from_user
	testl	%eax, %eax
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	jne	LBB0_40
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	shrq	$2, %r12
	decl	%r12d
	movl	(%rbx), %edi
	callq	_le32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	movq	_IPATH_PBC_LENGTH_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	%r12d, %eax
	jb	LBB0_35
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %edx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, %rsi
	shrq	$2, %rsi
	addq	%rdx, %rsi
	cmpq	%rax, %rsi
	jb	LBB0_35
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	xorl	%r14d, %r14d
	cmpl	%eax, %r12d
	jae	LBB0_26
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-144(%rbp), %r9                 ## 8-byte Reload
	cmpq	%r9, %r13
	jae	LBB0_26
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_PAGE_MASK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	addq	%rdx, %rsi
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-8(%rsi), %rdi
	testb	$3, %dil
	jne	LBB0_35
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	(%rsi), %rbx
	testb	$3, %bl
	jne	LBB0_35
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=2
	testq	%rdi, %rdi
	je	LBB0_35
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=2
	cmpq	%rcx, %rdi
	ja	LBB0_35
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=2
	leaq	(%rdi,%rbx), %rdx
	decq	%rdx
	xorq	%rbx, %rdx
	andq	%r8, %rdx
	cmpq	$1, %rdx
	sbbl	$0, %r15d
	addl	$2, %r15d
	shrq	$2, %rdi
	addl	%edi, %r12d
	incl	%r14d
	incq	%r13
	cmpl	%eax, %r12d
	jae	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=2
	addq	$16, %rsi
	cmpq	%r9, %r13
	jb	LBB0_19
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r15d, %r15d
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%eax, %r12d
	jne	LBB0_35
## %bb.28:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%edx, %edx
	movq	%rsi, %rbx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_dma_map_page
	movl	%eax, -60(%rbp)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movq	%r12, %rcx
	movl	$1, %r8d
	testq	%rax, %rax
	je	LBB0_31
	jmp	LBB0_42
LBB0_30:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r8d, %r8d
	movq	%rsi, %rbx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
LBB0_31:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-60(%rbp), %eax
	movq	%rbx, %r12
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-92(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	movq	%r12, %r9
	pushq	%rax
	pushq	-136(%rbp)                      ## 8-byte Folded Reload
	callq	_ipath_user_sdma_init_header
	addq	$16, %rsp
	testl	%r14d, %r14d
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	addq	-112(%rbp), %rcx                ## 8-byte Folded Reload
	addq	$16, %rcx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	callq	_ipath_user_sdma_init_payload
	testl	%eax, %eax
	js	LBB0_43
LBB0_33:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	movq	-144(%rbp), %r8                 ## 8-byte Reload
	cmpq	%r8, %r13
	jae	LBB0_50
## %bb.34:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	-92(%rbp)                       ## 4-byte Folded Spill
	movl	-128(%rbp), %eax                ## 4-byte Reload
	incl	%eax
	movl	-124(%rbp), %r14d               ## 4-byte Reload
	cmpl	%r14d, %eax
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jl	LBB0_3
	jmp	LBB0_50
LBB0_35:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_36:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	testq	%r12, %r12
	je	LBB0_46
LBB0_37:
	movq	%r12, %rdi
	callq	_kunmap
	movq	%r12, %rdi
	callq	___free_page
	jmp	LBB0_47
LBB0_38:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_49
LBB0_39:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_48
LBB0_40:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_36
LBB0_41:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_47
LBB0_42:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, %r12
	jmp	LBB0_37
LBB0_43:
	movl	%eax, %r14d
	testq	%r12, %r12
	je	LBB0_45
## %bb.44:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movl	-60(%rbp), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_dma_unmap_page
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_45:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_46:
	movl	4(%r15), %edi
	movl	-60(%rbp), %edx
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	callq	_dma_pool_free
LBB0_47:
	movq	-104(%rbp), %rsi                ## 8-byte Reload
LBB0_48:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	(%r15), %edi
	callq	_kmem_cache_free
LBB0_49:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_ipath_user_sdma_free_pkt_list
	movl	%r14d, %r13d
LBB0_50:
	movl	%r13d, %eax
	addq	$120, %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	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IPATH_USER_SDMA_MIN_HEADER_LENGTH,8,3 ## @IPATH_USER_SDMA_MIN_HEADER_LENGTH
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IPATH_USER_SDMA_EXP_HEADER_LENGTH,8,3 ## @IPATH_USER_SDMA_EXP_HEADER_LENGTH
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_IPATH_PBC_LENGTH_MASK,4,2      ## @IPATH_PBC_LENGTH_MASK
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_ipath_user_sdma_queue_pkts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipath_user_sdma_queue_pkts
_ipath_user_sdma_queue_pkts:            ; @ipath_user_sdma_queue_pkts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	str	x0, [sp, #64]                   ; 8-byte Folded Spill
	mov	x25, #0
	cbz	x4, LBB0_43
; %bb.1:
	cmp	w5, #1
	b.lt	LBB0_43
; %bb.2:
	mov	x24, x4
	mov	x27, x2
	mov	x26, x1
	mov	x25, #0
	mov	w28, #0
	ldr	w21, [x1, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
	add	x9, x3, #24
	stp	x9, x3, [sp]                    ; 16-byte Folded Spill
	str	x1, [sp, #48]                   ; 8-byte Folded Spill
	str	w5, [sp, #20]                   ; 4-byte Folded Spill
	str	x2, [sp, #24]                   ; 8-byte Folded Spill
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	str	w21, [sp, #36]                  ; 4-byte Folded Spill
	add	x20, x3, x25, lsl #4
	mov	x23, x20
	ldr	x21, [x23, #8]!
	ldr	x19, [x20]
	ldr	w0, [x26]
	mov	x22, x8
	ldr	w1, [x8]
	bl	_kmem_cache_alloc
	cbz	x0, LBB0_32
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x0
Lloh2:
	adrp	x8, _IPATH_USER_SDMA_MIN_HEADER_LENGTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPATH_USER_SDMA_MIN_HEADER_LENGTH@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	and	x10, x19, #0x3
	and	x11, x21, #0x3
	cmp	x10, #0
	ccmp	x19, x8, #0, eq
	ccmp	x19, x9, #2, hs
	ccmp	x11, #0, #0, ls
	b.ne	LBB0_33
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x1, [sp, #56]                   ; 8-byte Folded Spill
Lloh8:
	adrp	x8, _IPATH_USER_SDMA_EXP_HEADER_LENGTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IPATH_USER_SDMA_EXP_HEADER_LENGTH@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x19, x8
	str	w28, [sp, #32]                  ; 4-byte Folded Spill
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x26, #4]
	ldr	w1, [x22]
	add	x2, sp, #76
	bl	_dma_pool_alloc
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, #0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	bl	_alloc_page
	cbz	x0, LBB0_35
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x0
	bl	_kmap
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x23]
	mov	x2, x19
	mov	x23, x0
	bl	_copy_from_user
	str	x23, [sp, #40]                  ; 8-byte Folded Spill
	cbnz	w0, LBB0_34
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x27
	lsr	x8, x19, #2
	sub	w27, w8, #1
	ldr	w0, [x23]
	bl	_le32_to_cpu
Lloh11:
	adrp	x8, _IPATH_PBC_LENGTH_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IPATH_PBC_LENGTH_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w8, w8, w0
	cmp	w8, w27
	b.lo	LBB0_29
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh14:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	lsr	x10, x9, #2
	add	x10, x10, w27, uxtw
	cmp	x10, x8
	b.lo	LBB0_29
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x25, #1
	cmp	w27, w8
	ccmp	x10, x24, #2, lo
	b.lo	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w26, #0
	mov	w23, #0
	mov	x25, x10
	cmp	w27, w8
	b.eq	LBB0_21
	b	LBB0_29
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x12, #0
	mov	w23, #0
Lloh17:
	adrp	x10, _PAGE_MASK@GOTPAGE
Lloh18:
	ldr	x10, [x10, _PAGE_MASK@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	ldr	x11, [sp]                       ; 8-byte Folded Reload
	add	x11, x11, x25, lsl #4
	mov	w16, #1
LBB0_16:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x13, [x11, #-8]
	tst	x13, #0x3
	b.ne	LBB0_29
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	x14, [x11]
	and	x15, x14, #0x3
	cmp	x15, #0
	ccmp	x13, #0, #4, eq
	ccmp	x13, x9, #2, ne
	b.hi	LBB0_29
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	add	x15, x13, x14
	sub	x15, x15, #1
	eor	x14, x15, x14
	tst	x10, x14
	cinc	w14, w16, ne
	add	w23, w14, w23
	lsr	x13, x13, #2
	add	x26, x12, #1
	add	w27, w27, w13
	cmp	w27, w8
	b.hs	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=2
	add	x12, x25, x12
	add	x13, x12, #2
	add	x11, x11, #16
	mov	x12, x26
	cmp	x13, x24
	b.lo	LBB0_16
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x25, x26
	add	x25, x9, #1
	cmp	w27, w8
	b.ne	LBB0_29
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x28, LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, x21
	ldr	x21, [sp, #64]                  ; 8-byte Folded Reload
	ldr	x0, [x21]
Lloh20:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh22:
	ldr	w4, [x8]
	mov	x1, x28
	mov	w2, #0
	mov	x3, x19
	bl	_dma_map_page
	mov	x1, x0
	str	w0, [sp, #76]
	ldr	x0, [x21]
	bl	_dma_mapping_error
	cbnz	x0, LBB0_36
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w4, #1
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w4, #0
LBB0_25:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w21, [sp, #36]                  ; 4-byte Folded Reload
	ldr	x6, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w7, [sp, #76]
	ldr	x27, [sp, #56]                  ; 8-byte Folded Reload
	mov	x0, x27
	mov	x1, x21
	mov	w2, #0
	mov	x3, x19
	mov	x5, x28
	bl	_ipath_user_sdma_init_header
	cbz	w26, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x3, x20, #16
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
	ldr	x1, [sp, #48]                   ; 8-byte Folded Reload
	mov	x2, x27
	mov	x4, x26
	mov	x5, x23
	bl	_ipath_user_sdma_init_payload
	tbnz	w0, #31, LBB0_37
LBB0_27:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x27
	ldr	x27, [sp, #24]                  ; 8-byte Folded Reload
	mov	x1, x27
	bl	_list_add_tail
	cmp	x25, x24
	b.hs	LBB0_43
; %bb.28:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	ldr	w28, [sp, #32]                  ; 4-byte Folded Reload
	add	w28, w28, #1
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w28, w8
	ldr	x26, [sp, #48]                  ; 8-byte Folded Reload
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
	mov	x8, x22
	b.lt	LBB0_3
	b	LBB0_43
LBB0_29:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	mov	x27, x21
LBB0_30:
	ldr	w8, [x8]
	neg	w23, w8
	cbz	x28, LBB0_40
LBB0_31:
	mov	x0, x28
	bl	_kunmap
	mov	x0, x28
	bl	___free_page
	ldp	x26, x1, [sp, #48]              ; 16-byte Folded Reload
	b	LBB0_41
LBB0_32:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_42
LBB0_33:
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_41
LBB0_34:
Lloh31:
	adrp	x8, _EFAULT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_30
LBB0_35:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w23, w8
	ldp	x26, x1, [sp, #48]              ; 16-byte Folded Reload
	b	LBB0_41
LBB0_36:
Lloh36:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_31
LBB0_37:
	mov	x23, x0
	cbz	x28, LBB0_39
; %bb.38:
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ldr	x0, [x8]
	ldr	w1, [sp, #76]
Lloh39:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh41:
	ldr	w3, [x8]
	mov	x2, x19
	bl	_dma_unmap_page
	ldr	x27, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_31
LBB0_39:
	ldr	x27, [sp, #24]                  ; 8-byte Folded Reload
LBB0_40:
	ldp	x1, x26, [sp, #40]              ; 16-byte Folded Reload
	ldr	w0, [x26, #4]
	ldr	w2, [sp, #76]
	bl	_dma_pool_free
	ldr	x1, [sp, #56]                   ; 8-byte Folded Reload
LBB0_41:
	ldr	w0, [x26]
	bl	_kmem_cache_free
LBB0_42:
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ldr	x0, [x8]
	mov	x1, x26
	mov	x2, x27
	bl	_ipath_user_sdma_free_pkt_list
	mov	x25, x23
LBB0_43:
	mov	x0, x25
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IPATH_USER_SDMA_MIN_HEADER_LENGTH,8,3 ; @IPATH_USER_SDMA_MIN_HEADER_LENGTH
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPATH_USER_SDMA_EXP_HEADER_LENGTH,8,3 ; @IPATH_USER_SDMA_EXP_HEADER_LENGTH
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_IPATH_PBC_LENGTH_MASK,4,2      ; @IPATH_PBC_LENGTH_MASK
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_ipath_user_sdma_queue_pkts
.subsections_via_symbols
