	.file	"260816.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"/dev/block/platform/msm_sdcc.1/by-name/misc"
.LC1:
	.string	"/data/misc/wifi/config"
.LC2:
	.string	"btc_mode=1\n"
.LC3:
	.string	"mpc=1\n"
.LC4:
	.string	"roam_off=0\n"
.LC5:
	.string	"roam_scan_period=10\n"
.LC6:
	.string	"roam_delta=20\n"
.LC7:
	.string	"roam_trigger=-80\n"
.LC8:
	.string	"PM=2\n"
.LC9:
	.string	"cur_etheraddr="
.LC10:
	.string	"%02x"
.LC11:
	.string	":"
.LC12:
	.string	"\n"
.LC13:
	.string	"/data/misc/bdaddr"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	edx, 420
	mov	esi, 577
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 11
	lea	rsi, .LC2[rip]
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 6
	lea	rsi, .LC3[rip]
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 11
	lea	rsi, .LC4[rip]
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 20
	lea	rsi, .LC5[rip]
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 14
	lea	rsi, .LC6[rip]
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 17
	lea	rsi, .LC7[rip]
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 5
	lea	rsi, .LC8[rip]
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 14
	lea	rsi, .LC9[rip]
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -24[rbp]
	lea	ecx, 12288[rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	lseek@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	lseek@PLT
	lea	rcx, -25[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	movzx	eax, BYTE PTR -25[rbp]
	movsx	edx, al
	lea	rax, -11[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rcx, -11[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	cmp	DWORD PTR -24[rbp], 5
	je	.L3
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 1
	lea	rsi, .LC11[rip]
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
.L3:
	add	DWORD PTR -24[rbp], 1
.L2:
	cmp	DWORD PTR -24[rbp], 5
	jle	.L4
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 1
	lea	rsi, .LC12[rip]
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	edx, 420
	mov	esi, 577
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -24[rbp]
	lea	ecx, 16384[rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	lseek@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	lseek@PLT
	lea	rcx, -25[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	movzx	eax, BYTE PTR -25[rbp]
	movsx	edx, al
	lea	rax, -11[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rcx, -11[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	cmp	DWORD PTR -24[rbp], 5
	je	.L6
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 1
	lea	rsi, .LC11[rip]
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
.L6:
	add	DWORD PTR -24[rbp], 1
.L5:
	cmp	DWORD PTR -24[rbp], 5
	jle	.L7
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"260816.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/block/platform/msm_sdcc.1/by-name/misc\000"
	.align	2
.LC1:
	.ascii	"/data/misc/wifi/config\000"
	.align	2
.LC2:
	.ascii	"btc_mode=1\012\000"
	.align	2
.LC3:
	.ascii	"mpc=1\012\000"
	.align	2
.LC4:
	.ascii	"roam_off=0\012\000"
	.align	2
.LC5:
	.ascii	"roam_scan_period=10\012\000"
	.align	2
.LC6:
	.ascii	"roam_delta=20\012\000"
	.align	2
.LC7:
	.ascii	"roam_trigger=-80\012\000"
	.align	2
.LC8:
	.ascii	"PM=2\012\000"
	.align	2
.LC9:
	.ascii	"cur_etheraddr=\000"
	.align	2
.LC10:
	.ascii	"%02x\000"
	.align	2
.LC11:
	.ascii	":\000"
	.align	2
.LC12:
	.ascii	"\012\000"
	.align	2
.LC13:
	.ascii	"/data/misc/bdaddr\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, .L10+4
	bl	open
	str	r0, [fp, #-20]
	mov	r2, #420
	ldr	r1, .L10+8
	ldr	r0, .L10+12
	bl	open
	str	r0, [fp, #-16]
	mov	r2, #11
	ldr	r1, .L10+16
	ldr	r0, [fp, #-16]
	bl	write
	mov	r2, #6
	ldr	r1, .L10+20
	ldr	r0, [fp, #-16]
	bl	write
	mov	r2, #11
	ldr	r1, .L10+24
	ldr	r0, [fp, #-16]
	bl	write
	mov	r2, #20
	ldr	r1, .L10+28
	ldr	r0, [fp, #-16]
	bl	write
	mov	r2, #14
	ldr	r1, .L10+32
	ldr	r0, [fp, #-16]
	bl	write
	mov	r2, #17
	ldr	r1, .L10+36
	ldr	r0, [fp, #-16]
	bl	write
	mov	r2, #5
	ldr	r1, .L10+40
	ldr	r0, [fp, #-16]
	bl	write
	mov	r2, #14
	ldr	r1, .L10+44
	ldr	r0, [fp, #-16]
	bl	write
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L2
.L4:
	ldr	r3, [fp, #-24]
	add	r3, r3, #12288
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	lseek
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	lseek
	sub	r3, fp, #25
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	read
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #12
	ldr	r1, .L10+48
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #12
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	write
	ldr	r3, [fp, #-24]
	cmp	r3, #5
	beq	.L3
	mov	r2, #1
	ldr	r1, .L10+52
	ldr	r0, [fp, #-16]
	bl	write
.L3:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #5
	ble	.L4
	mov	r2, #1
	ldr	r1, .L10+56
	ldr	r0, [fp, #-16]
	bl	write
	ldr	r0, [fp, #-16]
	bl	close
	mov	r2, #420
	ldr	r1, .L10+8
	ldr	r0, .L10+60
	bl	open
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L5
.L7:
	ldr	r3, [fp, #-24]
	add	r3, r3, #16384
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	lseek
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	lseek
	sub	r3, fp, #25
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	read
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #12
	ldr	r1, .L10+48
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #12
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	write
	ldr	r3, [fp, #-24]
	cmp	r3, #5
	beq	.L6
	mov	r2, #1
	ldr	r1, .L10+52
	ldr	r0, [fp, #-16]
	bl	write
.L6:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L5:
	ldr	r3, [fp, #-24]
	cmp	r3, #5
	ble	.L7
	ldr	r0, [fp, #-16]
	bl	close
	ldr	r0, [fp, #-20]
	bl	close
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC14
	.word	.LC0
	.word	577
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
