	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmp_tdma_chan_init
_mmp_tdma_chan_init:                    ## @mmp_tdma_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
	movq	%rdi, %rbx
	movq	_TDMA_CHANNEL_NUM@GOTPCREL(%rip), %rax
	movl	24(%rdi), %edi
	cmpl	%esi, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	%r8, %r15
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.6:
	movl	%r13d, (%rax)
LBB0_7:
	movl	24(%rbx), %ecx
	movl	%ecx, 56(%rax)
	movq	%rbx, 24(%rax)
	movl	%r14d, 4(%rax)
	movl	%r12d, 8(%rax)
	leal	(,%r14,4), %ecx
	movslq	%ecx, %rcx
	addq	16(%rbx), %rcx
	leaq	16(%rax), %r12
	movq	%rcx, 48(%rax)
	movq	%r15, 40(%rax)
	movq	_DMA_COMPLETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rax)
	movq	8(%rbx), %rcx
	movslq	%r14d, %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	%rax, %rdi
	addq	$32, %rdi
	movq	_dma_do_tasklet@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdx
	callq	_tasklet_init
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_list_add_tail
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDMA_CHANNEL_NUM,4,2           ## @TDMA_CHANNEL_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many channels for device!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_COMPLETE,4,2               ## @DMA_COMPLETE
	.comm	_dma_do_tasklet,4,2             ## @dma_do_tasklet
	.no_dead_strip	_mmp_tdma_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_tdma_chan_init
_mmp_tdma_chan_init:                    ; @mmp_tdma_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	x19, x0
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x8, _TDMA_CHANNEL_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TDMA_CHANNEL_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_5
; %bb.1:
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x2, x0
	cbz	w23, LBB0_4
; %bb.3:
	str	w23, [x2]
LBB0_4:
	ldr	w8, [x19, #24]
	str	w8, [x2, #56]
	stp	w21, w22, [x2, #4]
	lsl	w8, w21, #2
	ldp	x10, x9, [x19, #8]
	add	x8, x9, w8, sxtw
	add	x22, x2, #16
	str	x19, [x2, #24]
	stp	x20, x8, [x2, #40]
Lloh6:
	adrp	x8, _DMA_COMPLETE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_COMPLETE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x2, #36]
	str	x2, [x10, w21, sxtw #3]
	add	x0, x2, #32
Lloh9:
	adrp	x8, _dma_do_tasklet@GOTPAGE
Lloh10:
	ldr	x8, [x8, _dma_do_tasklet@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_tasklet_init
	mov	x0, x22
	mov	x1, x19
	bl	_list_add_tail
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TDMA_CHANNEL_NUM,4,2           ; @TDMA_CHANNEL_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many channels for device!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_COMPLETE,4,2               ; @DMA_COMPLETE
	.comm	_dma_do_tasklet,4,2             ; @dma_do_tasklet
	.no_dead_strip	_mmp_tdma_chan_init
.subsections_via_symbols
