	.file	"extr_hw.c__rtl8821ae_read_pa_type.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_rtl8821ae_read_pa_type, @function
_rtl8821ae_read_pa_type:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	rtl_priv@PLT
	mov	rdi, rax
	call	rtl_hal@PLT
	mov	rbx, rax
	test	ebp, ebp
	jne	.L2
	mov	rax, QWORD PTR 1504[r12]
	mov	rdx, QWORD PTR 1512[r12]
	mov	DWORD PTR [rbx], eax
	mov	ebp, eax
	mov	DWORD PTR 4[rbx], edx
	cmp	eax, 255
	jne	.L3
	cmp	edx, 255
	je	.L20
.L3:
	mov	edi, 5
	call	BIT@PLT
	mov	edi, 7
	test	eax, ebp
	mov	ebp, DWORD PTR 4[rbx]
	setne	al
	movzx	eax, al
	mov	DWORD PTR 8[rbx], eax
	call	BIT@PLT
	mov	rdx, QWORD PTR 1528[r12]
	test	ebp, eax
	setne	al
	movzx	eax, al
	mov	DWORD PTR 12[rbx], eax
	mov	rax, QWORD PTR 1504[r12]
	mov	DWORD PTR 20[rbx], edx
	mov	DWORD PTR 16[rbx], eax
	mov	ebp, eax
	cmp	edx, 255
	jne	.L4
	cmp	eax, 255
	je	.L21
.L4:
	mov	edi, 1
	call	BIT@PLT
	mov	edi, 7
	test	eax, ebp
	mov	ebp, DWORD PTR 20[rbx]
	setne	al
	movzx	eax, al
	mov	DWORD PTR 24[rbx], eax
	call	BIT@PLT
	test	ebp, eax
	setne	al
	movzx	eax, al
	mov	DWORD PTR 28[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 24[rax], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	QWORD PTR [rbx], 0
	xor	ebp, ebp
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	mov	QWORD PTR 16[rbx], 0
	xor	ebp, ebp
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	_rtl8821ae_read_pa_type, .-_rtl8821ae_read_pa_type
	.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__rtl8821ae_read_pa_type.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_rtl8821ae_read_pa_type, %function
_rtl8821ae_read_pa_type:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r2
	mov	r5, r1
	bl	rtl_priv
	bl	rtl_hal
	cmp	r6, #0
	mov	r4, r0
	bne	.L2
	ldr	r3, [r5, #756]
	ldr	r7, [r5, #752]
	str	r3, [r0, #4]
	cmp	r7, #255
	cmpeq	r3, #255
	str	r7, [r0]
	streq	r6, [r0, #4]
	streq	r6, [r0]
	mov	r0, #5
	moveq	r7, r6
	bl	BIT
	tst	r0, r7
	movne	r3, #1
	moveq	r3, #0
	mov	r0, #7
	str	r3, [r4, #8]
	ldr	r7, [r4, #4]
	bl	BIT
	ldr	r3, [r5, #764]
	ldr	r6, [r5, #752]
	tst	r7, r0
	movne	r2, #1
	moveq	r2, #0
	cmp	r3, #255
	cmpeq	r6, #255
	str	r3, [r4, #20]
	moveq	r3, #0
	str	r6, [r4, #16]
	streq	r3, [r4, #20]
	streq	r3, [r4, #16]
	str	r2, [r4, #12]
	mov	r0, #1
	moveq	r6, r3
	bl	BIT
	tst	r0, r6
	movne	r3, #1
	moveq	r3, #0
	mov	r0, #7
	str	r3, [r4, #24]
	ldr	r5, [r4, #20]
	bl	BIT
	tst	r5, r0
	movne	r3, #1
	moveq	r3, #0
	str	r3, [r4, #28]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r3, #0
	str	r3, [r0, #8]
	str	r3, [r0, #12]
	str	r3, [r0, #24]
	str	r3, [r0, #28]
	pop	{r4, r5, r6, r7, r8, pc}
	.size	_rtl8821ae_read_pa_type, .-_rtl8821ae_read_pa_type
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
