	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ohci_devctl
_ohci_devctl:                           ## @ohci_devctl
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, %eax
	leal	-131(%rax), %ecx
	cmpl	$8, %ecx
	ja	LBB0_12
## %bb.1:
	movq	(%rdi), %r14
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_OHCI1394_IsochronousCycleTimer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_reg_write
	jmp	LBB0_26
LBB0_3:
	movl	$-1, %ebx
	addl	$-128, %edx
	cmpl	$8, %edx
	ja	LBB0_27
## %bb.4:
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%rdx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_get_phy_reg
	testb	$-128, %al
	je	LBB0_19
## %bb.6:
	andl	$-129, %eax
	jmp	LBB0_18
LBB0_7:
	testl	%edx, %edx
	je	LBB0_15
## %bb.8:
	movq	_OHCI1394_NodeID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_reg_read
	xorl	%ebx, %ebx
	testl	$1073741824, %eax               ## imm = 0x40000000
	je	LBB0_27
## %bb.9:
	andl	$63, %eax
	je	LBB0_27
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	callq	_DBGMSG
	movq	_OHCI1394_LinkControlSet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OHCI1394_LinkControl_CycleTimerEnable@GOTPCREL(%rip), %rax
	movq	_OHCI1394_LinkControl_CycleMaster@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_reg_write
	jmp	LBB0_27
LBB0_11:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_PRINT
	jmp	LBB0_26
LBB0_12:
	movq	_KERN_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_PRINT_G
	jmp	LBB0_26
LBB0_13:
	movq	_OHCI1394_IsochronousCycleTimer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_reg_read                       ## TAILCALL
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	callq	_DBGMSG
	leaq	4(%r14), %rdi
	callq	_dma_trm_reset
	movq	%r14, %rdi
	callq	_dma_trm_reset
	jmp	LBB0_26
LBB0_15:
	movq	_OHCI1394_LinkControlClear@GOTPCREL(%rip), %rax
	movq	_OHCI1394_LinkControl_CycleTimerEnable@GOTPCREL(%rip), %rcx
	movq	_OHCI1394_LinkControl_CycleMaster@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_OHCI1394_LinkControl_CycleSource@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_reg_write
	jmp	LBB0_26
LBB0_16:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_get_phy_reg
	testb	$-128, %al
	jne	LBB0_19
## %bb.17:
	orl	$128, %eax
LBB0_18:
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_set_phy_reg
LBB0_19:
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_get_phy_reg
	orl	$64, %eax
	movq	%r14, %rdi
	movl	$5, %esi
	jmp	LBB0_24
LBB0_20:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_get_phy_reg
	orl	$64, %eax
	jmp	LBB0_23
LBB0_21:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_get_phy_reg
                                        ## kill: def $eax killed $eax def $rax
	andl	$-193, %eax
	leal	64(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	jmp	LBB0_25
LBB0_22:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_get_phy_reg
	orl	$192, %eax
LBB0_23:
	movq	%r14, %rdi
	movl	$1, %esi
LBB0_24:
	movl	%eax, %edx
LBB0_25:
	callq	_set_phy_reg
LBB0_26:
	xorl	%ebx, %ebx
LBB0_27:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_11
	.long	L0_0_set_3
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_7
.set L0_1_set_5, LBB0_5-LJTI0_1
.set L0_1_set_16, LBB0_16-LJTI0_1
.set L0_1_set_19, LBB0_19-LJTI0_1
.set L0_1_set_27, LBB0_27-LJTI0_1
.set L0_1_set_21, LBB0_21-LJTI0_1
.set L0_1_set_22, LBB0_22-LJTI0_1
.set L0_1_set_20, LBB0_20-LJTI0_1
LJTI0_1:
	.long	L0_1_set_5
	.long	L0_1_set_16
	.long	L0_1_set_19
	.long	L0_1_set_27
	.long	L0_1_set_27
	.long	L0_1_set_27
	.long	L0_1_set_21
	.long	L0_1_set_22
	.long	L0_1_set_20
	.end_data_region
                                        ## -- End function
	.comm	_OHCI1394_IsochronousCycleTimer,4,2 ## @OHCI1394_IsochronousCycleTimer
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"devctl command SET_BUS_ID err"

	.comm	_OHCI1394_NodeID,4,2            ## @OHCI1394_NodeID
L_.str.1:                               ## @.str.1
	.asciz	"Cycle master enabled"

	.comm	_OHCI1394_LinkControlSet,4,2    ## @OHCI1394_LinkControlSet
	.comm	_OHCI1394_LinkControl_CycleTimerEnable,4,2 ## @OHCI1394_LinkControl_CycleTimerEnable
	.comm	_OHCI1394_LinkControl_CycleMaster,4,2 ## @OHCI1394_LinkControl_CycleMaster
	.comm	_OHCI1394_LinkControlClear,4,2  ## @OHCI1394_LinkControlClear
	.comm	_OHCI1394_LinkControl_CycleSource,4,2 ## @OHCI1394_LinkControl_CycleSource
L_.str.2:                               ## @.str.2
	.asciz	"Cancel request received"

L_.str.3:                               ## @.str.3
	.asciz	"ohci_devctl cmd %d not implemented yet"

	.no_dead_strip	_ohci_devctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ohci_devctl
_ohci_devctl:                           ; @ohci_devctl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	sub	w9, w1, #131
	cmp	w9, #8
	b.hi	LBB0_12
; %bb.1:
	ldr	x19, [x0]
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh2:
	adrp	x8, _OHCI1394_IsochronousCycleTimer@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OHCI1394_IsochronousCycleTimer@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	b	LBB0_16
LBB0_3:
	mov	w0, #-1
	sub	w8, w2, #128
	cmp	w8, #8
	b.hi	LBB0_27
; %bb.4:
Lloh5:
	adrp	x9, lJTI0_1@PAGE
Lloh6:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	mov	x0, x19
	mov	w1, #1
	bl	_get_phy_reg
	tbz	w0, #7, LBB0_20
; %bb.6:
	and	w2, w0, #0xffffff7f
	b	LBB0_19
LBB0_7:
	cbz	w2, LBB0_15
; %bb.8:
Lloh7:
	adrp	x8, _OHCI1394_NodeID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OHCI1394_NodeID@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_reg_read
	mov	x8, x0
	mov	w0, #0
	tbz	w8, #30, LBB0_27
; %bb.9:
	and	w8, w8, #0x3f
	cbz	w8, LBB0_27
; %bb.10:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBGMSG
Lloh12:
	adrp	x8, _OHCI1394_LinkControlSet@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OHCI1394_LinkControlSet@GOTPAGEOFF]
Lloh14:
	adrp	x9, _OHCI1394_LinkControl_CycleTimerEnable@GOTPAGE
Lloh15:
	ldr	x9, [x9, _OHCI1394_LinkControl_CycleTimerEnable@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	ldr	w8, [x9]
Lloh18:
	adrp	x9, _OHCI1394_LinkControl_CycleMaster@GOTPAGE
Lloh19:
	ldr	x9, [x9, _OHCI1394_LinkControl_CycleMaster@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w2, w9, w8
	b	LBB0_16
LBB0_11:
Lloh21:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PRINT
	b	LBB0_26
LBB0_12:
Lloh26:
	adrp	x9, _KERN_ERR@GOTPAGE
Lloh27:
	ldr	x9, [x9, _KERN_ERR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x9]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x8
	bl	_PRINT_G
	b	LBB0_26
LBB0_13:
Lloh31:
	adrp	x8, _OHCI1394_IsochronousCycleTimer@GOTPAGE
Lloh32:
	ldr	x8, [x8, _OHCI1394_IsochronousCycleTimer@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_reg_read
LBB0_14:
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBGMSG
	add	x0, x19, #4
	bl	_dma_trm_reset
	mov	x0, x19
	bl	_dma_trm_reset
	b	LBB0_26
LBB0_15:
Lloh36:
	adrp	x8, _OHCI1394_LinkControlClear@GOTPAGE
Lloh37:
	ldr	x8, [x8, _OHCI1394_LinkControlClear@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x8, _OHCI1394_LinkControl_CycleTimerEnable@GOTPAGE
Lloh40:
	ldr	x8, [x8, _OHCI1394_LinkControl_CycleTimerEnable@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _OHCI1394_LinkControl_CycleMaster@GOTPAGE
Lloh43:
	ldr	x9, [x9, _OHCI1394_LinkControl_CycleMaster@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh45:
	adrp	x9, _OHCI1394_LinkControl_CycleSource@GOTPAGE
Lloh46:
	ldr	x9, [x9, _OHCI1394_LinkControl_CycleSource@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w2, w8, w9
LBB0_16:
	mov	x0, x19
	bl	_reg_write
	b	LBB0_26
LBB0_17:
	mov	x0, x19
	mov	w1, #1
	bl	_get_phy_reg
	tbnz	w0, #7, LBB0_20
; %bb.18:
	orr	w2, w0, #0x80
LBB0_19:
	mov	x0, x19
	mov	w1, #1
	bl	_set_phy_reg
LBB0_20:
	mov	x0, x19
	mov	w1, #5
	bl	_get_phy_reg
	orr	w2, w0, #0x40
	mov	x0, x19
	mov	w1, #5
	b	LBB0_25
LBB0_21:
	mov	x0, x19
	mov	w1, #1
	bl	_get_phy_reg
	orr	w2, w0, #0x40
	b	LBB0_24
LBB0_22:
	mov	x0, x19
	mov	w1, #1
	bl	_get_phy_reg
	and	w8, w0, #0xffffff3f
	orr	w2, w8, #0x40
	b	LBB0_24
LBB0_23:
	mov	x0, x19
	mov	w1, #1
	bl	_get_phy_reg
	orr	w2, w0, #0xc0
LBB0_24:
	mov	x0, x19
	mov	w1, #1
LBB0_25:
	bl	_set_phy_reg
LBB0_26:
	mov	w0, #0
LBB0_27:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_17-LBB0_5)>>2
	.byte	(LBB0_20-LBB0_5)>>2
	.byte	(LBB0_27-LBB0_5)>>2
	.byte	(LBB0_27-LBB0_5)>>2
	.byte	(LBB0_27-LBB0_5)>>2
	.byte	(LBB0_22-LBB0_5)>>2
	.byte	(LBB0_23-LBB0_5)>>2
	.byte	(LBB0_21-LBB0_5)>>2
                                        ; -- End function
	.comm	_OHCI1394_IsochronousCycleTimer,4,2 ; @OHCI1394_IsochronousCycleTimer
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"devctl command SET_BUS_ID err"

	.comm	_OHCI1394_NodeID,4,2            ; @OHCI1394_NodeID
l_.str.1:                               ; @.str.1
	.asciz	"Cycle master enabled"

	.comm	_OHCI1394_LinkControlSet,4,2    ; @OHCI1394_LinkControlSet
	.comm	_OHCI1394_LinkControl_CycleTimerEnable,4,2 ; @OHCI1394_LinkControl_CycleTimerEnable
	.comm	_OHCI1394_LinkControl_CycleMaster,4,2 ; @OHCI1394_LinkControl_CycleMaster
	.comm	_OHCI1394_LinkControlClear,4,2  ; @OHCI1394_LinkControlClear
	.comm	_OHCI1394_LinkControl_CycleSource,4,2 ; @OHCI1394_LinkControl_CycleSource
l_.str.2:                               ; @.str.2
	.asciz	"Cancel request received"

l_.str.3:                               ; @.str.3
	.asciz	"ohci_devctl cmd %d not implemented yet"

	.no_dead_strip	_ohci_devctl
.subsections_via_symbols
