	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun6i_dma_dump_com_regs
_sun6i_dma_dump_com_regs:               ## @sun6i_dma_dump_com_regs
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	8(%rdi), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	callq	_DMA_IRQ_EN
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rbx
	xorl	%edi, %edi
	callq	_DMA_IRQ_EN
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_DMA_IRQ_EN
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rbx
	movl	$1, %edi
	callq	_DMA_IRQ_EN
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	callq	_DMA_IRQ_STAT
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rbx
	xorl	%edi, %edi
	callq	_DMA_IRQ_STAT
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movl	%eax, %r12d
	movl	$1, %edi
	callq	_DMA_IRQ_STAT
	movq	%rax, %r13
	movq	(%r14), %rbx
	movl	$1, %edi
	callq	_DMA_IRQ_STAT
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movl	%eax, %ebx
	movq	_DMA_STAT@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	(%r14), %rdi
	addq	%r15, %rdi
	callq	_readl
                                        ## kill: def $eax killed $eax def $rax
	leaq	L_.str(%rip), %rsi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	%r15
	pushq	%rbx
	pushq	%r13
	pushq	%r12
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_dev_dbg
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Common register:\n\tmask0(%04x): 0x%08x\n\tmask1(%04x): 0x%08x\n\tpend0(%04x): 0x%08x\n\tpend1(%04x): 0x%08x\n\tstats(%04x): 0x%08x\n"

	.comm	_DMA_STAT,8,3                   ## @DMA_STAT
	.no_dead_strip	_sun6i_dma_dump_com_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun6i_dma_dump_com_regs
_sun6i_dma_dump_com_regs:               ; @sun6i_dma_dump_com_regs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x0
	ldr	w8, [x0, #8]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	mov	w0, #0
	bl	_DMA_IRQ_EN
	mov	x20, x0
	ldr	x22, [x21]
	mov	w0, #0
	bl	_DMA_IRQ_EN
	add	x0, x0, x22
	bl	_readl
	mov	x22, x0
	mov	w0, #1
	bl	_DMA_IRQ_EN
	mov	x23, x0
	ldr	x24, [x21]
	mov	w0, #1
	bl	_DMA_IRQ_EN
	add	x0, x0, x24
	bl	_readl
	mov	x24, x0
	mov	w0, #0
	bl	_DMA_IRQ_STAT
	mov	x25, x0
	ldr	x26, [x21]
	mov	w0, #0
	bl	_DMA_IRQ_STAT
	add	x0, x0, x26
	bl	_readl
	mov	x26, x0
	mov	w0, #1
	bl	_DMA_IRQ_STAT
	mov	x27, x0
	ldr	x28, [x21]
	mov	w0, #1
	bl	_DMA_IRQ_STAT
	add	x0, x0, x28
	bl	_readl
	mov	x28, x0
Lloh0:
	adrp	x8, _DMA_STAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_STAT@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	ldr	x8, [x21]
	add	x0, x8, x19
	bl	_readl
	str	w0, [sp, #24]
	str	x19, [sp, #16]
	str	w28, [sp, #8]
	str	x27, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	ldr	w0, [sp, #28]                   ; 4-byte Folded Reload
	mov	x2, x20
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	mov	x6, x25
	mov	x7, x26
	bl	_dev_dbg
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Common register:\n\tmask0(%04x): 0x%08x\n\tmask1(%04x): 0x%08x\n\tpend0(%04x): 0x%08x\n\tpend1(%04x): 0x%08x\n\tstats(%04x): 0x%08x\n"

	.comm	_DMA_STAT,8,3                   ; @DMA_STAT
	.no_dead_strip	_sun6i_dma_dump_com_regs
.subsections_via_symbols
