	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_phy_write_rf_reg_sipi      ## -- Begin function rtw_phy_write_rf_reg_sipi
	.p2align	4, 0x90
_rtw_phy_write_rf_reg_sipi:             ## @rtw_phy_write_rf_reg_sipi
	.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	%esi, %r15d
	movq	%rdi, %r13
	cmpl	%esi, 8(%rdi)
	jbe	LBB0_1
## %bb.2:
	movl	%r8d, %r14d
	movl	%ecx, %ebx
	movq	(%r13), %rax
	movq	(%rax), %rsi
	movzbl	%dl, %r12d
	movq	_RFREG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%ecx, %ebx
	cmpl	%ecx, %ebx
	je	LBB0_6
## %bb.3:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_rtw_phy_read_rf
	movq	_INV_RF_DATA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_rtw_err
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_rtw_err
	jmp	LBB0_7
LBB0_5:
	movl	%ebx, %edi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	___ffs
	notl	%ebx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	andl	%ebx, %edx
	movl	%eax, %ecx
	shll	%cl, %r14d
	orl	%edx, %r14d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_6:
	shll	$20, %r12d
	andl	$1048575, %r14d                 ## imm = 0xFFFFF
	orl	%r12d, %r14d
	movl	%r15d, %eax
	movl	(%rsi,%rax,4), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_rtw_write32
	movl	$13, %edi
	callq	_udelay
	movl	$1, %ebx
LBB0_7:
	movl	%ebx, %eax
	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	"unsupported rf path (%d)\n"

	.comm	_RFREG_MASK,4,2                 ## @RFREG_MASK
	.comm	_INV_RF_DATA,4,2                ## @INV_RF_DATA
L_.str.1:                               ## @.str.1
	.asciz	"Write fail, rf is disabled\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_phy_write_rf_reg_sipi      ; -- Begin function rtw_phy_write_rf_reg_sipi
	.p2align	2
_rtw_phy_write_rf_reg_sipi:             ; @rtw_phy_write_rf_reg_sipi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #8]
	cmp	w8, w1
	b.ls	LBB0_4
; %bb.1:
	mov	x21, x4
	ldr	x8, [x19]
	ldr	x25, [x8]
	and	w22, w2, #0xff
Lloh0:
	adrp	x8, _RFREG_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RFREG_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w23, w8, w3
	cmp	w23, w8
	b.eq	LBB0_7
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x8
	bl	_rtw_phy_read_rf
Lloh3:
	adrp	x8, _INV_RF_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INV_RF_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.3:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_rtw_err
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	mov	x24, x0
	mov	x0, x23
	bl	___ffs
	bic	w8, w24, w23
	lsl	w9, w21, w0
	orr	w21, w9, w8
LBB0_7:
	and	w2, w21, #0xfffff
	bfi	w2, w22, #20, #8
	ldr	w1, [x25, w20, uxtw #2]
	mov	x0, x19
	bl	_rtw_write32
	mov	w0, #13
	bl	_udelay
	mov	w0, #1
LBB0_8:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported rf path (%d)\n"

	.comm	_RFREG_MASK,4,2                 ; @RFREG_MASK
	.comm	_INV_RF_DATA,4,2                ; @INV_RF_DATA
l_.str.1:                               ; @.str.1
	.asciz	"Write fail, rf is disabled\n"

.subsections_via_symbols
