	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_user_sdma_coalesce
_ipath_user_sdma_coalesce:              ## @ipath_user_sdma_coalesce
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_kmap
	testq	%r14, %r14
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	movq	%rax, %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %esi
	movq	(%r15), %rdx
	movq	%r12, %rdi
	callq	_copy_from_user
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	addq	%rax, %r12
	addl	%eax, %ebx
	addq	$16, %r15
	decq	%r14
	jne	LBB0_5
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_3:
	xorl	%ebx, %ebx
LBB0_8:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r14d, %r14d
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_dma_map_page
	movl	%eax, %r15d
	movq	(%r12), %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_kunmap
	movq	%r13, %rdi
	callq	___free_page
	jmp	LBB0_11
LBB0_12:
	subq	$8, %rsp
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	pushq	%r15
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%r13
	callq	_ipath_user_sdma_init_frag
	addq	$32, %rsp
	movl	$2, (%r12)
LBB0_11:
	movl	%r14d, %eax
	addq	$24, %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	_EFAULT,4,2                     ## @EFAULT
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_ipath_user_sdma_coalesce
.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_coalesce
_ipath_user_sdma_coalesce:              ; @ipath_user_sdma_coalesce
	.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	x24, x3
	mov	x25, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_alloc_page
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	bl	_kmap
	mov	x21, x0
	mov	w23, #0
	cbz	x24, LBB0_5
; %bb.2:
Lloh3:
	adrp	x27, _EFAULT@GOTPAGE
Lloh4:
	ldr	x27, [x27, _EFAULT@GOTPAGEOFF]
	mov	x26, x21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25, #8]
	ldr	x2, [x25]
	mov	x0, x26
	bl	_copy_from_user
	cbnz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25], #16
	add	x26, x26, x8
	add	w23, w23, w8
	subs	x24, x24, #1
	b.ne	LBB0_3
LBB0_5:
	ldr	x0, [x22]
Lloh5:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	mov	x1, x19
	mov	w2, #0
	mov	x3, x23
	bl	_dma_map_page
	mov	x24, x0
	ldr	x0, [x22]
	mov	x1, x24
	bl	_dma_mapping_error
	cbz	x0, LBB0_9
; %bb.6:
Lloh8:
	adrp	x27, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x27, [x27, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x27]
	neg	w21, w8
	mov	x0, x19
	bl	_kunmap
	mov	x0, x19
	bl	___free_page
	b	LBB0_10
LBB0_8:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_9:
	str	w24, [sp]
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	mov	x3, x23
	mov	w4, #0
	mov	w5, #1
	mov	x6, x19
	mov	x7, x21
	bl	_ipath_user_sdma_init_frag
	mov	w21, #0
	mov	w8, #2
	str	w8, [x20]
LBB0_10:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_ipath_user_sdma_coalesce
.subsections_via_symbols
