	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r592_start_dma
_r592_start_dma:                        ## @r592_start_dma
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_spin_lock_irqsave
	movq	_R592_REG_MSC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_DMA_IRQ_ACK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_r592_clear_reg_mask
	movl	(%r15), %esi
	movq	_DMA_IRQ_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_r592_set_reg_mask
	movq	_R592_FIFO_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	8(%rbx), %rdi
	callq	_sg_dma_address
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_r592_write_reg
	movq	_R592_FIFO_DMA_SETTINGS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_r592_read_reg
	movq	_R592_FIFO_DMA_SETTINGS_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_R592_FIFO_DMA_SETTINGS_DIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	orl	%eax, %edx
	testl	%r14d, %r14d
	cmovnel	%ecx, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_r592_write_reg
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_R592_REG_MSC,4,2               ## @R592_REG_MSC
	.comm	_DMA_IRQ_ACK_MASK,4,2           ## @DMA_IRQ_ACK_MASK
	.comm	_DMA_IRQ_EN_MASK,4,2            ## @DMA_IRQ_EN_MASK
	.comm	_R592_FIFO_DMA,4,2              ## @R592_FIFO_DMA
	.comm	_R592_FIFO_DMA_SETTINGS,4,2     ## @R592_FIFO_DMA_SETTINGS
	.comm	_R592_FIFO_DMA_SETTINGS_EN,4,2  ## @R592_FIFO_DMA_SETTINGS_EN
	.comm	_R592_FIFO_DMA_SETTINGS_DIR,4,2 ## @R592_FIFO_DMA_SETTINGS_DIR
	.no_dead_strip	_r592_start_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r592_start_dma
_r592_start_dma:                        ; @r592_start_dma
	.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	x20, x1
	mov	x19, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x21, _R592_REG_MSC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _R592_REG_MSC@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _DMA_IRQ_ACK_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_IRQ_ACK_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_r592_clear_reg_mask
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _DMA_IRQ_EN_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_IRQ_EN_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_r592_set_reg_mask
Lloh8:
	adrp	x8, _R592_FIFO_DMA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _R592_FIFO_DMA@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	ldr	x0, [x19, #8]
	bl	_sg_dma_address
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_r592_write_reg
Lloh11:
	adrp	x21, _R592_FIFO_DMA_SETTINGS@GOTPAGE
Lloh12:
	ldr	x21, [x21, _R592_FIFO_DMA_SETTINGS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_r592_read_reg
Lloh13:
	adrp	x8, _R592_FIFO_DMA_SETTINGS_EN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _R592_FIFO_DMA_SETTINGS_EN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh16:
	adrp	x9, _R592_FIFO_DMA_SETTINGS_DIR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _R592_FIFO_DMA_SETTINGS_DIR@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	bic	w10, w8, w9
	orr	w8, w9, w8
	cmp	w20, #0
	csel	w2, w8, w10, eq
	ldr	w1, [x21]
	mov	x0, x19
	bl	_r592_write_reg
	mov	x0, x19
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_R592_REG_MSC,4,2               ; @R592_REG_MSC
	.comm	_DMA_IRQ_ACK_MASK,4,2           ; @DMA_IRQ_ACK_MASK
	.comm	_DMA_IRQ_EN_MASK,4,2            ; @DMA_IRQ_EN_MASK
	.comm	_R592_FIFO_DMA,4,2              ; @R592_FIFO_DMA
	.comm	_R592_FIFO_DMA_SETTINGS,4,2     ; @R592_FIFO_DMA_SETTINGS
	.comm	_R592_FIFO_DMA_SETTINGS_EN,4,2  ; @R592_FIFO_DMA_SETTINGS_EN
	.comm	_R592_FIFO_DMA_SETTINGS_DIR,4,2 ; @R592_FIFO_DMA_SETTINGS_DIR
	.no_dead_strip	_r592_start_dma
.subsections_via_symbols
