	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bus_reset_tasklet
_bus_reset_tasklet:                     ## @bus_reset_tasklet
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_OHCI1394_NodeID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_reg_read
	movq	_OHCI1394_NodeID_idValid@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.3:
	movq	_OHCI1394_NodeID_nodeNumber@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	andl	%eax, %edx
	cmpl	$63, %edx
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_5:
	movq	_OHCI1394_NodeID_busNumber@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	andl	%eax, %ecx
	movl	%ecx, (%r13)
	movq	_OHCI1394_SelfIDCount@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_reg_read
	movq	_OHCI1394_SelfIDCount_selfIDError@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.7:
	shrl	$3, %eax
	movzbl	%al, %r14d
	leal	-253(%r14), %eax
	cmpl	$-253, %eax
	ja	LBB0_8
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fw_notify                      ## TAILCALL
LBB0_8:
	movq	80(%r13), %rax
	movl	(%rax), %edi
	callq	_cond_le32_to_cpu
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rmb
	movl	%r14d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	80(%r13), %rax
	movl	4(%rax,%rbx,8), %edi
	movl	8(%rax,%rbx,8), %eax
	notl	%eax
	cmpl	%eax, %edi
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	callq	_cond_le32_to_cpu
	movq	8(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_9
## %bb.11:
	xorl	%eax, %eax
	callq	_rmb
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_reg_read
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %eax
	jne	LBB0_12
## %bb.13:
	leaq	28(%r13), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	%ebx, 16(%r13)
	leaq	76(%r13), %rdi
	callq	_context_stop
	leaq	72(%r13), %rdi
	callq	_context_stop
	movq	_OHCI1394_IntEventClear@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OHCI1394_busReset@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_reg_write
	cmpq	$0, 64(%r13)
	je	LBB0_15
## %bb.14:
	movl	%ebx, 20(%r13)
LBB0_15:
	movq	48(%r13), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	40(%r13), %r15
	cmpq	%r15, %rax
	je	LBB0_18
## %bb.19:
	movl	60(%r13), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_20
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_16:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_22
LBB0_18:
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_20:
	movq	%rax, 40(%r13)
	movl	56(%r13), %ecx
	movl	%ecx, 60(%r13)
	movq	$0, 48(%r13)
	movq	_OHCI1394_BusOptions@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movl	8(%rax), %edi
	callq	_be32_to_cpu
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_reg_write
	movl	32(%r13), %edi
	callq	_cpu_to_be32
	movq	40(%r13), %rcx
	movl	%eax, (%rcx)
	movq	_OHCI1394_ConfigROMhdr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r13), %edx
	movq	%r13, %rdi
	callq	_reg_write
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	testq	%r15, %r15
	je	LBB0_22
## %bb.21:
	movl	24(%r13), %edi
	movq	_CONFIG_ROM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_dma_free_coherent
LBB0_22:
	movl	(%r13), %edi
	movq	8(%r13), %rcx
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_log_selfids
	leaq	24(%r13), %rdi
	movl	(%r13), %esi
	movq	8(%r13), %r8
	movl	%ebx, %edx
	movl	%r14d, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fw_core_handle_bus_reset       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OHCI1394_NodeID,4,2            ## @OHCI1394_NodeID
	.comm	_OHCI1394_NodeID_idValid,4,2    ## @OHCI1394_NodeID_idValid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"node ID not valid, new bus reset in progress\n"

	.comm	_OHCI1394_NodeID_nodeNumber,4,2 ## @OHCI1394_NodeID_nodeNumber
L_.str.1:                               ## @.str.1
	.asciz	"malconfigured bus\n"

	.comm	_OHCI1394_NodeID_busNumber,4,2  ## @OHCI1394_NodeID_busNumber
	.comm	_OHCI1394_SelfIDCount,4,2       ## @OHCI1394_SelfIDCount
	.comm	_OHCI1394_SelfIDCount_selfIDError,4,2 ## @OHCI1394_SelfIDCount_selfIDError
L_.str.2:                               ## @.str.2
	.asciz	"inconsistent self IDs\n"

L_.str.3:                               ## @.str.3
	.asciz	"recursive bus reset detected, discarding self ids\n"

	.comm	_OHCI1394_IntEventClear,4,2     ## @OHCI1394_IntEventClear
	.comm	_OHCI1394_busReset,4,2          ## @OHCI1394_busReset
	.comm	_OHCI1394_BusOptions,4,2        ## @OHCI1394_BusOptions
	.comm	_OHCI1394_ConfigROMhdr,4,2      ## @OHCI1394_ConfigROMhdr
	.comm	_CONFIG_ROM_SIZE,4,2            ## @CONFIG_ROM_SIZE
	.comm	_OHCI1394_PhyReqFilterHiSet,4,2 ## @OHCI1394_PhyReqFilterHiSet
	.comm	_OHCI1394_PhyReqFilterLoSet,4,2 ## @OHCI1394_PhyReqFilterLoSet
	.no_dead_strip	_bus_reset_tasklet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bus_reset_tasklet
_bus_reset_tasklet:                     ; @bus_reset_tasklet
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _OHCI1394_NodeID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OHCI1394_NodeID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_reg_read
Lloh3:
	adrp	x8, _OHCI1394_NodeID_idValid@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OHCI1394_NodeID_idValid@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _OHCI1394_NodeID_nodeNumber@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OHCI1394_NodeID_nodeNumber@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w9, w8, w0
	cmp	w9, #63
	b.ne	LBB0_4
; %bb.2:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_3:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
Lloh13:
	adrp	x9, _OHCI1394_NodeID_busNumber@GOTPAGE
Lloh14:
	ldr	x9, [x9, _OHCI1394_NodeID_busNumber@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w8, w8, w0
	str	w8, [x19]
Lloh16:
	adrp	x22, _OHCI1394_SelfIDCount@GOTPAGE
Lloh17:
	ldr	x22, [x22, _OHCI1394_SelfIDCount@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_reg_read
Lloh18:
	adrp	x8, _OHCI1394_SelfIDCount_selfIDError@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OHCI1394_SelfIDCount_selfIDError@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_6
; %bb.5:
	ubfx	w20, w0, #3, #8
	sub	w8, w20, #253
	cmn	w8, #253
	b.hi	LBB0_8
LBB0_6:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_fw_notify
LBB0_8:
	ldr	x8, [x19, #80]
	ldr	w0, [x8]
	bl	_cond_le32_to_cpu
	ubfx	w21, w0, #16, #8
	bl	_rmb
	mov	x23, #0
	mov	x24, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #80]
	add	x8, x8, x23
	ldp	w0, w8, [x8, #4]
	mvn	w8, w8
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_cond_le32_to_cpu
	ldr	x8, [x19, #8]
	str	w0, [x8, x24, lsl #2]
	add	x24, x24, #1
	add	x23, x23, #8
	cmp	x20, x24
	b.ne	LBB0_9
; %bb.11:
	bl	_rmb
	ldr	w1, [x22]
	mov	x0, x19
	bl	_reg_read
	lsr	w8, w0, #16
	cmp	w21, w8, uxtb
	b.ne	LBB0_17
; %bb.12:
	add	x22, x19, #28
	mov	x0, x22
	bl	_spin_lock_irqsave
	str	w21, [x19, #16]
	add	x0, x19, #76
	bl	_context_stop
	add	x0, x19, #72
	bl	_context_stop
Lloh23:
	adrp	x8, _OHCI1394_IntEventClear@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OHCI1394_IntEventClear@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _OHCI1394_busReset@GOTPAGE
Lloh27:
	ldr	x8, [x8, _OHCI1394_busReset@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_reg_write
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_14
; %bb.13:
	str	w21, [x19, #20]
LBB0_14:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_18
; %bb.15:
	ldr	x23, [x19, #40]
	cmp	x8, x23
	b.eq	LBB0_19
; %bb.16:
	ldr	w24, [x19, #60]
	b	LBB0_20
LBB0_17:
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_18:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	b	LBB0_22
LBB0_19:
	mov	x23, #0
	mov	w24, #0
LBB0_20:
	ldr	w9, [x19, #56]
	str	w9, [x19, #60]
	stp	x8, xzr, [x19, #40]
Lloh31:
	adrp	x9, _OHCI1394_BusOptions@GOTPAGE
Lloh32:
	ldr	x9, [x9, _OHCI1394_BusOptions@GOTPAGEOFF]
Lloh33:
	ldr	w25, [x9]
	ldr	w0, [x8, #8]
	bl	_be32_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x25
	bl	_reg_write
	ldr	w0, [x19, #32]
	bl	_cpu_to_be32
	ldr	x8, [x19, #40]
	str	w0, [x8]
Lloh34:
	adrp	x8, _OHCI1394_ConfigROMhdr@GOTPAGE
Lloh35:
	ldr	x8, [x8, _OHCI1394_ConfigROMhdr@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	ldr	w2, [x19, #32]
	mov	x0, x19
	bl	_reg_write
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	cbz	x23, LBB0_22
; %bb.21:
	ldr	w0, [x19, #24]
Lloh37:
	adrp	x8, _CONFIG_ROM_SIZE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CONFIG_ROM_SIZE@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x2, x23
	mov	x3, x24
	bl	_dma_free_coherent
LBB0_22:
	ldr	w0, [x19]
	ldr	x3, [x19, #8]
	mov	x1, x21
	mov	x2, x20
	bl	_log_selfids
	add	x0, x19, #24
	ldr	w1, [x19]
	ldr	x4, [x19, #8]
	mov	x2, x21
	mov	x3, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_fw_core_handle_bus_reset
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_OHCI1394_NodeID,4,2            ; @OHCI1394_NodeID
	.comm	_OHCI1394_NodeID_idValid,4,2    ; @OHCI1394_NodeID_idValid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"node ID not valid, new bus reset in progress\n"

	.comm	_OHCI1394_NodeID_nodeNumber,4,2 ; @OHCI1394_NodeID_nodeNumber
l_.str.1:                               ; @.str.1
	.asciz	"malconfigured bus\n"

	.comm	_OHCI1394_NodeID_busNumber,4,2  ; @OHCI1394_NodeID_busNumber
	.comm	_OHCI1394_SelfIDCount,4,2       ; @OHCI1394_SelfIDCount
	.comm	_OHCI1394_SelfIDCount_selfIDError,4,2 ; @OHCI1394_SelfIDCount_selfIDError
l_.str.2:                               ; @.str.2
	.asciz	"inconsistent self IDs\n"

l_.str.3:                               ; @.str.3
	.asciz	"recursive bus reset detected, discarding self ids\n"

	.comm	_OHCI1394_IntEventClear,4,2     ; @OHCI1394_IntEventClear
	.comm	_OHCI1394_busReset,4,2          ; @OHCI1394_busReset
	.comm	_OHCI1394_BusOptions,4,2        ; @OHCI1394_BusOptions
	.comm	_OHCI1394_ConfigROMhdr,4,2      ; @OHCI1394_ConfigROMhdr
	.comm	_CONFIG_ROM_SIZE,4,2            ; @CONFIG_ROM_SIZE
	.comm	_OHCI1394_PhyReqFilterHiSet,4,2 ; @OHCI1394_PhyReqFilterHiSet
	.comm	_OHCI1394_PhyReqFilterLoSet,4,2 ; @OHCI1394_PhyReqFilterLoSet
	.no_dead_strip	_bus_reset_tasklet
.subsections_via_symbols
