	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92ce_phy_set_rf_reg         ## -- Begin function rtl92ce_phy_set_rf_reg
	.p2align	4, 0x90
_rtl92ce_phy_set_rf_reg:                ## @rtl92ce_phy_set_rf_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	_COMP_RF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %r8d
	movl	%r14d, %r9d
	pushq	%r15
	pushq	%r13
	callq	_RT_TRACE
	addq	$16, %rsp
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	8(%rbx), %rcx
	movq	_RF_OP_BY_FW@GOTPCREL(%rip), %rdx
	movq	_RFREG_OFFSET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.5:
	cmpl	%r14d, %eax
	jne	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_1:
	cmpl	%r14d, %eax
	jne	LBB0_3
## %bb.2:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	__rtl92c_phy_fw_rf_serial_read
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	__rtl92c_phy_calculate_bit_shift
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	notl	%edx
	andl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movl	%eax, %ecx
	shll	%cl, %r13d
	orl	%edx, %r13d
LBB0_8:
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	__rtl92c_phy_fw_rf_serial_write
	jmp	LBB0_9
LBB0_3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	__rtl92c_phy_rf_serial_read
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	__rtl92c_phy_calculate_bit_shift
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	notl	%edx
	andl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movl	%eax, %ecx
	shll	%cl, %r13d
	orl	%edx, %r13d
LBB0_4:
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	__rtl92c_phy_rf_serial_write
LBB0_9:
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	_COMP_RF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %r8d
	movl	%r14d, %r9d
	pushq	%r15
	pushq	%r13
	callq	_RT_TRACE
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_RF,4,2                    ## @COMP_RF
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"regaddr(%#x), bitmask(%#x), data(%#x), rfpath(%#x)\n"

	.comm	_RF_OP_BY_FW,8,3                ## @RF_OP_BY_FW
	.comm	_RFREG_OFFSET_MASK,4,2          ## @RFREG_OFFSET_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92ce_phy_set_rf_reg         ; -- Begin function rtl92ce_phy_set_rf_reg
	.p2align	2
_rtl92ce_phy_set_rf_reg:                ; @rtl92ce_phy_set_rf_reg
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x24, x0
	bl	_rtl_priv
	mov	x23, x0
Lloh0:
	adrp	x26, _COMP_RF@GOTPAGE
Lloh1:
	ldr	x26, [x26, _COMP_RF@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh2:
	adrp	x27, _DBG_TRACE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _DBG_TRACE@GOTPAGEOFF]
	ldr	w2, [x27]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	x4, x22
	mov	x5, x20
	mov	x6, x21
	mov	x7, x19
	bl	_RT_TRACE
	mov	x0, x23
	bl	_spin_lock
Lloh6:
	adrp	x8, _RF_OP_BY_FW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RF_OP_BY_FW@GOTPAGEOFF]
	ldr	x9, [x23, #8]
Lloh8:
	ldr	x10, [x8]
Lloh9:
	adrp	x8, _RFREG_OFFSET_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RFREG_OFFSET_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.1:
	cmp	w8, w20
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x24
	mov	x1, x19
	mov	x2, x22
	bl	__rtl92c_phy_fw_rf_serial_read
	mov	x25, x0
	mov	x0, x20
	bl	__rtl92c_phy_calculate_bit_shift
	bic	w8, w25, w20
	lsl	w9, w21, w0
	orr	w21, w9, w8
LBB0_3:
	mov	x0, x24
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	__rtl92c_phy_fw_rf_serial_write
	b	LBB0_7
LBB0_4:
	cmp	w8, w20
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x24
	mov	x1, x19
	mov	x2, x22
	bl	__rtl92c_phy_rf_serial_read
	mov	x25, x0
	mov	x0, x20
	bl	__rtl92c_phy_calculate_bit_shift
	bic	w8, w25, w20
	lsl	w9, w21, w0
	orr	w21, w9, w8
LBB0_6:
	mov	x0, x24
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	__rtl92c_phy_rf_serial_write
LBB0_7:
	mov	x0, x23
	bl	_spin_unlock
	ldr	w1, [x26]
	ldr	w2, [x27]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x23
	mov	x4, x22
	mov	x5, x20
	mov	x6, x21
	mov	x7, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_RT_TRACE
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_RF,4,2                    ; @COMP_RF
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"regaddr(%#x), bitmask(%#x), data(%#x), rfpath(%#x)\n"

	.comm	_RF_OP_BY_FW,8,3                ; @RF_OP_BY_FW
	.comm	_RFREG_OFFSET_MASK,4,2          ; @RFREG_OFFSET_MASK
.subsections_via_symbols
