	.file	"extr_ips_commands.c_ips_read_nvram_callback.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ips: error = %d in ips_read_nvram_callback\n"
	.text
	.p2align 4
	.type	ips_read_nvram_callback, @function
ips_read_nvram_callback:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	ecx, ecx
	jne	.L6
	mov	rax, QWORD PTR 16[rdi]
	mov	edx, DWORD PTR IPS_RW_NVRAM_CMD[rip]
	mov	r12, QWORD PTR 24[rdi]
	mov	DWORD PTR 20[rax], edx
	mov	edx, DWORD PTR 12[rdi]
	mov	DWORD PTR [rax], 5
	mov	DWORD PTR 16[rax], edx
	mov	edx, DWORD PTR [rsi]
	mov	QWORD PTR 8[rax], 0
	mov	esi, DWORD PTR 8[rdi]
	mov	DWORD PTR 4[rax], edx
	mov	edi, DWORD PTR 16[r12]
	mov	edx, DWORD PTR BUS_DMASYNC_PREWRITE[rip]
	call	bus_dmamap_sync@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR BUS_DMASYNC_PREREAD[rip]
	call	bus_dmamap_sync@PLT
	mov	rdi, rbp
	call	[QWORD PTR 8[r12]]
	imul	esi, DWORD PTR hz[rip], 30
	mov	rdi, r12
	call	sema_timedwait@PLT
	test	rax, rax
	jne	.L7
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR BUS_DMASYNC_POSTWRITE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	bus_dmamap_sync@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR ETIMEDOUT[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	ips_set_error@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, ecx
	mov	r12d, ecx
	call	ips_set_error@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	esi, r12d
	lea	rdi, .LC0[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	printf@PLT
	.cfi_endproc
.LFE0:
	.size	ips_read_nvram_callback, .-ips_read_nvram_callback
	.comm	hz,4,4
	.comm	IPS_RW_NVRAM_CMD,4,4
	.comm	ETIMEDOUT,4,4
	.comm	BUS_DMASYNC_PREWRITE,4,4
	.comm	BUS_DMASYNC_PREREAD,4,4
	.comm	BUS_DMASYNC_POSTWRITE,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_ips_commands.c_ips_read_nvram_callback.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ips: error = %d in ips_read_nvram_callback\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ips_read_nvram_callback, %function
ips_read_nvram_callback:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r5, r3, #0
	bne	.L6
	mov	r4, r0
	mov	r0, #5
	ldr	r2, [r4, #16]
	ldr	r3, [r4, #12]
	ldr	lr, .L8
	ldr	ip, [r1]
	ldr	r6, [r4, #20]
	ldr	r1, [lr]
	str	r3, [r2, #12]
	ldr	r3, .L8+4
	str	ip, [r2, #4]
	str	r1, [r2, #16]
	str	r0, [r2]
	ldr	r1, [r4, #8]
	str	r5, [r2, #8]
	ldr	r0, [r6, #8]
	ldr	r2, [r3]
	bl	bus_dmamap_sync
	ldr	r3, .L8+8
	ldr	r1, [r4]
	ldr	r2, [r3]
	ldr	r0, [r4, #4]
	bl	bus_dmamap_sync
	ldr	r3, [r6, #4]
	mov	r0, r4
	blx	r3
	ldr	r3, .L8+12
	mov	r0, r6
	ldr	r1, [r3]
	rsb	r1, r1, r1, lsl #4
	lsl	r1, r1, #1
	bl	sema_timedwait
	cmp	r0, #0
	bne	.L7
	ldr	r3, .L8+16
	ldr	r1, [r4]
	ldr	r0, [r4, #4]
	ldr	r2, [r3]
	pop	{r4, r5, r6, lr}
	b	bus_dmamap_sync
.L7:
	ldr	r3, .L8+20
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	ldr	r1, [r3]
	b	ips_set_error
.L6:
	mov	r1, r5
	bl	ips_set_error
	mov	r1, r5
	pop	{r4, r5, r6, lr}
	ldr	r0, .L8+24
	b	printf
.L9:
	.align	2
.L8:
	.word	IPS_RW_NVRAM_CMD
	.word	BUS_DMASYNC_PREWRITE
	.word	BUS_DMASYNC_PREREAD
	.word	hz
	.word	BUS_DMASYNC_POSTWRITE
	.word	ETIMEDOUT
	.word	.LC0
	.size	ips_read_nvram_callback, .-ips_read_nvram_callback
	.comm	hz,4,4
	.comm	IPS_RW_NVRAM_CMD,4,4
	.comm	ETIMEDOUT,4,4
	.comm	BUS_DMASYNC_PREWRITE,4,4
	.comm	BUS_DMASYNC_PREREAD,4,4
	.comm	BUS_DMASYNC_POSTWRITE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
