	.file	"extr_niu.c_esr_write_glue0.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	esr_write_glue0, @function
esr_write_glue0:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edx
	call	ESR_GLUE_CTRL0_L@PLT
	mov	esi, DWORD PTR 0[rbp]
	movzx	r8d, bx
	mov	rdi, rbp
	mov	edx, DWORD PTR NIU_ESR_DEV_ADDR[rip]
	mov	ecx, eax
	call	mdio_write@PLT
	test	eax, eax
	je	.L5
	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
.L5:
	.cfi_restore_state
	mov	rdi, r12
	sar	ebx, 16
	call	ESR_GLUE_CTRL0_H@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	r8d, ebx
	mov	rdi, rbp
	mov	edx, DWORD PTR NIU_ESR_DEV_ADDR[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	ecx, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	mdio_write@PLT
	.cfi_endproc
.LFE0:
	.size	esr_write_glue0, .-esr_write_glue0
	.comm	NIU_ESR_DEV_ADDR,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_niu.c_esr_write_glue0.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	esr_write_glue0, %function
esr_write_glue0:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	mov	r5, r2
	ldr	r7, .L6
	sub	sp, sp, #12
	mov	r0, r1
	mov	r6, r1
	ldr	r9, [r4]
	ldr	r8, [r7]
	bl	ESR_GLUE_CTRL0_L
	lsl	ip, r5, #16
	lsr	ip, ip, #16
	mov	r3, r0
	mov	r1, r9
	mov	r2, r8
	mov	r0, r4
	str	ip, [sp]
	bl	mdio_write
	cmp	r0, #0
	beq	.L5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	mov	r0, r6
	ldr	r7, [r7]
	ldr	r6, [r4]
	bl	ESR_GLUE_CTRL0_H
	asr	r5, r5, #16
	mov	r3, r0
	mov	r2, r7
	mov	r1, r6
	mov	r0, r4
	str	r5, [sp]
	bl	mdio_write
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	.align	2
.L6:
	.word	NIU_ESR_DEV_ADDR
	.size	esr_write_glue0, .-esr_write_glue0
	.comm	NIU_ESR_DEV_ADDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
