	.file	"extr_athprom.c_eewrite.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ioctl: %s"
	.text
	.p2align 4
	.type	eewrite, @function
eewrite:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 40
	.cfi_def_cfa_offset 48
	lea	rdx, atd[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 8[rsp], rdi
	mov	eax, DWORD PTR HAL_DIAG_EEWRITE[rip]
	mov	edi, DWORD PTR s[rip]
	or	eax, DWORD PTR ATH_DIAG_IN[rip]
	mov	QWORD PTR [rsp], rsi
	mov	esi, DWORD PTR SIOCGATHDIAG[rip]
	mov	DWORD PTR atd[rip], eax
	mov	rax, rsp
	mov	DWORD PTR atd[rip+4], 16
	mov	QWORD PTR atd[rip+32], rax
	mov	QWORD PTR atd[rip+24], 0
	mov	QWORD PTR atd[rip+16], 0
	call	ioctl@PLT
	test	rax, rax
	js	.L6
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edx, DWORD PTR atd[rip+8]
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	eewrite, .-eewrite
	.comm	s,4,4
	.comm	atd,40,32
	.comm	SIOCGATHDIAG,4,4
	.comm	HAL_DIAG_EEWRITE,4,4
	.comm	ATH_DIAG_IN,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_athprom.c_eewrite.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ioctl: %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	eewrite, %function
eewrite:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	lr, r1
	mov	r2, #8
	mov	ip, #0
	ldr	r3, .L8
	ldr	r1, .L8+4
	ldr	r3, [r3]
	ldr	r1, [r1]
	sub	sp, sp, #20
	ldr	r4, .L8+8
	orr	r3, r3, r1
	str	r0, [sp, #8]
	str	lr, [sp, #4]
	ldr	r1, .L8+12
	ldr	lr, .L8+16
	ldr	r0, .L8+20
	ldr	lr, [lr]
	str	lr, [sp, #12]
	mov	lr,#0
	ldr	r1, [r1]
	str	r3, [r4]
	str	r2, [r4, #4]
	add	r3, sp, #4
	mov	r2, r4
	ldr	r0, [r0]
	str	r3, [r4, #20]
	str	ip, [r4, #16]
	str	ip, [r4, #12]
	bl	ioctl
	cmp	r0, #0
	blt	.L6
.L1:
	ldr	r3, .L8+16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L6:
	ldr	r2, [r4, #8]
	ldr	r1, .L8+24
	mov	r0, #1
	bl	err
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	HAL_DIAG_EEWRITE
	.word	ATH_DIAG_IN
	.word	atd
	.word	SIOCGATHDIAG
	.word	.LC1
	.word	s
	.word	.LC0
	.size	eewrite, .-eewrite
	.comm	s,4,4
	.comm	atd,24,4
	.comm	SIOCGATHDIAG,4,4
	.comm	HAL_DIAG_EEWRITE,4,4
	.comm	ATH_DIAG_IN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
