	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goya_stop_external_queues
_goya_stop_external_queues:             ## @goya_stop_external_queues
	.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
	movq	_mmDMA_QM_0_GLBL_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mmDMA_QM_0_CP_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mmDMA_QM_0_GLBL_STS0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_goya_stop_queue
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	_mmDMA_QM_1_GLBL_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mmDMA_QM_1_CP_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mmDMA_QM_1_GLBL_STS0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_goya_stop_queue
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	_mmDMA_QM_2_GLBL_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mmDMA_QM_2_CP_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mmDMA_QM_2_GLBL_STS0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_goya_stop_queue
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	_mmDMA_QM_3_GLBL_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mmDMA_QM_3_CP_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mmDMA_QM_3_GLBL_STS0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_goya_stop_queue
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	_mmDMA_QM_4_GLBL_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mmDMA_QM_4_CP_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mmDMA_QM_4_GLBL_STS0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_goya_stop_queue
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmDMA_QM_0_GLBL_CFG1,4,2       ## @mmDMA_QM_0_GLBL_CFG1
	.comm	_mmDMA_QM_0_CP_STS,4,2          ## @mmDMA_QM_0_CP_STS
	.comm	_mmDMA_QM_0_GLBL_STS0,4,2       ## @mmDMA_QM_0_GLBL_STS0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to stop DMA QMAN 0\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_mmDMA_QM_1_GLBL_CFG1,4,2       ## @mmDMA_QM_1_GLBL_CFG1
	.comm	_mmDMA_QM_1_CP_STS,4,2          ## @mmDMA_QM_1_CP_STS
	.comm	_mmDMA_QM_1_GLBL_STS0,4,2       ## @mmDMA_QM_1_GLBL_STS0
L_.str.1:                               ## @.str.1
	.asciz	"failed to stop DMA QMAN 1\n"

	.comm	_mmDMA_QM_2_GLBL_CFG1,4,2       ## @mmDMA_QM_2_GLBL_CFG1
	.comm	_mmDMA_QM_2_CP_STS,4,2          ## @mmDMA_QM_2_CP_STS
	.comm	_mmDMA_QM_2_GLBL_STS0,4,2       ## @mmDMA_QM_2_GLBL_STS0
L_.str.2:                               ## @.str.2
	.asciz	"failed to stop DMA QMAN 2\n"

	.comm	_mmDMA_QM_3_GLBL_CFG1,4,2       ## @mmDMA_QM_3_GLBL_CFG1
	.comm	_mmDMA_QM_3_CP_STS,4,2          ## @mmDMA_QM_3_CP_STS
	.comm	_mmDMA_QM_3_GLBL_STS0,4,2       ## @mmDMA_QM_3_GLBL_STS0
L_.str.3:                               ## @.str.3
	.asciz	"failed to stop DMA QMAN 3\n"

	.comm	_mmDMA_QM_4_GLBL_CFG1,4,2       ## @mmDMA_QM_4_GLBL_CFG1
	.comm	_mmDMA_QM_4_CP_STS,4,2          ## @mmDMA_QM_4_CP_STS
	.comm	_mmDMA_QM_4_GLBL_STS0,4,2       ## @mmDMA_QM_4_GLBL_STS0
L_.str.4:                               ## @.str.4
	.asciz	"failed to stop DMA QMAN 4\n"

	.no_dead_strip	_goya_stop_external_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goya_stop_external_queues
_goya_stop_external_queues:             ; @goya_stop_external_queues
	.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
Lloh0:
	adrp	x8, _mmDMA_QM_0_GLBL_CFG1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmDMA_QM_0_GLBL_CFG1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _mmDMA_QM_0_CP_STS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mmDMA_QM_0_CP_STS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _mmDMA_QM_0_GLBL_STS0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mmDMA_QM_0_GLBL_STS0@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_goya_stop_queue
Lloh9:
	adrp	x21, _EIO@GOTPAGE
Lloh10:
	ldr	x21, [x21, _EIO@GOTPAGEOFF]
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	w8, [x21]
	neg	w20, w8
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
Lloh13:
	adrp	x8, _mmDMA_QM_1_GLBL_CFG1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mmDMA_QM_1_GLBL_CFG1@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _mmDMA_QM_1_CP_STS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mmDMA_QM_1_CP_STS@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _mmDMA_QM_1_GLBL_STS0@GOTPAGE
Lloh20:
	ldr	x8, [x8, _mmDMA_QM_1_GLBL_STS0@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_goya_stop_queue
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	w8, [x21]
	neg	w20, w8
LBB0_5:
Lloh24:
	adrp	x8, _mmDMA_QM_2_GLBL_CFG1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _mmDMA_QM_2_GLBL_CFG1@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _mmDMA_QM_2_CP_STS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _mmDMA_QM_2_CP_STS@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x8, _mmDMA_QM_2_GLBL_STS0@GOTPAGE
Lloh31:
	ldr	x8, [x8, _mmDMA_QM_2_GLBL_STS0@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_goya_stop_queue
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x19]
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	ldr	w8, [x21]
	neg	w20, w8
LBB0_7:
Lloh35:
	adrp	x8, _mmDMA_QM_3_GLBL_CFG1@GOTPAGE
Lloh36:
	ldr	x8, [x8, _mmDMA_QM_3_GLBL_CFG1@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x8, _mmDMA_QM_3_CP_STS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _mmDMA_QM_3_CP_STS@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
Lloh41:
	adrp	x8, _mmDMA_QM_3_GLBL_STS0@GOTPAGE
Lloh42:
	ldr	x8, [x8, _mmDMA_QM_3_GLBL_STS0@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_goya_stop_queue
	cbz	w0, LBB0_9
; %bb.8:
	ldr	w0, [x19]
Lloh44:
	adrp	x1, l_.str.3@PAGE
Lloh45:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	ldr	w8, [x21]
	neg	w20, w8
LBB0_9:
Lloh46:
	adrp	x8, _mmDMA_QM_4_GLBL_CFG1@GOTPAGE
Lloh47:
	ldr	x8, [x8, _mmDMA_QM_4_GLBL_CFG1@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x8, _mmDMA_QM_4_CP_STS@GOTPAGE
Lloh50:
	ldr	x8, [x8, _mmDMA_QM_4_CP_STS@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
Lloh52:
	adrp	x8, _mmDMA_QM_4_GLBL_STS0@GOTPAGE
Lloh53:
	ldr	x8, [x8, _mmDMA_QM_4_GLBL_STS0@GOTPAGEOFF]
Lloh54:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_goya_stop_queue
	cbz	w0, LBB0_11
; %bb.10:
	ldr	w0, [x19]
Lloh55:
	adrp	x1, l_.str.4@PAGE
Lloh56:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	ldr	w8, [x21]
	neg	w20, w8
LBB0_11:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_mmDMA_QM_0_GLBL_CFG1,4,2       ; @mmDMA_QM_0_GLBL_CFG1
	.comm	_mmDMA_QM_0_CP_STS,4,2          ; @mmDMA_QM_0_CP_STS
	.comm	_mmDMA_QM_0_GLBL_STS0,4,2       ; @mmDMA_QM_0_GLBL_STS0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to stop DMA QMAN 0\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_mmDMA_QM_1_GLBL_CFG1,4,2       ; @mmDMA_QM_1_GLBL_CFG1
	.comm	_mmDMA_QM_1_CP_STS,4,2          ; @mmDMA_QM_1_CP_STS
	.comm	_mmDMA_QM_1_GLBL_STS0,4,2       ; @mmDMA_QM_1_GLBL_STS0
l_.str.1:                               ; @.str.1
	.asciz	"failed to stop DMA QMAN 1\n"

	.comm	_mmDMA_QM_2_GLBL_CFG1,4,2       ; @mmDMA_QM_2_GLBL_CFG1
	.comm	_mmDMA_QM_2_CP_STS,4,2          ; @mmDMA_QM_2_CP_STS
	.comm	_mmDMA_QM_2_GLBL_STS0,4,2       ; @mmDMA_QM_2_GLBL_STS0
l_.str.2:                               ; @.str.2
	.asciz	"failed to stop DMA QMAN 2\n"

	.comm	_mmDMA_QM_3_GLBL_CFG1,4,2       ; @mmDMA_QM_3_GLBL_CFG1
	.comm	_mmDMA_QM_3_CP_STS,4,2          ; @mmDMA_QM_3_CP_STS
	.comm	_mmDMA_QM_3_GLBL_STS0,4,2       ; @mmDMA_QM_3_GLBL_STS0
l_.str.3:                               ; @.str.3
	.asciz	"failed to stop DMA QMAN 3\n"

	.comm	_mmDMA_QM_4_GLBL_CFG1,4,2       ; @mmDMA_QM_4_GLBL_CFG1
	.comm	_mmDMA_QM_4_CP_STS,4,2          ; @mmDMA_QM_4_CP_STS
	.comm	_mmDMA_QM_4_GLBL_STS0,4,2       ; @mmDMA_QM_4_GLBL_STS0
l_.str.4:                               ; @.str.4
	.asciz	"failed to stop DMA QMAN 4\n"

	.no_dead_strip	_goya_stop_external_queues
.subsections_via_symbols
