	.file	"extr_rtl8306.c_rtl_attr_set_int.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rtl_attr_set_int, @function
rtl_attr_set_int:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rdi, QWORD PTR rtl_regs[rip]
	mov	r14d, DWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r12d, DWORD PTR [rdx]
	mov	r15d, DWORD PTR 4[rsi]
	call	ARRAY_SIZE@PLT
	cmp	r14d, eax
	jge	.L5
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	jle	.L4
	cmp	rax, QWORD PTR 8[rbp]
	jl	.L5
.L4:
	imul	r12d, r15d
	mov	esi, DWORD PTR 0[rbp]
	add	r12d, r14d
	cmp	esi, 3
	jle	.L6
	movsx	rax, r12d
	sal	rax, 4
	add	rax, QWORD PTR rtl_regs[rip]
	cmp	DWORD PTR [rax], 22
	je	.L10
.L6:
	mov	rdx, QWORD PTR 8[rbp]
	mov	esi, r12d
	mov	rdi, r13
	call	rtl_set@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	cmp	QWORD PTR 8[rax], 0
	jne	.L6
	lea	r14, 4[rsp]
	mov	rdi, r13
	mov	rdx, r14
	call	rtl_phy_save@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	esi, r12d
	mov	rdi, r13
	call	rtl_set@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	rdx, r14
	mov	rdi, r13
	call	rtl_phy_restore@PLT
	xor	eax, eax
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rtl_attr_set_int, .-rtl_attr_set_int
	.comm	rtl_regs,8,8
	.comm	EINVAL,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_rtl8306.c_rtl_attr_set_int.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl_attr_set_int, %function
rtl_attr_set_int:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r9, .L12
	ldr	r3, .L12+4
	sub	sp, sp, #8
	mov	r6, r0
	ldr	r0, [r9]
	ldr	r8, [r1]
	mov	r4, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r7, [r2]
	ldr	r10, [r1, #4]
	bl	ARRAY_SIZE
	cmp	r8, r0
	bge	.L5
	ldr	r3, [r4, #8]
	cmp	r3, #0
	ble	.L4
	ldr	r2, [r5, #4]
	cmp	r3, r2
	blt	.L5
.L4:
	ldr	r1, [r5]
	mla	r8, r10, r7, r8
	cmp	r1, #3
	ble	.L6
	ldr	r3, [r9]
	ldr	r2, [r3, r8, lsl #3]
	add	r3, r3, r8, lsl #3
	cmp	r2, #22
	beq	.L10
.L6:
	mov	r1, r8
	mov	r0, r6
	ldr	r2, [r5, #4]
	bl	rtl_set
	mov	r7, #0
.L1:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	ldr	r3, .L12+8
	ldr	r7, [r3]
	rsb	r7, r7, #0
	b	.L1
.L10:
	ldr	r7, [r3, #4]
	cmp	r7, #0
	bne	.L6
	mov	r2, sp
	mov	r0, r6
	bl	rtl_phy_save
	mov	r1, r8
	ldr	r2, [r5, #4]
	mov	r0, r6
	bl	rtl_set
	mov	r2, sp
	mov	r0, r6
	ldr	r1, [r5]
	bl	rtl_phy_restore
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	rtl_regs
	.word	.LC0
	.word	EINVAL
	.size	rtl_attr_set_int, .-rtl_attr_set_int
	.comm	rtl_regs,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
