	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl88e_phy_rf_serial_write
__rtl88e_phy_rf_serial_write:           ## @_rtl88e_phy_rf_serial_write
	.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	%ecx, %r12d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r15
	movq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_RT_CANNOT_IO
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %r14d
	movzbl	-48(%rbp), %eax                 ## 1-byte Folded Reload
	shll	$20, %eax
	andl	$1048575, %r12d                 ## imm = 0xFFFFF
	orl	%eax, %r12d
	movl	(%r13,%r14,4), %esi
	movq	_MASKDWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	callq	_rtl_set_bbreg
	movq	_COMP_RF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13,%r14,4), %r9d
	movl	%r12d, (%rsp)
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_RT_TRACE
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stop\n"

	.comm	_MASKDWORD,4,2                  ## @MASKDWORD
	.comm	_COMP_RF,4,2                    ## @COMP_RF
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
L_.str.1:                               ## @.str.1
	.asciz	"RFW-%d Addr[0x%x]=0x%x\n"

	.no_dead_strip	__rtl88e_phy_rf_serial_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl88e_phy_rf_serial_write
__rtl88e_phy_rf_serial_write:           ; @_rtl88e_phy_rf_serial_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	bl	_rtl_priv
	mov	x20, x0
	ldr	x24, [x0]
	mov	x0, x21
	bl	_RT_CANNOT_IO
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_pr_err
LBB0_2:
	mov	w8, w19
	and	w23, w23, #0xfffff
	bfi	w23, w22, #20, #8
	lsl	x22, x8, #2
	ldr	w1, [x24, x22]
Lloh2:
	adrp	x8, _MASKDWORD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MASKDWORD@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x23
	bl	_rtl_set_bbreg
Lloh5:
	adrp	x8, _COMP_RF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _COMP_RF@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	ldr	w5, [x24, x22]
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x4, x19
	mov	x6, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_RT_TRACE
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stop\n"

	.comm	_MASKDWORD,4,2                  ; @MASKDWORD
	.comm	_COMP_RF,4,2                    ; @COMP_RF
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
l_.str.1:                               ; @.str.1
	.asciz	"RFW-%d Addr[0x%x]=0x%x\n"

	.no_dead_strip	__rtl88e_phy_rf_serial_write
.subsections_via_symbols
