	.file	"34512236.c"
	.intel_syntax noprefix
	.text
	.data
	.type	no_fake_hwaddr, @object
	.size	no_fake_hwaddr, 1
no_fake_hwaddr:
	.byte	1
	.local	hwaddr
	.comm	hwaddr,6,1
	.local	glibc_ioctl
	.comm	glibc_ioctl,8,8
	.section	.rodata
.LC0:
	.string	"ioctl"
.LC1:
	.string	"FAKE_HWADDR"
	.align 8
.LC2:
	.string	"%2hhx:%2hhx:%2hhx:%2hhx:%2hhx:%2hhx"
	.align 8
.LC3:
	.string	"%2hhx-%2hhx-%2hhx-%2hhx-%2hhx-%2hhx"
.LC4:
	.string	"FAKE_HWADDR format error!"
	.text
	.type	init, @function
init:
.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, 16
	lea	rsi, .LC0[rip]
	mov	rdi, -1
	call	dlsym@PLT
	mov	QWORD PTR glibc_ioctl[rip], rax
	lea	rdi, .LC1[rip]
	call	getenv@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L5
	lea	rsi, hwaddr[rip+5]
	lea	rcx, hwaddr[rip+4]
	lea	r8, hwaddr[rip+3]
	lea	rdi, hwaddr[rip+2]
	lea	rdx, hwaddr[rip+1]
	mov	rax, QWORD PTR -8[rbp]
	push	rsi
	push	rcx
	mov	r9, r8
	mov	r8, rdi
	mov	rcx, rdx
	lea	rdx, hwaddr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	add	rsp, 16
	cmp	eax, 6
	je	.L3
	lea	rsi, hwaddr[rip+5]
	lea	rcx, hwaddr[rip+4]
	lea	r8, hwaddr[rip+3]
	lea	rdi, hwaddr[rip+2]
	lea	rdx, hwaddr[rip+1]
	mov	rax, QWORD PTR -8[rbp]
	push	rsi
	push	rcx
	mov	r9, r8
	mov	r8, rdi
	mov	rcx, rdx
	lea	rdx, hwaddr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	add	rsp, 16
	cmp	eax, 6
	jne	.L4
.L3:
	mov	BYTE PTR no_fake_hwaddr[rip], 0
	jmp	.L5
.L4:
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L5:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init, .-init
	.section	.init_array,"aw"
	.align 8
	.quad	init
	.text
	.globl	ioctl
	.type	ioctl, @function
ioctl:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	cmp	QWORD PTR -32[rbp], 35111
	jne	.L7
	movzx	eax, BYTE PTR no_fake_hwaddr[rip]
	test	al, al
	je	.L8
.L7:
	mov	r8, QWORD PTR glibc_ioctl[rip]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	r8
	jmp	.L9
.L8:
	mov	rcx, QWORD PTR glibc_ioctl[rip]
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 35111
	mov	edi, eax
	call	rcx
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	je	.L10
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR 16[rax]
	cmp	ax, 1
	jne	.L10
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 18
	mov	edx, DWORD PTR hwaddr[rip]
	mov	DWORD PTR [rax], edx
	movzx	edx, WORD PTR hwaddr[rip+4]
	mov	WORD PTR 4[rax], dx
.L10:
	mov	eax, DWORD PTR -4[rbp]
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ioctl, .-ioctl
	.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	"34512236.c"
	.text
	.data
	.type	no_fake_hwaddr, %object
	.size	no_fake_hwaddr, 1
no_fake_hwaddr:
	.byte	1
	.local	hwaddr
	.comm	hwaddr,6,4
	.local	glibc_ioctl
	.comm	glibc_ioctl,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ioctl\000"
	.align	2
.LC1:
	.ascii	"FAKE_HWADDR\000"
	.align	2
.LC2:
	.ascii	"%2hhx:%2hhx:%2hhx:%2hhx:%2hhx:%2hhx\000"
	.align	2
.LC3:
	.ascii	"%2hhx-%2hhx-%2hhx-%2hhx-%2hhx-%2hhx\000"
	.align	2
.LC4:
	.ascii	"FAKE_HWADDR format error!\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init, %function
init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r1, .L6
	mvn	r0, #0
	bl	dlsym
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L6+4
	str	r2, [r3]
	ldr	r0, .L6+8
	bl	getenv
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L5
	ldr	ip, .L6+12
	ldr	r3, .L6+16
	ldr	r2, .L6+20
	ldr	r1, .L6+24
	ldr	r0, .L6+28
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	ldr	r2, .L6+32
	ldr	r1, .L6+36
	ldr	r0, [fp, #-8]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #6
	beq	.L3
	ldr	ip, .L6+12
	ldr	r3, .L6+16
	ldr	r2, .L6+20
	ldr	r1, .L6+24
	ldr	r0, .L6+28
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	ldr	r2, .L6+32
	ldr	r1, .L6+40
	ldr	r0, [fp, #-8]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #6
	bne	.L4
.L3:
	ldr	r3, .L6+44
	mov	r2, #0
	strb	r2, [r3]
	b	.L5
.L4:
	ldr	r0, .L6+48
	bl	puts
.L5:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	glibc_ioctl
	.word	.LC1
	.word	hwaddr+1
	.word	hwaddr+2
	.word	hwaddr+3
	.word	hwaddr+4
	.word	hwaddr+5
	.word	hwaddr
	.word	.LC2
	.word	.LC3
	.word	no_fake_hwaddr
	.word	.LC4
	.size	init, .-init
	.section	.init_array,"aw",%init_array
	.align	2
	.word	init(target1)
	.text
	.align	2
	.global	ioctl
	.syntax unified
	.arm
	.fpu softvfp
	.type	ioctl, %function
ioctl:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	ldr	r2, .L13
	cmp	r3, r2
	bne	.L9
	ldr	r3, .L13+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L10
.L9:
	ldr	r3, .L13+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	blx	r3
	mov	r3, r0
	b	.L11
.L10:
	ldr	r3, .L13+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L13
	ldr	r0, [fp, #-16]
	blx	r3
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L12
	ldr	r3, [fp, #-24]
	ldrh	r3, [r3, #16]
	cmp	r3, #1
	bne	.L12
	ldr	r3, [fp, #-24]
	add	r3, r3, #18
	ldr	r2, .L13+12
	mov	r0, r3
	mov	r1, r2
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
.L12:
	ldr	r3, [fp, #-8]
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	35111
	.word	no_fake_hwaddr
	.word	glibc_ioctl
	.word	hwaddr
	.size	ioctl, .-ioctl
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
