	.file	"extr_ohci1394.c_ohci_devctl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"devctl command SET_BUS_ID err"
.LC1:
	.string	"Cycle master enabled"
.LC2:
	.string	"Cancel request received"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"ohci_devctl cmd %d not implemented yet"
	.text
	.p2align 4
	.type	ohci_devctl, @function
ohci_devctl:
.LFB0:
	.cfi_startproc
	endbr64
	lea	eax, -131[rsi]
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, QWORD PTR [rdi]
	cmp	eax, 8
	ja	.L2
	lea	rcx, .L4[rip]
	movsx	rax, DWORD PTR [rcx+rax*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L2-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L7:
	add	edx, -128
	cmp	edx, 8
	ja	.L21
	lea	rcx, .L12[rip]
	movsx	rax, DWORD PTR [rcx+rdx*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L12:
	.long	.L17-.L12
	.long	.L16-.L12
	.long	.L19-.L12
	.long	.L21-.L12
	.long	.L21-.L12
	.long	.L21-.L12
	.long	.L14-.L12
	.long	.L13-.L12
	.long	.L11-.L12
	.text
.L21:
	mov	eax, -1
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	mov	esi, 1
	mov	rdi, rbp
	call	get_phy_reg@PLT
	test	al, -128
	jne	.L19
	or	al, -128
	mov	esi, 1
	mov	rdi, rbp
	mov	edx, eax
	call	set_phy_reg@PLT
.L19:
	mov	rdi, rbp
	mov	esi, 5
	call	get_phy_reg@PLT
	mov	rdi, rbp
	mov	esi, 5
	or	eax, 64
	mov	edx, eax
	call	set_phy_reg@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR KERN_ERR[rip]
	mov	edx, esi
	lea	rsi, .LC3[rip]
	call	PRINT_G@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR OHCI1394_IsochronousCycleTimer[rip]
	mov	rdi, rbp
	call	reg_write@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR KERN_ERR[rip]
	lea	rsi, .LC0[rip]
	call	PRINT@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR OHCI1394_IsochronousCycleTimer[rip]
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	reg_read@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	call	DBGMSG@PLT
	lea	rdi, 4[rbp]
	call	dma_trm_reset@PLT
	mov	rdi, rbp
	call	dma_trm_reset@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	test	edx, edx
	je	.L20
	mov	esi, DWORD PTR OHCI1394_NodeID[rip]
	mov	rdi, rbp
	call	reg_read@PLT
	mov	edx, eax
	and	eax, 1073741824
	je	.L1
	mov	eax, edx
	and	eax, 63
	je	.L1
	lea	rdi, .LC1[rip]
	call	DBGMSG@PLT
	mov	esi, DWORD PTR OHCI1394_LinkControlSet[rip]
	mov	edx, DWORD PTR OHCI1394_LinkControl_CycleTimerEnable[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR OHCI1394_LinkControl_CycleMaster[rip]
	call	reg_write@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	esi, DWORD PTR OHCI1394_LinkControlClear[rip]
	mov	edx, DWORD PTR OHCI1394_LinkControl_CycleTimerEnable[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR OHCI1394_LinkControl_CycleMaster[rip]
	or	edx, DWORD PTR OHCI1394_LinkControl_CycleSource[rip]
	call	reg_write@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	mov	rdi, rbp
	mov	esi, 1
	call	get_phy_reg@PLT
	mov	rdi, rbp
	mov	esi, 1
	and	al, 127
	mov	edx, eax
	or	edx, 64
	call	set_phy_reg@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	mov	esi, 1
	mov	rdi, rbp
	call	get_phy_reg@PLT
	test	al, -128
	je	.L19
	and	al, 127
	mov	esi, 1
	mov	rdi, rbp
	mov	edx, eax
	call	set_phy_reg@PLT
	jmp	.L19
.L11:
	mov	esi, 1
	mov	rdi, rbp
	call	get_phy_reg@PLT
	or	eax, 64
.L32:
	mov	rdi, rbp
	mov	edx, eax
	mov	esi, 1
	call	set_phy_reg@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	mov	esi, 1
	mov	rdi, rbp
	call	get_phy_reg@PLT
	or	al, -64
	jmp	.L32
	.cfi_endproc
.LFE0:
	.size	ohci_devctl, .-ohci_devctl
	.comm	OHCI1394_NodeID,4,4
	.comm	OHCI1394_LinkControl_CycleTimerEnable,4,4
	.comm	OHCI1394_LinkControl_CycleSource,4,4
	.comm	OHCI1394_LinkControl_CycleMaster,4,4
	.comm	OHCI1394_LinkControlSet,4,4
	.comm	OHCI1394_LinkControlClear,4,4
	.comm	OHCI1394_IsochronousCycleTimer,4,4
	.comm	KERN_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ohci1394.c_ohci_devctl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"devctl command SET_BUS_ID err\000"
	.align	2
.LC1:
	.ascii	"Cycle master enabled\000"
	.align	2
.LC2:
	.ascii	"Cancel request received\000"
	.align	2
.LC3:
	.ascii	"ohci_devctl cmd %d not implemented yet\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ohci_devctl, %function
ohci_devctl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	sub	r3, r1, #131
	push	{r4, r5, r6, lr}
	mov	r4, r2
	ldr	r5, [r0]
	cmp	r3, #8
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L6
	.word	.L5
	.word	.L3
.L7:
	sub	r2, r2, #128
	cmp	r2, #8
	ldrls	pc, [pc, r2, asl #2]
	b	.L21
.L12:
	.word	.L17
	.word	.L16
	.word	.L19
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L14
	.word	.L13
	.word	.L11
.L21:
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L16:
	mov	r1, #1
	mov	r0, r5
	bl	get_phy_reg
	tst	r0, #128
	bne	.L19
	orr	r2, r0, #128
	mov	r1, #1
	mov	r0, r5
	bl	set_phy_reg
.L19:
	mov	r1, #5
	mov	r0, r5
	bl	get_phy_reg
	mov	r1, #5
	orr	r2, r0, #64
	mov	r0, r5
	bl	set_phy_reg
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L33
	mov	r2, r1
	ldr	r0, [r3]
	ldr	r1, .L33+4
	bl	PRINT_G
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L33+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	reg_write
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L33
	ldr	r1, .L33+12
	ldr	r0, [r3]
	bl	PRINT
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, .L33+8
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	ldr	r1, [r3]
	b	reg_read
.L5:
	ldr	r0, .L33+16
	bl	DBGMSG
	add	r0, r5, #4
	bl	dma_trm_reset
	mov	r0, r5
	bl	dma_trm_reset
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L3:
	cmp	r2, #0
	beq	.L20
	ldr	r3, .L33+20
	mov	r0, r5
	ldr	r1, [r3]
	bl	reg_read
	mov	r3, r0
	ands	r0, r0, #1073741824
	popeq	{r4, r5, r6, pc}
	ands	r0, r3, #63
	popeq	{r4, r5, r6, pc}
	ldr	r0, .L33+24
	bl	DBGMSG
	ldr	r2, .L33+28
	ldr	r3, .L33+32
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L33+36
	orr	r2, r1, r2
	mov	r0, r5
	ldr	r1, [r3]
	bl	reg_write
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L20:
	ldr	r1, .L33+32
	ldr	r3, .L33+28
	ldr	r2, .L33+40
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L33+44
	orr	r3, r3, r0
	ldr	r1, [r1]
	mov	r0, r5
	orr	r2, r3, r2
	bl	reg_write
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L14:
	mov	r1, #1
	mov	r0, r5
	bl	get_phy_reg
	bic	r2, r0, #128
	mov	r1, #1
	mov	r0, r5
	orr	r2, r2, #64
	bl	set_phy_reg
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L17:
	mov	r1, #1
	mov	r0, r5
	bl	get_phy_reg
	tst	r0, #128
	beq	.L19
	bic	r2, r0, #128
	mov	r1, #1
	mov	r0, r5
	bl	set_phy_reg
	b	.L19
.L11:
	mov	r1, #1
	mov	r0, r5
	bl	get_phy_reg
	mov	r1, #1
	orr	r2, r0, #64
	mov	r0, r5
	bl	set_phy_reg
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L13:
	mov	r1, #1
	mov	r0, r5
	bl	get_phy_reg
	mov	r1, #1
	orr	r2, r0, #192
	mov	r0, r5
	bl	set_phy_reg
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L34:
	.align	2
.L33:
	.word	KERN_ERR
	.word	.LC3
	.word	OHCI1394_IsochronousCycleTimer
	.word	.LC0
	.word	.LC2
	.word	OHCI1394_NodeID
	.word	.LC1
	.word	OHCI1394_LinkControl_CycleTimerEnable
	.word	OHCI1394_LinkControl_CycleMaster
	.word	OHCI1394_LinkControlSet
	.word	OHCI1394_LinkControl_CycleSource
	.word	OHCI1394_LinkControlClear
	.size	ohci_devctl, .-ohci_devctl
	.comm	OHCI1394_NodeID,4,4
	.comm	OHCI1394_LinkControl_CycleTimerEnable,4,4
	.comm	OHCI1394_LinkControl_CycleSource,4,4
	.comm	OHCI1394_LinkControl_CycleMaster,4,4
	.comm	OHCI1394_LinkControlSet,4,4
	.comm	OHCI1394_LinkControlClear,4,4
	.comm	OHCI1394_IsochronousCycleTimer,4,4
	.comm	KERN_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
