	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ohci1394_stop_context          ## -- Begin function ohci1394_stop_context
	.p2align	4, 0x90
_ohci1394_stop_context:                 ## @ohci1394_stop_context
	.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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_reg_write
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_reg_read
	testl	$1024, %eax                     ## imm = 0x400
	je	LBB0_5
## %bb.1:
	movl	$5001, %ebx                     ## imm = 0x1389
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decl	%ebx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_mb
	movl	$10, %edi
	callq	_udelay
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_reg_read
	testl	$1024, %eax                     ## imm = 0x400
	jne	LBB0_2
LBB0_5:
	xorl	%ebx, %ebx
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	callq	_PRINT
	jmp	LBB0_7
LBB0_3:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testq	%r14, %r14
	leaq	L_.str.1(%rip), %rdx
	cmovneq	%r14, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_PRINT
	movl	$1, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Runaway loop while stopping context: %s..."

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"%s: dma prg stopped"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ohci1394_stop_context          ; -- Begin function ohci1394_stop_context
	.p2align	2
_ohci1394_stop_context:                 ; @ohci1394_stop_context
	.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, x2
	mov	x20, x1
	mov	x21, x0
	mov	w2, #32768
	bl	_reg_write
	mov	x0, x21
	mov	x1, x20
	bl	_reg_read
	tbz	w0, #10, LBB0_4
; %bb.1:
	mov	w22, #5001
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	subs	w22, w22, #1
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_mb
	mov	w0, #10
	bl	_udelay
	mov	x0, x21
	mov	x1, x20
	bl	_reg_read
	tbnz	w0, #10, LBB0_2
LBB0_4:
	cbz	x19, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_PRINT
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x19, #0
	csel	x2, x8, x19, eq
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PRINT
	mov	w0, #1
LBB0_8:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Runaway loop while stopping context: %s..."

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"%s: dma prg stopped"

.subsections_via_symbols
