	.file	"extr_qeth_l2_main.c_qeth_l2_request_initial_mac.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"doL2init"
.LC1:
	.string	"doL2%s"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"could not query adapter parameters on device %s: x%x\n"
	.align 8
.LC3:
	.string	"couldn't get MAC address on device %s: x%x\n"
	.section	.rodata.str1.1
.LC4:
	.string	"1err%d"
	.text
	.p2align 4
	.type	qeth_l2_request_initial_mac, @function
qeth_l2_request_initial_mac:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdx, .LC0[rip]
	mov	esi, 2
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR SETUP[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, 2
	mov	BYTE PTR 7[rsp], 0
	mov	WORD PTR 5[rsp], ax
	call	QETH_DBF_TEXT@PLT
	mov	rdi, rbp
	call	CARD_BUS_ID@PLT
	mov	edi, DWORD PTR SETUP[rip]
	mov	esi, 2
	lea	rdx, .LC1[rip]
	mov	ecx, eax
	call	QETH_DBF_TEXT_@PLT
	mov	esi, DWORD PTR IPA_SETADAPTERPARMS[rip]
	mov	rdi, rbp
	call	qeth_is_supported@PLT
	test	rax, rax
	jne	.L15
.L3:
	mov	rax, QWORD PTR 8[rbp]
	cmp	rax, QWORD PTR QETH_CARD_TYPE_IQD[rip]
	je	.L5
	cmp	rax, QWORD PTR QETH_CARD_TYPE_OSM[rip]
	je	.L5
	cmp	rax, QWORD PTR QETH_CARD_TYPE_OSX[rip]
	je	.L5
	cmp	QWORD PTR 16[rbp], 0
	je	.L6
.L5:
	mov	rdi, rbp
	call	qeth_setadpparms_change_macaddr@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L16
	mov	rax, QWORD PTR 0[rbp]
	mov	ecx, DWORD PTR OSA_ADDR_LEN[rip]
	mov	esi, 2
	mov	edi, DWORD PTR SETUP[rip]
	mov	edx, DWORD PTR [rax]
	call	QETH_DBF_HEX@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, rbp
	call	qeth_query_setadapterparms@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L3
	mov	rdi, rbp
	call	CARD_BUS_ID@PLT
	mov	ecx, r12d
	mov	edi, 2
	lea	rsi, .LC2[rip]
	mov	edx, eax
	call	QETH_DBF_MESSAGE@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, rbp
	call	CARD_BUS_ID@PLT
	mov	ecx, r12d
	mov	edi, 2
	lea	rsi, .LC3[rip]
	mov	edx, eax
	call	QETH_DBF_MESSAGE@PLT
	mov	edi, DWORD PTR SETUP[rip]
	mov	ecx, r12d
	lea	rdx, .LC4[rip]
	mov	esi, 2
	call	QETH_DBF_TEXT_@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 0[rbp]
	xor	r12d, r12d
	mov	edi, DWORD PTR [rax]
	call	random_ether_addr@PLT
	mov	rax, QWORD PTR 0[rbp]
	lea	rsi, 5[rsp]
	mov	edx, 3
	mov	edi, DWORD PTR [rax]
	call	memcpy@PLT
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qeth_l2_request_initial_mac, .-qeth_l2_request_initial_mac
	.comm	SETUP,4,4
	.comm	QETH_CARD_TYPE_OSX,8,8
	.comm	QETH_CARD_TYPE_OSM,8,8
	.comm	QETH_CARD_TYPE_IQD,8,8
	.comm	OSA_ADDR_LEN,4,4
	.comm	IPA_SETADAPTERPARMS,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_qeth_l2_main.c_qeth_l2_request_initial_mac.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"doL2init\000"
	.align	2
.LC2:
	.ascii	"doL2%s\000"
	.align	2
.LC3:
	.ascii	"could not query adapter parameters on device %s: x%"
	.ascii	"x\012\000"
	.align	2
.LC4:
	.ascii	"couldn't get MAC address on device %s: x%x\012\000"
	.align	2
.LC5:
	.ascii	"1err%d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qeth_l2_request_initial_mac, %function
qeth_l2_request_initial_mac:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L18
	ldr	r6, .L18+4
	ldr	r3, [r3]
	ldr	lr, .L18+8
	sub	sp, sp, #8
	lsr	ip, r3, #16
	mov	r1, #2
	ldr	r2, .L18+12
	ldr	r0, [r6]
	ldr	lr, [lr]
	str	lr, [sp, #4]
	mov	lr,#0
	strb	ip, [sp, #2]
	strh	r3, [sp]	@ movhi
	bl	QETH_DBF_TEXT
	mov	r0, r4
	ldr	r5, [r6]
	bl	CARD_BUS_ID
	mov	r1, #2
	mov	r3, r0
	ldr	r2, .L18+16
	mov	r0, r5
	bl	QETH_DBF_TEXT_
	ldr	r3, .L18+20
	mov	r0, r4
	ldr	r1, [r3]
	bl	qeth_is_supported
	cmp	r0, #0
	bne	.L15
.L3:
	ldr	r2, .L18+24
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L5
	ldr	r2, .L18+28
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L5
	ldr	r2, .L18+32
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L5
	ldr	r5, [r4, #8]
	cmp	r5, #0
	beq	.L6
.L5:
	mov	r0, r4
	bl	qeth_setadpparms_change_macaddr
	subs	r5, r0, #0
	bne	.L16
	ldr	r2, [r4]
	ldr	r3, .L18+36
	mov	r1, #2
	ldr	r2, [r2]
	ldr	r0, [r6]
	ldr	r3, [r3]
	bl	QETH_DBF_HEX
.L1:
	ldr	r3, .L18+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L15:
	mov	r0, r4
	bl	qeth_query_setadapterparms
	subs	r5, r0, #0
	beq	.L3
	mov	r0, r4
	bl	CARD_BUS_ID
	mov	r3, r5
	mov	r2, r0
	ldr	r1, .L18+40
	mov	r0, #2
	bl	QETH_DBF_MESSAGE
	b	.L3
.L16:
	mov	r0, r4
	bl	CARD_BUS_ID
	mov	r3, r5
	mov	r2, r0
	ldr	r1, .L18+44
	mov	r0, #2
	bl	QETH_DBF_MESSAGE
	mov	r3, r5
	mov	r1, #2
	ldr	r0, [r6]
	ldr	r2, .L18+48
	bl	QETH_DBF_TEXT_
	b	.L1
.L6:
	ldr	r3, [r4]
	ldr	r0, [r3]
	bl	random_ether_addr
	ldr	r3, [r4]
	mov	r2, #3
	mov	r1, sp
	ldr	r0, [r3]
	bl	memcpy
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LANCHOR0
	.word	SETUP
	.word	.LC6
	.word	.LC1
	.word	.LC2
	.word	IPA_SETADAPTERPARMS
	.word	QETH_CARD_TYPE_IQD
	.word	QETH_CARD_TYPE_OSM
	.word	QETH_CARD_TYPE_OSX
	.word	OSA_ADDR_LEN
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	qeth_l2_request_initial_mac, .-qeth_l2_request_initial_mac
	.comm	SETUP,4,4
	.comm	QETH_CARD_TYPE_OSX,4,4
	.comm	QETH_CARD_TYPE_OSM,4,4
	.comm	QETH_CARD_TYPE_IQD,4,4
	.comm	OSA_ADDR_LEN,4,4
	.comm	IPA_SETADAPTERPARMS,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.ascii	"\002\000\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
