	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m2m_hw_submit
_m2m_hw_submit:                         ## @m2m_hw_submit
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r12
	movq	_M2M_CONTROL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_M2M_CONTROL_PW_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	orl	8(%r14), %ebx
	movq	%r14, %rdi
	callq	_m2m_fill_desc
	movq	_M2M_CONTROL_DONEINT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_ep93xx_dma_advance_active
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_m2m_fill_desc
	movq	_M2M_CONTROL_NFBINT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_2:
	movq	_M2M_CONTROL_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_M2M_CONTROL_START@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_M2M_CONTROL,8,3                ## @M2M_CONTROL
	.comm	_M2M_CONTROL_PW_MASK,4,2        ## @M2M_CONTROL_PW_MASK
	.comm	_M2M_CONTROL_DONEINT,4,2        ## @M2M_CONTROL_DONEINT
	.comm	_M2M_CONTROL_NFBINT,4,2         ## @M2M_CONTROL_NFBINT
	.comm	_M2M_CONTROL_ENABLE,4,2         ## @M2M_CONTROL_ENABLE
	.comm	_M2M_CONTROL_START,4,2          ## @M2M_CONTROL_START
	.no_dead_strip	_m2m_hw_submit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m2m_hw_submit
_m2m_hw_submit:                         ; @m2m_hw_submit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x22, [x0, #16]
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _M2M_CONTROL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _M2M_CONTROL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _M2M_CONTROL_PW_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M2M_CONTROL_PW_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	w9, [x19, #8]
	orr	w20, w8, w9
	mov	x0, x19
	bl	_m2m_fill_desc
Lloh5:
	adrp	x8, _M2M_CONTROL_DONEINT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M2M_CONTROL_DONEINT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w20, w20, w8
	mov	x0, x19
	bl	_ep93xx_dma_advance_active
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_m2m_fill_desc
Lloh8:
	adrp	x8, _M2M_CONTROL_NFBINT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M2M_CONTROL_NFBINT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_2:
Lloh11:
	adrp	x8, _M2M_CONTROL_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _M2M_CONTROL_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w20, w8, w20
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	cbz	x22, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh14:
	adrp	x8, _M2M_CONTROL_START@GOTPAGE
Lloh15:
	ldr	x8, [x8, _M2M_CONTROL_START@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w0, w8, w20
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_M2M_CONTROL,8,3                ; @M2M_CONTROL
	.comm	_M2M_CONTROL_PW_MASK,4,2        ; @M2M_CONTROL_PW_MASK
	.comm	_M2M_CONTROL_DONEINT,4,2        ; @M2M_CONTROL_DONEINT
	.comm	_M2M_CONTROL_NFBINT,4,2         ; @M2M_CONTROL_NFBINT
	.comm	_M2M_CONTROL_ENABLE,4,2         ; @M2M_CONTROL_ENABLE
	.comm	_M2M_CONTROL_START,4,2          ; @M2M_CONTROL_START
	.no_dead_strip	_m2m_hw_submit
.subsections_via_symbols
