	.file	"extr_feature.c_core99_firewire_cable_power.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	core99_firewire_cable_power, @function
core99_firewire_cable_power:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR pmac_mb[rip]
	test	DWORD PTR PMAC_MB_HAS_FW_POWER[rip], eax
	je	.L16
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdx
	mov	rdx, QWORD PTR macio_chips[rip]
	mov	rax, QWORD PTR [rdx]
	cmp	rax, QWORD PTR macio_keylargo[rip]
	je	.L4
	cmp	rax, QWORD PTR macio_pangea[rip]
	je	.L4
	cmp	rax, QWORD PTR macio_intrepid[rip]
	je	.L4
.L5:
	mov	rax, QWORD PTR ENODEV[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	rax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR 8[rdx]
	test	DWORD PTR MACIO_FLAG_FW_SUPPORTED[rip], eax
	je	.L5
	xor	edi, edi
	call	LOCK@PLT
	xor	esi, esi
	test	rbx, rbx
	jne	.L14
	mov	esi, 4
.L14:
	mov	edi, DWORD PTR KL_GPIO_FW_CABLE_POWER[rip]
	call	MACIO_OUT8@PLT
	mov	edi, DWORD PTR KL_GPIO_FW_CABLE_POWER[rip]
	call	MACIO_IN8@PLT
	mov	edi, 10
	call	udelay@PLT
	xor	edi, edi
	call	UNLOCK@PLT
	mov	edi, 1
	call	mdelay@PLT
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore 3
	mov	rax, QWORD PTR ENODEV[rip]
	neg	rax
	ret
	.cfi_endproc
.LFE0:
	.size	core99_firewire_cable_power, .-core99_firewire_cable_power
	.comm	pmac_mb,4,4
	.comm	macio_pangea,8,8
	.comm	macio_keylargo,8,8
	.comm	macio_intrepid,8,8
	.comm	macio_chips,8,8
	.comm	PMAC_MB_HAS_FW_POWER,4,4
	.comm	MACIO_FLAG_FW_SUPPORTED,4,4
	.comm	KL_GPIO_FW_CABLE_POWER,4,4
	.comm	ENODEV,8,8
	.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_feature.c_core99_firewire_cable_power.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	core99_firewire_cable_power, %function
core99_firewire_cable_power:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r1, .L17
	ldr	r3, .L17+4
	ldr	r1, [r1]
	ldr	r3, [r3]
	tst	r1, r3
	beq	.L16
	push	{r4, lr}
	mov	r4, r2
	ldr	r2, .L17+8
	ldr	r3, .L17+12
	ldr	r2, [r2]
	ldr	r1, [r3]
	ldr	r3, [r2]
	cmp	r3, r1
	beq	.L4
	ldr	r1, .L17+16
	ldr	r1, [r1]
	cmp	r3, r1
	beq	.L4
	ldr	r1, .L17+20
	ldr	r1, [r1]
	cmp	r3, r1
	beq	.L4
.L5:
	ldr	r3, .L17+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L4:
	ldr	r3, .L17+28
	ldr	r2, [r2, #4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L5
	mov	r0, #0
	bl	LOCK
	cmp	r4, #0
	ldr	r4, .L17+32
	movne	r1, #0
	moveq	r1, #4
	ldr	r0, [r4]
	bl	MACIO_OUT8
	ldr	r0, [r4]
	bl	MACIO_IN8
	mov	r0, #10
	bl	udelay
	mov	r0, #0
	bl	UNLOCK
	mov	r0, #1
	bl	mdelay
	mov	r0, #0
	pop	{r4, pc}
.L16:
	ldr	r3, .L17+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L18:
	.align	2
.L17:
	.word	pmac_mb
	.word	PMAC_MB_HAS_FW_POWER
	.word	macio_chips
	.word	macio_keylargo
	.word	macio_pangea
	.word	macio_intrepid
	.word	ENODEV
	.word	MACIO_FLAG_FW_SUPPORTED
	.word	KL_GPIO_FW_CABLE_POWER
	.size	core99_firewire_cable_power, .-core99_firewire_cable_power
	.comm	pmac_mb,4,4
	.comm	macio_pangea,4,4
	.comm	macio_keylargo,4,4
	.comm	macio_intrepid,4,4
	.comm	macio_chips,4,4
	.comm	PMAC_MB_HAS_FW_POWER,4,4
	.comm	MACIO_FLAG_FW_SUPPORTED,4,4
	.comm	KL_GPIO_FW_CABLE_POWER,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
