	.file	"extr_cn23xx_pf_device.c_lio_cn23xx_pf_bar1_idx_setup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lio_cn23xx_pf_bar1_idx_setup, @function
lio_cn23xx_pf_bar1_idx_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR [rdi]
	test	ecx, ecx
	je	.L7
	mov	ebx, esi
	mov	esi, edx
	call	LIO_CN23XX_PEM_BAR1_INDEX_REG@PLT
	sar	ebx, 22
	mov	esi, ebx
	mov	edx, eax
	sal	esi, 4
	or	esi, DWORD PTR LIO_PCI_BAR1_MASK[rip]
.L5:
	mov	rdi, rbp
	call	lio_pci_writeq@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, r12d
	call	LIO_CN23XX_PEM_BAR1_INDEX_REG@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	lio_pci_readq@PLT
	mov	DWORD PTR 12[rsp], eax
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L7:
	.cfi_restore_state
	mov	esi, edx
	call	LIO_CN23XX_PEM_BAR1_INDEX_REG@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	lio_pci_readq@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, r12d
	mov	DWORD PTR 12[rsp], eax
	call	LIO_CN23XX_PEM_BAR1_INDEX_REG@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	edx, eax
	and	esi, -2
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	lio_cn23xx_pf_bar1_idx_setup, .-lio_cn23xx_pf_bar1_idx_setup
	.comm	LIO_PCI_BAR1_MASK,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_cn23xx_pf_device.c_lio_cn23xx_pf_bar1_idx_setup.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lio_cn23xx_pf_bar1_idx_setup, %function
lio_cn23xx_pf_bar1_idx_setup:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	mov	r4, r0
	mov	r5, r2
	ldr	r0, [r0]
	sub	sp, sp, #8
	beq	.L7
	ldr	r3, .L8
	asr	r1, r1, #22
	ldr	r6, [r3]
	orr	r6, r6, r1, lsl #4
	mov	r1, r2
	bl	LIO_CN23XX_PEM_BAR1_INDEX_REG
	mov	r1, r6
	mov	r2, r0
.L5:
	mov	r0, r4
	bl	lio_pci_writeq
	mov	r1, r5
	ldr	r0, [r4]
	bl	LIO_CN23XX_PEM_BAR1_INDEX_REG
	mov	r1, r0
	mov	r0, r4
	bl	lio_pci_readq
	str	r0, [sp, #4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	mov	r1, r2
	bl	LIO_CN23XX_PEM_BAR1_INDEX_REG
	mov	r1, r0
	mov	r0, r4
	bl	lio_pci_readq
	mov	r1, r5
	str	r0, [sp, #4]
	ldr	r0, [r4]
	ldr	r6, [sp, #4]
	bl	LIO_CN23XX_PEM_BAR1_INDEX_REG
	bic	r1, r6, #1
	mov	r2, r0
	b	.L5
.L9:
	.align	2
.L8:
	.word	LIO_PCI_BAR1_MASK
	.size	lio_cn23xx_pf_bar1_idx_setup, .-lio_cn23xx_pf_bar1_idx_setup
	.comm	LIO_PCI_BAR1_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
