	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmp_tdma_alloc_chan_resources
_mmp_tdma_alloc_chan_resources:         ## @mmp_tdma_alloc_chan_resources
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_to_mmp_tdma_chan
	movq	%rax, %rbx
	leaq	12(%rax), %rdi
	movq	%r14, %rsi
	callq	_dma_async_tx_descriptor_init
	movq	_mmp_tdma_tx_submit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	movq	_mmp_tdma_chan_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %r8
	xorl	%ecx, %ecx
	movq	%rbx, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	jne	LBB0_3
LBB0_2:
	movl	$1, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmp_tdma_tx_submit,4,2         ## @mmp_tdma_tx_submit
	.comm	_mmp_tdma_chan_handler,4,2      ## @mmp_tdma_chan_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tdma"

	.no_dead_strip	_mmp_tdma_alloc_chan_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmp_tdma_alloc_chan_resources
_mmp_tdma_alloc_chan_resources:         ; @mmp_tdma_alloc_chan_resources
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_to_mmp_tdma_chan
	mov	x19, x0
	add	x0, x0, #12
	mov	x1, x20
	bl	_dma_async_tx_descriptor_init
Lloh0:
	adrp	x8, _mmp_tdma_tx_submit@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmp_tdma_tx_submit@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	x1, [x19]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _mmp_tdma_chan_handler@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mmp_tdma_chan_handler@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x4, l_.str@PAGE
Lloh7:
	add	x4, x4, l_.str@PAGEOFF
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	cbnz	w0, LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_mmp_tdma_tx_submit,4,2         ; @mmp_tdma_tx_submit
	.comm	_mmp_tdma_chan_handler,4,2      ; @mmp_tdma_chan_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tdma"

	.no_dead_strip	_mmp_tdma_alloc_chan_resources
.subsections_via_symbols
