	.file	"extr_if_ath.c_ath_fetch_mac_kenv.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"hint.%s.%d.macaddr"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Overriding MAC address from environment: '%s'\n"
	.section	.rodata.str1.1
.LC2:
	.string	"%x%*c%x%*c%x%*c%x%*c%x%*c%x"
	.text
	.p2align 4
	.type	ath_fetch_mac_kenv, @function
ath_fetch_mac_kenv:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	lea	r14, -96[rbp]
	push	r13
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	push	rbx
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 56
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	device_get_unit@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	r12d, eax
	call	device_get_name@PLT
	mov	rdi, r14
	mov	r8d, r12d
	mov	esi, 32
	mov	rcx, rax
	lea	rdx, .LC0[rip]
	call	snprintf@PLT
	mov	rdi, r14
	call	kern_getenv@PLT
	test	rax, rax
	je	.L10
	mov	r12, rax
	movsx	rax, DWORD PTR ETHER_ADDR_LEN[rip]
	mov	rcx, rsp
	mov	r14, rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L4
.L20:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L20
.L4:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L21
.L5:
	mov	edi, DWORD PTR 0[r13]
	mov	r15, rsp
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	mov	r13d, -1
	call	device_printf@PLT
	lea	rax, 20[r15]
	lea	rcx, 4[r15]
	mov	rdx, r15
	push	rax
	lea	rax, 16[r15]
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	push	rax
	lea	r9, 12[r15]
	lea	r8, 8[r15]
	call	sscanf@PLT
	pop	rcx
	pop	rsi
	cmp	eax, 6
	je	.L22
.L6:
	mov	rdi, r12
	call	freeenv@PLT
	mov	rsp, r14
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	lea	rsp, -40[rbp]
	mov	eax, r13d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	edx, DWORD PTR ETHER_ADDR_LEN[rip]
	xor	eax, eax
	test	edx, edx
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, DWORD PTR [r15+rax*4]
	mov	DWORD PTR [rbx+rax*4], edx
	add	rax, 1
	cmp	DWORD PTR ETHER_ADDR_LEN[rip], eax
	jg	.L7
.L8:
	xor	r13d, r13d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L5
.L10:
	mov	r13d, -1
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ath_fetch_mac_kenv, .-ath_fetch_mac_kenv
	.comm	ETHER_ADDR_LEN,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_if_ath.c_ath_fetch_mac_kenv.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"hint.%s.%d.macaddr\000"
	.align	2
.LC1:
	.ascii	"Overriding MAC address from environment: '%s'\012\000"
	.align	2
.LC2:
	.ascii	"%x%*c%x%*c%x%*c%x%*c%x%*c%x\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath_fetch_mac_kenv, %function
ath_fetch_mac_kenv:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #60
	ldr	r3, .L15
	mov	r4, r0
	ldr	r0, [r0]
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	bl	device_get_name
	mov	r6, r0
	ldr	r0, [r4]
	bl	device_get_unit
	mov	r3, r6
	mov	r1, #32
	ldr	r2, .L15+4
	str	r0, [sp]
	sub	r0, fp, #64
	bl	snprintf
	sub	r0, fp, #64
	bl	kern_getenv
	subs	r6, r0, #0
	beq	.L8
	ldr	r7, .L15+8
	mov	r8, sp
	ldr	r3, [r7]
	mov	r2, r6
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r0, [r4]
	ldr	r1, .L15+12
	add	r4, sp, #16
	bl	device_printf
	add	r0, r4, #20
	add	r1, r4, #16
	add	r2, r4, #12
	add	r3, r4, #8
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, r4
	add	r3, r4, #4
	mov	r0, r6
	ldr	r1, .L15+16
	bl	sscanf
	cmp	r0, #6
	mvnne	r4, #0
	beq	.L13
.L3:
	mov	r0, r6
	bl	freeenv
	mov	sp, r8
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L13:
	ldr	r3, [r7]
	cmp	r3, #0
	movgt	r3, #0
	subgt	r4, r4, #4
	subgt	r5, r5, #4
	ble	.L6
.L5:
	ldr	r2, [r4, #4]!
	add	r3, r3, #1
	str	r2, [r5, #4]!
	ldr	r2, [r7]
	cmp	r2, r3
	bgt	.L5
.L6:
	mov	r4, #0
	b	.L3
.L8:
	mvn	r4, #0
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	.LC0
	.word	ETHER_ADDR_LEN
	.word	.LC1
	.word	.LC2
	.size	ath_fetch_mac_kenv, .-ath_fetch_mac_kenv
	.comm	ETHER_ADDR_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
