	.file	"extr_meson-gxl.c_meson_gxl_read_reg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	meson_gxl_read_reg, @function
meson_gxl_read_reg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	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, 8
	.cfi_def_cfa_offset 48
	call	meson_gxl_open_banks@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L5
.L2:
	mov	rdi, rbp
	call	meson_gxl_close_banks@PLT
	add	rsp, 8
	.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
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR TSTCNTL_REG_BANK_SEL[rip]
	mov	esi, r14d
	call	FIELD_PREP@PLT
	mov	r12d, DWORD PTR TSTCNTL_READ[rip]
	mov	edi, DWORD PTR TSTCNTL_READ_ADDRESS[rip]
	mov	esi, r13d
	or	r12d, DWORD PTR TSTCNTL_TEST_MODE[rip]
	or	r12d, eax
	call	FIELD_PREP@PLT
	mov	edx, r12d
	mov	esi, DWORD PTR TSTCNTL[rip]
	mov	rdi, rbp
	or	edx, eax
	call	phy_write@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	mov	esi, DWORD PTR TSTREAD1[rip]
	mov	rdi, rbp
	call	phy_read@PLT
	mov	r12d, eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	meson_gxl_read_reg, .-meson_gxl_read_reg
	.comm	TSTREAD1,4,4
	.comm	TSTCNTL_TEST_MODE,4,4
	.comm	TSTCNTL_REG_BANK_SEL,4,4
	.comm	TSTCNTL_READ_ADDRESS,4,4
	.comm	TSTCNTL_READ,4,4
	.comm	TSTCNTL,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_meson-gxl.c_meson_gxl_read_reg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	meson_gxl_read_reg, %function
meson_gxl_read_reg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r7, r2
	mov	r5, r0
	bl	meson_gxl_open_banks
	subs	r4, r0, #0
	beq	.L5
.L2:
	mov	r0, r5
	bl	meson_gxl_close_banks
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r2, .L6
	ldr	r3, .L6+4
	mov	r1, r6
	ldr	r0, [r2]
	ldr	r6, [r3]
	bl	FIELD_PREP
	mov	r2, r0
	ldr	r1, .L6+8
	ldr	r3, .L6+12
	ldr	r4, [r1]
	ldr	r0, [r3]
	ldr	r3, .L6+16
	mov	r1, r7
	orr	r4, r4, r0
	ldr	r0, [r3]
	orr	r4, r4, r2
	bl	FIELD_PREP
	mov	r1, r6
	orr	r2, r4, r0
	mov	r0, r5
	bl	phy_write
	subs	r4, r0, #0
	bne	.L2
	ldr	r3, .L6+20
	mov	r0, r5
	ldr	r1, [r3]
	bl	phy_read
	mov	r4, r0
	b	.L2
.L7:
	.align	2
.L6:
	.word	TSTCNTL_REG_BANK_SEL
	.word	TSTCNTL
	.word	TSTCNTL_READ
	.word	TSTCNTL_TEST_MODE
	.word	TSTCNTL_READ_ADDRESS
	.word	TSTREAD1
	.size	meson_gxl_read_reg, .-meson_gxl_read_reg
	.comm	TSTREAD1,4,4
	.comm	TSTCNTL_TEST_MODE,4,4
	.comm	TSTCNTL_REG_BANK_SEL,4,4
	.comm	TSTCNTL_READ_ADDRESS,4,4
	.comm	TSTCNTL_READ,4,4
	.comm	TSTCNTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
