	.file	"extr_phy.c_rtl92s_phy_set_rf_reg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"regaddr(%#x), bitmask(%#x), data(%#x), rfpath(%#x)\n"
	.text
	.p2align 4
	.globl	rtl92s_phy_set_rf_reg
	.type	rtl92s_phy_set_rf_reg, @function
rtl92s_phy_set_rf_reg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	rtl_priv@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR 4[rax]
	bt	eax, ebx
	jc	.L9
	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
.L9:
	.cfi_restore_state
	push	rbx
	.cfi_def_cfa_offset 88
	mov	esi, DWORD PTR COMP_RF[rip]
	mov	r9d, r13d
	mov	r8d, r14d
	push	r12
	.cfi_def_cfa_offset 96
	mov	edx, DWORD PTR DBG_TRACE[rip]
	lea	rcx, .LC0[rip]
	mov	rdi, rbp
	call	RT_TRACE@PLT
	mov	rdi, rbp
	call	spin_lock@PLT
	cmp	DWORD PTR RFREG_OFFSET_MASK[rip], r13d
	pop	rcx
	.cfi_def_cfa_offset 88
	pop	rsi
	.cfi_def_cfa_offset 80
	je	.L3
	mov	edx, r14d
	mov	esi, ebx
	mov	rdi, r15
	call	_rtl92s_phy_rf_serial_read@PLT
	mov	edi, r13d
	mov	DWORD PTR 12[rsp], eax
	call	_rtl92s_phy_calculate_bit_shift@PLT
	mov	ecx, eax
	mov	eax, r13d
	sal	r12d, cl
	not	eax
	and	eax, DWORD PTR 12[rsp]
	or	r12d, eax
.L3:
	mov	ecx, r12d
	mov	edx, r14d
	mov	esi, ebx
	mov	rdi, r15
	call	_rtl92s_phy_rf_serial_write@PLT
	mov	rdi, rbp
	call	spin_unlock@PLT
	push	rbx
	.cfi_def_cfa_offset 88
	mov	edx, DWORD PTR DBG_TRACE[rip]
	mov	r9d, r13d
	push	r12
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR COMP_RF[rip]
	mov	r8d, r14d
	mov	rdi, rbp
	lea	rcx, .LC0[rip]
	call	RT_TRACE@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	add	rsp, 24
	.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
	.cfi_endproc
.LFE0:
	.size	rtl92s_phy_set_rf_reg, .-rtl92s_phy_set_rf_reg
	.comm	RFREG_OFFSET_MASK,4,4
	.comm	DBG_TRACE,4,4
	.comm	COMP_RF,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_phy.c_rtl92s_phy_set_rf_reg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"regaddr(%#x), bitmask(%#x), data(%#x), rfpath(%#x)\012"
	.ascii	"\000"
	.text
	.align	2
	.global	rtl92s_phy_set_rf_reg
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl92s_phy_set_rf_reg, %function
rtl92s_phy_set_rf_reg:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	mov	r4, r1
	mov	r6, r3
	mov	r7, r2
	mov	r8, r0
	ldr	r9, [sp, #64]
	bl	rtl_priv
	ldr	r3, [r0, #4]
	asr	r3, r3, r4
	tst	r3, #1
	bne	.L9
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	mov	r5, r0
	ldr	fp, .L10
	ldr	r10, .L10+4
	ldr	r3, .L10+8
	ldr	r2, [fp]
	ldr	r1, [r10]
	stmib	sp, {r6, r9}
	str	r4, [sp, #12]
	str	r7, [sp]
	bl	RT_TRACE
	mov	r0, r5
	bl	spin_lock
	ldr	r3, .L10+12
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L3
	mov	r2, r7
	mov	r1, r4
	mov	r0, r8
	bl	_rtl92s_phy_rf_serial_read
	mov	r3, r0
	mov	r0, r6
	str	r3, [sp, #20]
	bl	_rtl92s_phy_calculate_bit_shift
	ldr	r3, [sp, #20]
	bic	r3, r3, r6
	orr	r9, r3, r9, lsl r0
.L3:
	mov	r3, r9
	mov	r2, r7
	mov	r1, r4
	mov	r0, r8
	bl	_rtl92s_phy_rf_serial_write
	mov	r0, r5
	bl	spin_unlock
	mov	r0, r5
	stmib	sp, {r6, r9}
	ldr	r2, [fp]
	ldr	r1, [r10]
	ldr	r3, .L10+8
	str	r4, [sp, #12]
	str	r7, [sp]
	bl	RT_TRACE
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	.align	2
.L10:
	.word	DBG_TRACE
	.word	COMP_RF
	.word	.LC0
	.word	RFREG_OFFSET_MASK
	.size	rtl92s_phy_set_rf_reg, .-rtl92s_phy_set_rf_reg
	.comm	RFREG_OFFSET_MASK,4,4
	.comm	DBG_TRACE,4,4
	.comm	COMP_RF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
