	.file	"extr_fwohci.c_fwohci_ioctl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	fwohci_ioctl
	.type	fwohci_ioctl, @function
fwohci_ioctl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	call	DEV2UNIT@PLT
	mov	edi, DWORD PTR firewire_devclass[rip]
	mov	esi, eax
	call	devclass_get_softc@PLT
	test	rax, rax
	je	.L5
	test	rbx, rbx
	je	.L5
	lea	esi, -128[rbp]
	mov	r12, QWORD PTR [rax]
	cmp	esi, 4
	ja	.L5
	lea	rdx, .L7[rip]
	movsx	rax, DWORD PTR [rdx+rsi*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L7:
	.long	.L11-.L7
	.long	.L10-.L7
	.long	.L9-.L7
	.long	.L8-.L7
	.long	.L6-.L7
	.text
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR 8[rbx]
	cmp	esi, 2048
	jle	.L17
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR EINVAL[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR 8[rbx]
	cmp	esi, 15
	jg	.L5
	mov	rdi, r12
	call	fwphy_rddata@PLT
	mov	QWORD PTR [rbx], rax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR [rbx]
	cmp	esi, DWORD PTR OHCI_MAX_DMA_CH[rip]
	jg	.L5
	mov	rdi, r12
	call	dump_dma@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r12
	call	dump_db@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, DWORD PTR 8[rbx]
	cmp	esi, 15
	jg	.L5
	mov	rdx, QWORD PTR [rbx]
	mov	rdi, r12
	call	fwphy_wrdata@PLT
	mov	QWORD PTR [rbx], rax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR 8[rbx]
	cmp	esi, 2048
	jg	.L5
	mov	rdi, r12
	call	OREAD@PLT
	mov	QWORD PTR [rbx], rax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdx, QWORD PTR [rbx]
	mov	rdi, r12
	call	OWRITE@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, r12
	call	OREAD@PLT
	mov	QWORD PTR [rbx], rax
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	fwohci_ioctl, .-fwohci_ioctl
	.comm	firewire_devclass,4,4
	.comm	OHCI_MAX_REG,4,4
	.comm	OHCI_MAX_PHY_REG,4,4
	.comm	OHCI_MAX_DMA_CH,4,4
	.comm	EINVAL,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_fwohci.c_fwohci_ioctl.c"
	.text
	.align	2
	.global	fwohci_ioctl
	.syntax unified
	.arm
	.fpu softvfp
	.type	fwohci_ioctl, %function
fwohci_ioctl:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r2
	bl	DEV2UNIT
	ldr	r3, .L18
	mov	r1, r0
	ldr	r0, [r3]
	bl	devclass_get_softc
	cmp	r0, #0
	beq	.L5
	cmp	r5, #0
	beq	.L5
	sub	r1, r4, #128
	ldr	r4, [r0]
	cmp	r1, #4
	ldrls	pc, [pc, r1, asl #2]
	b	.L5
.L7:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L11:
	ldr	r1, [r5, #4]
	cmp	r1, #2048
	ble	.L17
.L5:
	ldr	r3, .L18+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, .L18+8
	ldr	r1, [r5]
	ldr	r3, [r3]
	cmp	r1, r3
	bgt	.L5
	mov	r0, r4
	bl	dump_dma
	mov	r0, r4
	ldr	r1, [r5]
	bl	dump_db
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r1, [r5, #4]
	cmp	r1, #15
	bgt	.L5
	mov	r0, r4
	ldr	r2, [r5]
	bl	fwphy_wrdata
	mov	r3, r0
	mov	r0, #0
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r1, [r5, #4]
	cmp	r1, #2048
	bgt	.L5
	mov	r0, r4
	bl	OREAD
	mov	r3, r0
	mov	r0, #0
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r1, [r5, #4]
	cmp	r1, #15
	bgt	.L5
	mov	r0, r4
	bl	fwphy_rddata
	mov	r3, r0
	mov	r0, #0
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L17:
	ldr	r2, [r5]
	mov	r0, r4
	bl	OWRITE
	mov	r0, r4
	ldr	r1, [r5, #4]
	bl	OREAD
	mov	r3, r0
	mov	r0, #0
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L19:
	.align	2
.L18:
	.word	firewire_devclass
	.word	EINVAL
	.word	OHCI_MAX_DMA_CH
	.size	fwohci_ioctl, .-fwohci_ioctl
	.comm	firewire_devclass,4,4
	.comm	OHCI_MAX_REG,4,4
	.comm	OHCI_MAX_PHY_REG,4,4
	.comm	OHCI_MAX_DMA_CH,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
