	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmp_pdma_chan_init
_mmp_pdma_chan_init:                    ## @mmp_pdma_chan_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movl	4(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movslq	%r13d, %rax
	movl	%eax, (%rbx,%rax,8)
	movl	8(%r14), %ecx
	movl	%ecx, 4(%rbx,%rax,8)
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.3:
	leaq	(%rbx,%rax,8), %r9
	movl	4(%r14), %edi
	movq	_mmp_pdma_chan_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %r8
	movl	%r15d, %esi
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	leaq	32(%r12), %rdi
	callq	_spin_lock_init
	movl	4(%r14), %eax
	movl	%eax, 28(%r12)
	movq	%r14, 8(%r12)
	leaq	24(%r12), %rdi
	movq	_dma_do_tasklet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_tasklet_init
	leaq	20(%r12), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r12, %rdi
	addq	$16, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %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	_mmp_pdma_chan_handler,4,2      ## @mmp_pdma_chan_handler
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pdma"

L_.str.1:                               ## @.str.1
	.asciz	"channel request irq fail!\n"

	.comm	_dma_do_tasklet,4,2             ## @dma_do_tasklet
	.no_dead_strip	_mmp_pdma_chan_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmp_pdma_chan_init
_mmp_pdma_chan_init:                    ; @mmp_pdma_chan_init
	.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, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x23, [x0, #16]
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	sxtw	x8, w22
	add	x5, x23, w22, sxtw #3
	str	w22, [x5]
	ldr	w9, [x19, #8]
	add	x8, x23, x8, lsl #3
	str	w9, [x8, #4]
	cbz	w21, LBB0_5
; %bb.2:
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _mmp_pdma_chan_handler@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mmp_pdma_chan_handler@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x4, l_.str@PAGE
Lloh10:
	add	x4, x4, l_.str@PAGEOFF
	mov	x1, x21
	bl	_devm_request_irq
	cbz	w0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	w0, [x19, #4]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_4:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_5:
	add	x0, x20, #32
	bl	_spin_lock_init
	ldr	w8, [x19, #4]
	str	w8, [x20, #28]
	str	x19, [x20, #8]
	add	x0, x20, #24
Lloh16:
	adrp	x8, _dma_do_tasklet@GOTPAGE
Lloh17:
	ldr	x8, [x8, _dma_do_tasklet@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_tasklet_init
	add	x0, x20, #20
	bl	_INIT_LIST_HEAD
	add	x0, x20, #16
	bl	_INIT_LIST_HEAD
	mov	x0, x20
	mov	x1, x19
	bl	_list_add_tail
	mov	w21, #0
LBB0_6:
	mov	x0, x21
	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	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mmp_pdma_chan_handler,4,2      ; @mmp_pdma_chan_handler
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pdma"

l_.str.1:                               ; @.str.1
	.asciz	"channel request irq fail!\n"

	.comm	_dma_do_tasklet,4,2             ; @dma_do_tasklet
	.no_dead_strip	_mmp_pdma_chan_init
.subsections_via_symbols
