	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fwohci_sid                     ## -- Begin function fwohci_sid
	.p2align	4, 0x90
_fwohci_sid:                            ## @fwohci_sid
	.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	%rdi, %rbx
	movq	_FWOHCI_NODEID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_OREAD
	movl	%eax, %r14d
	movq	_OHCI_NODE_VALID@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.1:
	movq	_FWOHCI_INTMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OHCI_INT_PHY_BUS_R@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_OWRITE
	movq	_OHCI_AREQHI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-2147483648, %edx              ## imm = 0x80000000
	callq	_OWRITE
	movq	_OHCI_PREQHI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$2147483647, %edx               ## imm = 0x7FFFFFFF
	callq	_OWRITE
	movq	_OHCI_PREQLO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_OWRITE
	movq	_OHCI_PREQUPPER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$65536, %edx                    ## imm = 0x10000
	callq	_OWRITE
	movq	_OHCI_ATRETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$536875007, %edx                ## imm = 0x20000FFF
	callq	_OWRITE
	movq	_OHCI_SID_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OREAD
	movl	%eax, %r15d
	movq	_fc@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	%r15d, %eax
	shrl	$16, %eax
	movzbl	%al, %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_device_printf
	movq	_OHCI_NODE_ROOT@GOTPCREL(%rip), %rax
	movl	4(%rbx), %edi
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	movq	_OHCI_LNKCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OHCI_CNTL_CYCMTR@GOTPCREL(%rip), %rax
	movq	_OHCI_CNTL_CYCTIMER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	movq	_OHCI_LNKCTLCLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OHCI_CNTL_CYCMTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_OWRITE
	movq	_OHCI_LNKCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OHCI_CNTL_CYCTIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_4:
	movq	%rbx, %rdi
	callq	_OWRITE
	movq	_OHCI_SID_ERR@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_5
## %bb.7:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_device_printf                  ## TAILCALL
LBB0_5:
	movl	4(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	movq	_FWOHCI_STATE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FWOHCI_NODEID,4,2              ## @FWOHCI_NODEID
	.comm	_OHCI_NODE_VALID,4,2            ## @OHCI_NODE_VALID
	.comm	_FWOHCI_INTMASK,4,2             ## @FWOHCI_INTMASK
	.comm	_OHCI_INT_PHY_BUS_R,4,2         ## @OHCI_INT_PHY_BUS_R
	.comm	_OHCI_AREQHI,4,2                ## @OHCI_AREQHI
	.comm	_OHCI_PREQHI,4,2                ## @OHCI_PREQHI
	.comm	_OHCI_PREQLO,4,2                ## @OHCI_PREQLO
	.comm	_OHCI_PREQUPPER,4,2             ## @OHCI_PREQUPPER
	.comm	_OHCI_ATRETRY,4,2               ## @OHCI_ATRETRY
	.comm	_OHCI_SID_CNT,4,2               ## @OHCI_SID_CNT
	.comm	_fc,8,3                         ## @fc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"node_id=0x%08x, gen=%d, "

	.comm	_OHCI_NODE_ROOT,4,2             ## @OHCI_NODE_ROOT
L_.str.1:                               ## @.str.1
	.asciz	"CYCLEMASTER mode\n"

	.comm	_OHCI_LNKCTL,4,2                ## @OHCI_LNKCTL
	.comm	_OHCI_CNTL_CYCMTR,4,2           ## @OHCI_CNTL_CYCMTR
	.comm	_OHCI_CNTL_CYCTIMER,4,2         ## @OHCI_CNTL_CYCTIMER
L_.str.2:                               ## @.str.2
	.asciz	"non CYCLEMASTER mode\n"

	.comm	_OHCI_LNKCTLCLR,4,2             ## @OHCI_LNKCTLCLR
	.comm	_OHCI_SID_ERR,4,2               ## @OHCI_SID_ERR
L_.str.3:                               ## @.str.3
	.asciz	"SID Error\n"

L_.str.4:                               ## @.str.4
	.asciz	"bus reset phase done\n"

	.comm	_FWOHCI_STATE_NORMAL,4,2        ## @FWOHCI_STATE_NORMAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fwohci_sid                     ; -- Begin function fwohci_sid
	.p2align	2
_fwohci_sid:                            ; @fwohci_sid
	.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	x19, x0
Lloh0:
	adrp	x8, _FWOHCI_NODEID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FWOHCI_NODEID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_OREAD
Lloh3:
	adrp	x8, _OHCI_NODE_VALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OHCI_NODE_VALID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x8, _FWOHCI_INTMASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FWOHCI_INTMASK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _OHCI_INT_PHY_BUS_R@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OHCI_INT_PHY_BUS_R@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_OWRITE
Lloh12:
	adrp	x8, _OHCI_AREQHI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OHCI_AREQHI@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-2147483648
	bl	_OWRITE
Lloh15:
	adrp	x8, _OHCI_PREQHI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OHCI_PREQHI@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2147483647
	bl	_OWRITE
Lloh18:
	adrp	x8, _OHCI_PREQLO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OHCI_PREQLO@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_OWRITE
Lloh21:
	adrp	x8, _OHCI_PREQUPPER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OHCI_PREQUPPER@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65536
	bl	_OWRITE
Lloh24:
	adrp	x8, _OHCI_ATRETRY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _OHCI_ATRETRY@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4095
	movk	w2, #8192, lsl #16
	bl	_OWRITE
Lloh27:
	adrp	x8, _OHCI_SID_CNT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _OHCI_SID_CNT@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_OREAD
	mov	x21, x0
Lloh30:
	adrp	x22, _fc@GOTPAGE
Lloh31:
	ldr	x22, [x22, _fc@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w0, [x8]
	ubfx	w8, w21, #16, #8
	stp	x20, x8, [sp]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_printf
Lloh34:
	adrp	x8, _OHCI_NODE_ROOT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _OHCI_NODE_ROOT@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w0, [x19, #4]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_device_printf
Lloh39:
	adrp	x8, _OHCI_LNKCTL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _OHCI_LNKCTL@GOTPAGEOFF]
Lloh41:
	adrp	x9, _OHCI_CNTL_CYCMTR@GOTPAGE
Lloh42:
	ldr	x9, [x9, _OHCI_CNTL_CYCMTR@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	ldr	w8, [x9]
Lloh45:
	adrp	x9, _OHCI_CNTL_CYCTIMER@GOTPAGE
Lloh46:
	ldr	x9, [x9, _OHCI_CNTL_CYCTIMER@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w2, w9, w8
	b	LBB0_4
LBB0_3:
Lloh48:
	adrp	x1, l_.str.2@PAGE
Lloh49:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_device_printf
Lloh50:
	adrp	x8, _OHCI_LNKCTLCLR@GOTPAGE
Lloh51:
	ldr	x8, [x8, _OHCI_LNKCTLCLR@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
Lloh53:
	adrp	x8, _OHCI_CNTL_CYCMTR@GOTPAGE
Lloh54:
	ldr	x8, [x8, _OHCI_CNTL_CYCMTR@GOTPAGEOFF]
Lloh55:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_OWRITE
Lloh56:
	adrp	x8, _OHCI_LNKCTL@GOTPAGE
Lloh57:
	ldr	x8, [x8, _OHCI_LNKCTL@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
Lloh59:
	adrp	x8, _OHCI_CNTL_CYCTIMER@GOTPAGE
Lloh60:
	ldr	x8, [x8, _OHCI_CNTL_CYCTIMER@GOTPAGEOFF]
Lloh61:
	ldr	w2, [x8]
LBB0_4:
	mov	x0, x19
	bl	_OWRITE
Lloh62:
	adrp	x8, _OHCI_SID_ERR@GOTPAGE
Lloh63:
	ldr	x8, [x8, _OHCI_SID_ERR@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x22]
	ldr	w0, [x8]
Lloh65:
	adrp	x1, l_.str.3@PAGE
Lloh66:
	add	x1, x1, 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	_device_printf
LBB0_6:
	ldr	w0, [x19, #4]
Lloh67:
	adrp	x1, l_.str.4@PAGE
Lloh68:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_device_printf
Lloh69:
	adrp	x8, _FWOHCI_STATE_NORMAL@GOTPAGE
Lloh70:
	ldr	x8, [x8, _FWOHCI_STATE_NORMAL@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh43
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_FWOHCI_NODEID,4,2              ; @FWOHCI_NODEID
	.comm	_OHCI_NODE_VALID,4,2            ; @OHCI_NODE_VALID
	.comm	_FWOHCI_INTMASK,4,2             ; @FWOHCI_INTMASK
	.comm	_OHCI_INT_PHY_BUS_R,4,2         ; @OHCI_INT_PHY_BUS_R
	.comm	_OHCI_AREQHI,4,2                ; @OHCI_AREQHI
	.comm	_OHCI_PREQHI,4,2                ; @OHCI_PREQHI
	.comm	_OHCI_PREQLO,4,2                ; @OHCI_PREQLO
	.comm	_OHCI_PREQUPPER,4,2             ; @OHCI_PREQUPPER
	.comm	_OHCI_ATRETRY,4,2               ; @OHCI_ATRETRY
	.comm	_OHCI_SID_CNT,4,2               ; @OHCI_SID_CNT
	.comm	_fc,8,3                         ; @fc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"node_id=0x%08x, gen=%d, "

	.comm	_OHCI_NODE_ROOT,4,2             ; @OHCI_NODE_ROOT
l_.str.1:                               ; @.str.1
	.asciz	"CYCLEMASTER mode\n"

	.comm	_OHCI_LNKCTL,4,2                ; @OHCI_LNKCTL
	.comm	_OHCI_CNTL_CYCMTR,4,2           ; @OHCI_CNTL_CYCMTR
	.comm	_OHCI_CNTL_CYCTIMER,4,2         ; @OHCI_CNTL_CYCTIMER
l_.str.2:                               ; @.str.2
	.asciz	"non CYCLEMASTER mode\n"

	.comm	_OHCI_LNKCTLCLR,4,2             ; @OHCI_LNKCTLCLR
	.comm	_OHCI_SID_ERR,4,2               ; @OHCI_SID_ERR
l_.str.3:                               ; @.str.3
	.asciz	"SID Error\n"

l_.str.4:                               ; @.str.4
	.asciz	"bus reset phase done\n"

	.comm	_FWOHCI_STATE_NORMAL,4,2        ; @FWOHCI_STATE_NORMAL
.subsections_via_symbols
