	.file	"extr_pci_clp.c_clp_enable_fh.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ena fid:%x, fh:%x, rc:%d\n"
.LC1:
	.string	"ena mio fid:%x, fh:%x, rc:%d\n"
	.text
	.p2align 4
	.globl	clp_enable_fh
	.type	clp_enable_fh, @function
clp_enable_fh:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR CLP_SET_ENABLE_PCI_FN[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r14, 4[rsp]
	mov	eax, DWORD PTR 4[rdi]
	mov	rdi, r14
	mov	DWORD PTR 4[rsp], eax
	call	clp_set_pci_fn@PLT
	mov	ecx, DWORD PTR 4[rsp]
	mov	edx, DWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	mov	r12d, eax
	mov	r8d, eax
	mov	edi, 3
	call	zpci_dbg@PLT
	test	r12d, r12d
	je	.L12
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[rsp]
	mov	rdi, rbp
	mov	DWORD PTR 4[rbp], eax
	call	zpci_use_mio@PLT
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR CLP_SET_ENABLE_MIO[rip]
	mov	esi, r13d
	mov	rdi, r14
	call	clp_set_pci_fn@PLT
	mov	ecx, DWORD PTR 4[rsp]
	mov	edx, DWORD PTR 0[rbp]
	lea	rsi, .LC1[rip]
	mov	r12d, eax
	mov	r8d, eax
	mov	edi, 3
	call	zpci_dbg@PLT
	test	r12d, r12d
	je	.L1
.L2:
	endbr64
	mov	rdi, rbp
	call	clp_disable_fh@PLT
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	clp_enable_fh, .-clp_enable_fh
	.comm	CLP_SET_ENABLE_PCI_FN,4,4
	.comm	CLP_SET_ENABLE_MIO,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_pci_clp.c_clp_enable_fh.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ena fid:%x, fh:%x, rc:%d\012\000"
	.align	2
.LC1:
	.ascii	"ena mio fid:%x, fh:%x, rc:%d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	clp_enable_fh
	.syntax unified
	.arm
	.fpu softvfp
	.type	clp_enable_fh, %function
clp_enable_fh:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r2, .L14
	sub	sp, sp, #16
	ldr	r3, [r0, #4]
	ldr	ip, .L14+4
	mov	r5, r0
	ldr	r2, [r2]
	add	r0, sp, #8
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	mov	r6, r1
	str	r3, [sp, #8]
	bl	clp_set_pci_fn
	mov	r4, r0
	ldr	r2, [r5]
	ldr	r3, [sp, #8]
	str	r0, [sp]
	ldr	r1, .L14+8
	mov	r0, #3
	bl	zpci_dbg
	cmp	r4, #0
	beq	.L12
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, [sp, #8]
	mov	r0, r5
	str	r3, [r5, #4]
	bl	zpci_use_mio
	subs	r4, r0, #0
	beq	.L1
	ldr	r3, .L14+12
	mov	r1, r6
	ldr	r2, [r3]
	add	r0, sp, #8
	bl	clp_set_pci_fn
	mov	r4, r0
	str	r0, [sp]
	ldr	r3, [sp, #8]
	mov	r0, #3
	ldr	r2, [r5]
	ldr	r1, .L14+16
	bl	zpci_dbg
	cmp	r4, #0
	beq	.L1
.L2:
	mov	r0, r5
	bl	clp_disable_fh
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	CLP_SET_ENABLE_PCI_FN
	.word	.LC2
	.word	.LC0
	.word	CLP_SET_ENABLE_MIO
	.word	.LC1
	.size	clp_enable_fh, .-clp_enable_fh
	.comm	CLP_SET_ENABLE_PCI_FN,4,4
	.comm	CLP_SET_ENABLE_MIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
