	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_dma_async_register
_xgene_dma_async_register:              ## @xgene_dma_async_register
	.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	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r15
	movslq	%esi, %rbx
	imulq	$56, %rbx, %r12
	leaq	(%r15,%r12), %r13
	leaq	(%rax,%rbx,8), %r14
	movq	%r14, 8(%r15,%r12)
	leaq	(%r15,%r12), %rdi
	addq	$52, %rdi
	callq	_spin_lock_init
	leaq	(%r15,%r12), %rdi
	addq	$48, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%r15,%r12), %rdi
	addq	$44, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%r15,%r12), %rdi
	addq	$40, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%r15,%r12), %rdi
	addq	$16, %rdi
	movq	_xgene_dma_tasklet_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdx
	callq	_tasklet_init
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r15,%r12)
	movq	%r13, %rdi
	callq	_dma_cookie_init
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_xgene_dma_set_caps
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,8), %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_dma_async_device_register
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_chan_err
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_tasklet_kill
	jmp	LBB0_3
LBB0_2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_dma_chan_name
	movl	%eax, %r13d
	movq	_DMA_XOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_dma_has_cap
	testq	%rax, %rax
	leaq	L_.str.3(%rip), %r15
	leaq	L_.str.2(%rip), %rbx
	cmoveq	%r15, %rbx
	movq	_DMA_PQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_dma_has_cap
	testq	%rax, %rax
	leaq	L_.str.4(%rip), %r8
	cmoveq	%r15, %r8
	leaq	L_.str.1(%rip), %rsi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %edx
	movq	%rbx, %rcx
	callq	_dev_info
LBB0_3:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xgene_dma_tasklet_cb,4,2       ## @xgene_dma_tasklet_cb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to register async device %d"

L_.str.1:                               ## @.str.1
	.asciz	"%s: CAPABILITY ( %s%s)\n"

	.comm	_DMA_XOR,4,2                    ## @DMA_XOR
L_.str.2:                               ## @.str.2
	.asciz	"XOR "

L_.str.3:                               ## @.str.3
	.space	1

	.comm	_DMA_PQ,4,2                     ## @DMA_PQ
L_.str.4:                               ## @.str.4
	.asciz	"PQ "

	.no_dead_strip	_xgene_dma_async_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_dma_async_register
_xgene_dma_async_register:              ; @xgene_dma_async_register
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
	mov	w8, #56
	ldp	x10, x9, [x0, #8]
	smaddl	x20, w1, w8, x9
	add	x19, x10, w1, sxtw #3
	str	x19, [x20, #8]
	add	x0, x20, #52
	bl	_spin_lock_init
	add	x0, x20, #48
	bl	_INIT_LIST_HEAD
	add	x0, x20, #44
	bl	_INIT_LIST_HEAD
	add	x0, x20, #40
	bl	_INIT_LIST_HEAD
	add	x23, x20, #16
Lloh0:
	adrp	x8, _xgene_dma_tasklet_cb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xgene_dma_tasklet_cb@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x20
	bl	_tasklet_init
	stp	xzr, xzr, [x20, #24]
	mov	x0, x20
	bl	_dma_cookie_init
	mov	x0, x20
	mov	x1, x19
	bl	_xgene_dma_set_caps
	add	x22, x19, #4
	mov	x0, x22
	bl	_INIT_LIST_HEAD
	mov	x0, x20
	mov	x1, x22
	bl	_list_add_tail
	mov	x0, x19
	bl	_dma_async_device_register
	mov	x22, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_chan_err
	mov	x0, x23
	bl	_tasklet_kill
	b	LBB0_3
LBB0_2:
	ldr	w21, [x21]
	mov	x0, x20
	bl	_dma_chan_name
	mov	x20, x0
Lloh5:
	adrp	x8, _DMA_XOR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_XOR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_dma_has_cap
Lloh8:
	adrp	x8, l_.str.2@PAGE
Lloh9:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh10:
	adrp	x24, l_.str.3@PAGE
Lloh11:
	add	x24, x24, l_.str.3@PAGEOFF
	cmp	x0, #0
	csel	x23, x24, x8, eq
Lloh12:
	adrp	x8, _DMA_PQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMA_PQ@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_dma_has_cap
Lloh15:
	adrp	x8, l_.str.4@PAGE
Lloh16:
	add	x8, x8, l_.str.4@PAGEOFF
	cmp	x0, #0
	csel	x4, x24, x8, eq
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x23
	bl	_dev_info
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_xgene_dma_tasklet_cb,4,2       ; @xgene_dma_tasklet_cb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to register async device %d"

l_.str.1:                               ; @.str.1
	.asciz	"%s: CAPABILITY ( %s%s)\n"

	.comm	_DMA_XOR,4,2                    ; @DMA_XOR
l_.str.2:                               ; @.str.2
	.asciz	"XOR "

l_.str.3:                               ; @.str.3
	.space	1

	.comm	_DMA_PQ,4,2                     ; @DMA_PQ
l_.str.4:                               ; @.str.4
	.asciz	"PQ "

	.no_dead_strip	_xgene_dma_async_register
.subsections_via_symbols
