	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92d_phy_set_rf_reg          ## -- Begin function rtl92d_phy_set_rf_reg
	.p2align	4, 0x90
_rtl92d_phy_set_rf_reg:                 ## @rtl92d_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_rtl_priv
	movq	%rax, %r14
	movq	_COMP_RF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r8d
	movl	%r13d, %r9d
	movq	%r12, %rbx
	pushq	%r12
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	pushq	%r15
	callq	_RT_TRACE
	addq	$16, %rsp
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.1:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r14), %rax
	movq	_RF_OP_BY_FW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_8:
	addq	$40, %rsp
	jmp	LBB0_9
LBB0_3:
	movq	_RFREG_OFFSET_MASK@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jne	LBB0_5
## %bb.4:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_5:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	__rtl92d_phy_rf_serial_read
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	__rtl92d_phy_calculate_bit_shift
	movq	%r15, %rdi
	movl	%r13d, %esi
	notl	%esi
	andl	-60(%rbp), %esi                 ## 4-byte Folded Reload
	movl	%eax, %ecx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	shll	%cl, %r15d
	orl	%esi, %r15d
LBB0_6:
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	__rtl92d_phy_rf_serial_write
LBB0_7:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_COMP_RF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	pushq	%rbx
	pushq	%r15
	callq	_RT_TRACE
	addq	$56, %rsp
LBB0_9:
	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	_rtl92d_phy_set_rf_reg          ; -- Begin function rtl92d_phy_set_rf_reg
	.p2align	2
_rtl92d_phy_set_rf_reg:                 ; @rtl92d_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	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x20, 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, x21
	mov	x6, x19
	mov	x7, x20
	bl	_RT_TRACE
	cbz	w21, LBB0_6
; %bb.1:
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	x8, [x23, #8]
Lloh6:
	adrp	x9, _RF_OP_BY_FW@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RF_OP_BY_FW@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.2:
Lloh9:
	adrp	x8, _RFREG_OFFSET_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RFREG_OFFSET_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x24
	mov	x1, x20
	mov	x2, x22
	bl	__rtl92d_phy_rf_serial_read
	mov	x25, x0
	mov	x0, x21
	bl	__rtl92d_phy_calculate_bit_shift
	bic	w8, w25, w21
	lsl	w9, w19, w0
	orr	w19, w9, w8
LBB0_4:
	mov	x0, x24
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	bl	__rtl92d_phy_rf_serial_write
LBB0_5:
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	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, x21
	mov	x6, x19
	mov	x7, x20
	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
LBB0_6:
	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
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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
