	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_dv1394_shutdown
_do_dv1394_shutdown:                    ## @do_dv1394_shutdown
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_debug_printk
	movq	%r12, %rdi
	callq	_stop_dma
	movl	(%r12), %ecx
	cmpl	$-1, %ecx
	je	LBB0_2
## %bb.1:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 120(%r12)
	movq	$0, 136(%r12)
	movq	64(%r12), %rdi
	movq	_OHCI1394_IsoXmitIntMaskClear@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	callq	_reg_write
	movq	64(%r12), %rdi
	leaq	112(%r12), %rsi
	callq	_ohci1394_unregister_iso_tasklet
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_debug_printk
	movl	$-1, (%r12)
LBB0_2:
	movl	4(%r12), %ecx
	cmpl	$-1, %ecx
	je	LBB0_4
## %bb.3:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 96(%r12)
	movups	%xmm0, 80(%r12)
	movq	64(%r12), %rdi
	movq	_OHCI1394_IsoRecvIntMaskClear@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	callq	_reg_write
	movq	64(%r12), %rdi
	leaq	72(%r12), %rsi
	callq	_ohci1394_unregister_iso_tasklet
	movl	4(%r12), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_debug_printk
	movl	$-1, 4(%r12)
LBB0_4:
	movl	8(%r12), %r15d
	cmpl	$-1, %r15d
	je	LBB0_6
## %bb.5:
	movq	64(%r12), %rdi
	addq	$4, %rdi
	callq	_spin_lock_irqsave
	movl	$-2, %eax
	movl	%r15d, %ecx
	roll	%cl, %eax
	movq	64(%r12), %rdi
	andl	%eax, (%rdi)
	addq	$4, %rdi
	callq	_spin_unlock_irqrestore
	movl	$-1, 8(%r12)
LBB0_6:
	movq	_DV1394_MAX_FRAMES@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	$0, (%rcx,%rbx,8)
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	callq	_frame_delete
	movq	56(%r12), %rcx
	movl	(%r15), %eax
	jmp	LBB0_10
LBB0_11:
	movq	$0, 48(%r12)
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.12:
	leaq	40(%r12), %rdi
	callq	_dma_region_free
	movq	$0, 32(%r12)
LBB0_13:
	leaq	24(%r12), %rdi
	callq	_dma_region_free
	movq	$0, 16(%r12)
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_debug_printk                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dv1394: shutdown...\n"

	.comm	_OHCI1394_IsoXmitIntMaskClear,4,2 ## @OHCI1394_IsoXmitIntMaskClear
L_.str.1:                               ## @.str.1
	.asciz	"dv1394: IT context %d released\n"

	.comm	_OHCI1394_IsoRecvIntMaskClear,4,2 ## @OHCI1394_IsoRecvIntMaskClear
L_.str.2:                               ## @.str.2
	.asciz	"dv1394: IR context %d released\n"

	.comm	_DV1394_MAX_FRAMES,4,2          ## @DV1394_MAX_FRAMES
L_.str.3:                               ## @.str.3
	.asciz	"dv1394: shutdown OK\n"

	.no_dead_strip	_do_dv1394_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_dv1394_shutdown
_do_dv1394_shutdown:                    ; @do_dv1394_shutdown
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug_printk
	mov	x0, x19
	bl	_stop_dma
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_2
; %bb.1:
	stp	xzr, xzr, [x19, #120]
	str	xzr, [x19, #136]
	ldr	x0, [x19, #64]
Lloh2:
	adrp	x9, _OHCI1394_IsoXmitIntMaskClear@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OHCI1394_IsoXmitIntMaskClear@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	mov	w9, #1
	lsl	w2, w9, w8
	bl	_reg_write
	ldr	x0, [x19, #64]
	add	x1, x19, #112
	bl	_ohci1394_unregister_iso_tasklet
	ldr	w8, [x19]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debug_printk
	mov	w8, #-1
	str	w8, [x19]
LBB0_2:
	ldr	w8, [x19, #4]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.3:
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #80]
	ldr	x0, [x19, #64]
Lloh7:
	adrp	x9, _OHCI1394_IsoRecvIntMaskClear@GOTPAGE
Lloh8:
	ldr	x9, [x9, _OHCI1394_IsoRecvIntMaskClear@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x9]
	mov	w9, #1
	lsl	w2, w9, w8
	bl	_reg_write
	ldr	x0, [x19, #64]
	add	x1, x19, #72
	bl	_ohci1394_unregister_iso_tasklet
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_debug_printk
	mov	w8, #-1
	str	w8, [x19, #4]
LBB0_4:
	ldr	w8, [x19, #8]
	cmn	w8, #1
	b.eq	LBB0_6
; %bb.5:
	mov	w9, #1
	lsl	w21, w9, w8
	ldr	x8, [x19, #64]
	add	x0, x8, #4
	bl	_spin_lock_irqsave
	ldr	x0, [x19, #64]
	ldr	w8, [x0]
	bic	w8, w8, w21
	str	w8, [x0], #4
	bl	_spin_unlock_irqrestore
	mov	w8, #-1
	str	w8, [x19, #8]
LBB0_6:
Lloh12:
	adrp	x21, _DV1394_MAX_FRAMES@GOTPAGE
Lloh13:
	ldr	x21, [x21, _DV1394_MAX_FRAMES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x22, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	str	xzr, [x9, x22, lsl #3]
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #56]
	ldr	x0, [x9, x22, lsl #3]
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_frame_delete
	ldr	x9, [x19, #56]
	ldr	w8, [x21]
	b	LBB0_8
LBB0_11:
	str	xzr, [x19, #48]
	cbz	w20, LBB0_13
; %bb.12:
	add	x0, x19, #40
	bl	_dma_region_free
	str	xzr, [x19, #32]
LBB0_13:
	add	x0, x19, #24
	bl	_dma_region_free
	str	xzr, [x19, #16]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_debug_printk
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dv1394: shutdown...\n"

	.comm	_OHCI1394_IsoXmitIntMaskClear,4,2 ; @OHCI1394_IsoXmitIntMaskClear
l_.str.1:                               ; @.str.1
	.asciz	"dv1394: IT context %d released\n"

	.comm	_OHCI1394_IsoRecvIntMaskClear,4,2 ; @OHCI1394_IsoRecvIntMaskClear
l_.str.2:                               ; @.str.2
	.asciz	"dv1394: IR context %d released\n"

	.comm	_DV1394_MAX_FRAMES,4,2          ; @DV1394_MAX_FRAMES
l_.str.3:                               ; @.str.3
	.asciz	"dv1394: shutdown OK\n"

	.no_dead_strip	_do_dv1394_shutdown
.subsections_via_symbols
