	.file	"extr_hw.c__rtl92ee_read_adapter_info.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"EEPROM Customer ID: 0x%2x\n"
.LC1:
	.string	"board_type = 0x%x\n"
	.text
	.p2align 4
	.type	_rtl92ee_read_adapter_info, @function
_rtl92ee_read_adapter_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	rtl_priv@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	rtl_priv@PLT
	mov	rdi, rax
	call	rtl_efuse@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	rtl_priv@PLT
	mov	rdi, rax
	call	rtl_hal@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR HWSET_MAX_SIZE[rip]
	mov	r14, rax
	mov	eax, DWORD PTR RTL8192E_EEPROM_ID[rip]
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR EEPROM_VID[rip]
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR EEPROM_DID[rip]
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR EEPROM_SVID[rip]
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR EEPROM_SMID[rip]
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR EEPROM_MAC_ADDR[rip]
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR EEPROM_CHANNELPLAN[rip]
	mov	DWORD PTR 24[rsp], eax
	mov	eax, DWORD PTR EEPROM_VERSION[rip]
	mov	DWORD PTR 28[rsp], eax
	mov	eax, DWORD PTR EEPROM_CUSTOMER_ID[rip]
	mov	DWORD PTR 32[rsp], eax
	mov	eax, DWORD PTR COUNTRY_CODE_WORLD_WIDE_13[rip]
	mov	DWORD PTR 36[rsp], eax
	call	kzalloc@PLT
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR HWSET_MAX_SIZE[rip]
	mov	r8, rsp
	mov	rcx, rax
	mov	rsi, r13
	mov	rdi, rbp
	mov	r12, rax
	call	rtl_get_hwinfo@PLT
	test	rax, rax
	jne	.L5
	mov	r8d, DWORD PTR [rbx]
	cmp	r8d, 255
	jne	.L6
	mov	DWORD PTR [rbx], 0
	xor	r8d, r8d
.L6:
	mov	edx, DWORD PTR DBG_LOUD[rip]
	mov	esi, DWORD PTR COMP_INIT[rip]
	lea	rcx, .LC0[rip]
	mov	rdi, r13
	call	RT_TRACE@PLT
	mov	eax, DWORD PTR 40[rbx]
	mov	esi, DWORD PTR 36[rbx]
	mov	rdx, r12
	mov	rdi, rbp
	mov	DWORD PTR 44[rbx], eax
	call	_rtl92ee_read_txpower_info_from_hwpg@PLT
	mov	esi, DWORD PTR 36[rbx]
	mov	rdx, r12
	mov	rdi, rbp
	call	rtl92ee_read_bt_coexist_info_from_hwpg@PLT
	mov	rax, QWORD PTR EEPROM_RF_BOARD_OPTION_92E[rip]
	lea	rdx, [r12+rax*4]
	mov	eax, DWORD PTR [rdx]
	sar	eax, 5
	and	eax, 7
	mov	DWORD PTR 4[rbx], eax
	cmp	DWORD PTR [rdx], 255
	jne	.L7
	mov	DWORD PTR 4[rbx], 0
.L7:
	cmp	DWORD PTR 0[r13], 1
	je	.L8
	mov	r8d, DWORD PTR 4[rbx]
.L9:
	mov	DWORD PTR [r14], r8d
	mov	edx, DWORD PTR DBG_LOUD[rip]
	mov	rdi, r13
	lea	rcx, .LC1[rip]
	mov	esi, DWORD PTR COMP_INIT[rip]
	call	RT_TRACE@PLT
	mov	rax, QWORD PTR EEPROM_XTAL_92E[rip]
	mov	edx, 32
	mov	eax, DWORD PTR [r12+rax*4]
	mov	QWORD PTR 24[rbx], 0
	cmp	eax, 255
	cmove	eax, edx
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR NO_ANTDIV[rip]
	mov	DWORD PTR 32[rbx], eax
	mov	rax, QWORD PTR RT_CID_DEFAULT[rip]
	cmp	QWORD PTR 8[r14], rax
	je	.L18
.L5:
	mov	rdi, r12
	call	kfree@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	cmp	DWORD PTR [rbx], 128
	jne	.L5
	cmp	DWORD PTR 12[rbx], 33163
	jne	.L5
	movabs	rax, 115964121324
	cmp	QWORD PTR 16[rbx], rax
	jne	.L5
	mov	rax, QWORD PTR RT_CID_819X_LENOVO[rip]
	mov	QWORD PTR 8[r14], rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, 2
	call	BIT@PLT
	or	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR 4[rbx], eax
	mov	r8d, eax
	jmp	.L9
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_rtl92ee_read_adapter_info, .-_rtl92ee_read_adapter_info
	.comm	RT_CID_DEFAULT,8,8
	.comm	RT_CID_819X_LENOVO,8,8
	.comm	RTL8192E_EEPROM_ID,4,4
	.comm	NO_ANTDIV,4,4
	.comm	HWSET_MAX_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EEPROM_XTAL_92E,8,8
	.comm	EEPROM_VID,4,4
	.comm	EEPROM_VERSION,4,4
	.comm	EEPROM_SVID,4,4
	.comm	EEPROM_SMID,4,4
	.comm	EEPROM_RF_BOARD_OPTION_92E,8,8
	.comm	EEPROM_MAC_ADDR,4,4
	.comm	EEPROM_DID,4,4
	.comm	EEPROM_CUSTOMER_ID,4,4
	.comm	EEPROM_CHANNELPLAN,4,4
	.comm	DBG_LOUD,4,4
	.comm	COUNTRY_CODE_WORLD_WIDE_13,4,4
	.comm	COMP_INIT,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_hw.c__rtl92ee_read_adapter_info.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EEPROM Customer ID: 0x%2x\012\000"
	.align	2
.LC1:
	.ascii	"board_type = 0x%x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_rtl92ee_read_adapter_info, %function
_rtl92ee_read_adapter_info:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L21
	sub	sp, sp, #56
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	mov	r6, r0
	bl	rtl_priv
	mov	r7, r0
	mov	r0, r6
	bl	rtl_priv
	bl	rtl_efuse
	mov	r4, r0
	mov	r0, r6
	bl	rtl_priv
	bl	rtl_hal
	ldr	r3, .L21+4
	ldr	ip, .L21+8
	ldr	r3, [r3]
	ldr	ip, [ip]
	str	r3, [sp, #12]
	ldr	r3, .L21+12
	ldr	lr, .L21+16
	ldr	r1, .L21+20
	str	ip, [sp, #16]
	ldr	r2, .L21+24
	ldr	ip, [r3]
	ldr	r3, .L21+28
	ldr	r5, [lr]
	ldr	lr, [r1]
	ldr	r1, .L21+32
	ldr	r2, [r2]
	mov	r8, r0
	ldr	r0, [r3]
	ldr	r3, .L21+36
	ldr	r1, [r1]
	str	r2, [sp, #24]
	ldr	r2, [r3]
	ldr	r3, .L21+40
	str	r1, [sp, #32]
	ldr	r9, .L21+44
	ldr	r1, .L21+48
	ldr	r3, [r3]
	str	r0, [sp, #40]
	ldr	r1, [r1]
	ldr	r0, [r9]
	str	r5, [sp, #20]
	str	lr, [sp, #28]
	str	ip, [sp, #36]
	str	r2, [sp, #44]
	str	r3, [sp, #48]
	bl	kzalloc
	subs	r5, r0, #0
	beq	.L1
	add	r3, sp, #12
	ldr	r2, [r9]
	mov	r1, r7
	str	r3, [sp]
	mov	r0, r6
	mov	r3, r5
	bl	rtl_get_hwinfo
	subs	r3, r0, #0
	bne	.L5
	ldr	r2, [r4]
	ldr	r10, .L21+52
	cmp	r2, #255
	moveq	r2, r3
	ldr	r9, .L21+56
	streq	r3, [r4]
	str	r2, [sp]
	ldr	r1, [r9]
	ldr	r2, [r10]
	ldr	r3, .L21+60
	mov	r0, r7
	bl	RT_TRACE
	ldr	r3, [r4, #36]
	mov	r2, r5
	str	r3, [r4, #40]
	ldr	r1, [r4, #32]
	mov	r0, r6
	bl	_rtl92ee_read_txpower_info_from_hwpg
	mov	r2, r5
	mov	r0, r6
	ldr	r1, [r4, #32]
	bl	rtl92ee_read_bt_coexist_info_from_hwpg
	ldr	r3, .L21+64
	ldr	r2, [r3]
	ldr	r3, [r5, r2, lsl #2]
	asr	r3, r3, #5
	and	r3, r3, #7
	str	r3, [r4, #4]
	ldr	r3, [r5, r2, lsl #2]
	cmp	r3, #255
	moveq	r3, #0
	streq	r3, [r4, #4]
	ldr	r3, [r7]
	cmp	r3, #1
	beq	.L8
	ldr	r0, [r4, #4]
.L9:
	str	r0, [r8]
	str	r0, [sp]
	ldr	r2, [r10]
	ldr	r1, [r9]
	ldr	r3, .L21+68
	mov	r0, r7
	bl	RT_TRACE
	ldr	r3, .L21+72
	mov	r2, #0
	ldr	r3, [r3]
	ldr	r0, [r8, #4]
	ldr	r3, [r5, r3, lsl #2]
	str	r2, [r4, #24]
	cmp	r3, #255
	moveq	r3, #32
	str	r3, [r4, #8]
	ldr	r3, .L21+76
	ldr	r1, [r3]
	ldr	r3, .L21+80
	cmp	r0, r1
	ldr	r3, [r3]
	str	r3, [r4, #28]
	beq	.L19
.L5:
	mov	r0, r5
	bl	kfree
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #56
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	ldr	r3, [r4]
	cmp	r3, #128
	bne	.L5
	ldr	r3, .L21+84
	ldr	r2, [r4, #12]
	cmp	r2, r3
	bne	.L5
	ldr	r3, .L21+88
	ldr	r2, [r4, #16]
	cmp	r2, r3
	bne	.L5
	ldr	r3, [r4, #20]
	cmp	r3, #27
	ldreq	r3, .L21+92
	ldreq	r3, [r3]
	streq	r3, [r8, #4]
	b	.L5
.L8:
	mov	r0, #2
	bl	BIT
	ldr	r3, [r4, #4]
	orr	r0, r0, r3
	str	r0, [r4, #4]
	b	.L9
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC2
	.word	RTL8192E_EEPROM_ID
	.word	EEPROM_VID
	.word	EEPROM_CHANNELPLAN
	.word	EEPROM_DID
	.word	EEPROM_SMID
	.word	EEPROM_SVID
	.word	EEPROM_VERSION
	.word	EEPROM_MAC_ADDR
	.word	EEPROM_CUSTOMER_ID
	.word	COUNTRY_CODE_WORLD_WIDE_13
	.word	HWSET_MAX_SIZE
	.word	GFP_KERNEL
	.word	DBG_LOUD
	.word	COMP_INIT
	.word	.LC0
	.word	EEPROM_RF_BOARD_OPTION_92E
	.word	.LC1
	.word	EEPROM_XTAL_92E
	.word	RT_CID_DEFAULT
	.word	NO_ANTDIV
	.word	33163
	.word	4332
	.word	RT_CID_819X_LENOVO
	.size	_rtl92ee_read_adapter_info, .-_rtl92ee_read_adapter_info
	.comm	RT_CID_DEFAULT,4,4
	.comm	RT_CID_819X_LENOVO,4,4
	.comm	RTL8192E_EEPROM_ID,4,4
	.comm	NO_ANTDIV,4,4
	.comm	HWSET_MAX_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EEPROM_XTAL_92E,4,4
	.comm	EEPROM_VID,4,4
	.comm	EEPROM_VERSION,4,4
	.comm	EEPROM_SVID,4,4
	.comm	EEPROM_SMID,4,4
	.comm	EEPROM_RF_BOARD_OPTION_92E,4,4
	.comm	EEPROM_MAC_ADDR,4,4
	.comm	EEPROM_DID,4,4
	.comm	EEPROM_CUSTOMER_ID,4,4
	.comm	EEPROM_CHANNELPLAN,4,4
	.comm	DBG_LOUD,4,4
	.comm	COUNTRY_CODE_WORLD_WIDE_13,4,4
	.comm	COMP_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
