	.file	"extr_ar8216.c_ar8216_setup_port.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ar8216_setup_port, @function
ar8216_setup_port:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	call	chip_is_ar8216@PLT
	xor	ecx, ecx
	test	rax, rax
	je	.L2
	cmp	QWORD PTR 0[rbp], 0
	je	.L2
	xor	ecx, ecx
	cmp	DWORD PTR AR8216_PORT_CPU[rip], r12d
	sete	cl
.L2:
	mov	edx, r13d
	mov	esi, r12d
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	__ar8216_setup_port@PLT
	.cfi_endproc
.LFE0:
	.size	ar8216_setup_port, .-ar8216_setup_port
	.comm	AR8216_PORT_CPU,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_ar8216.c_ar8216_setup_port.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar8216_setup_port, %function
ar8216_setup_port:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r6, r2
	mov	r4, r0
	bl	chip_is_ar8216
	subs	r3, r0, #0
	beq	.L2
	ldr	r3, [r4]
	cmp	r3, #0
	ldrne	r3, .L11
	ldrne	r3, [r3]
	subne	r3, r3, r5
	clzne	r3, r3
	lsrne	r3, r3, #5
.L2:
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	__ar8216_setup_port
.L12:
	.align	2
.L11:
	.word	AR8216_PORT_CPU
	.size	ar8216_setup_port, .-ar8216_setup_port
	.comm	AR8216_PORT_CPU,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
