	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_phy_write_rf_reg           ## -- Begin function rtw_phy_write_rf_reg
	.p2align	4, 0x90
_rtw_phy_write_rf_reg:                  ## @rtw_phy_write_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %eax
	movq	%rdi, %rbx
	cmpl	%esi, 8(%rdi)
	jbe	LBB0_1
## %bb.2:
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movzbl	%dl, %r13d
	movl	%eax, %eax
	leal	(,%r13,4), %r12d
	addl	(%rcx,%rax,4), %r12d
	movq	_RFREG_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_RF_CFGCH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_4
## %bb.3:
	movq	_REG_RSV_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BITS_RFC_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DISABLE_PI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_rtw_write32_mask
	movq	_REG_WLRF1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BITS_RFC_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DISABLE_PI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_rtw_write32_mask
LBB0_4:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_rtw_write32_mask
	movl	$1, %r14d
	movl	$1, %edi
	callq	_udelay
	movq	_RF_CFGCH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_6
## %bb.5:
	movq	_REG_RSV_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BITS_RFC_DIRECT@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_ENABLE_PI@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	callq	_rtw_write32_mask
	movq	_REG_WLRF1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	callq	_rtw_write32_mask
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_rtw_err
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %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	_RF_CFGCH,4,2                   ## @RF_CFGCH
	.comm	_REG_RSV_CTRL,4,2               ## @REG_RSV_CTRL
	.comm	_BITS_RFC_DIRECT,4,2            ## @BITS_RFC_DIRECT
	.comm	_DISABLE_PI,4,2                 ## @DISABLE_PI
	.comm	_REG_WLRF1,4,2                  ## @REG_WLRF1
	.comm	_ENABLE_PI,4,2                  ## @ENABLE_PI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_phy_write_rf_reg           ; -- Begin function rtw_phy_write_rf_reg
	.p2align	2
_rtw_phy_write_rf_reg:                  ; @rtw_phy_write_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	x8, x1
	mov	x19, x0
	ldr	w9, [x0, #8]
	cmp	w9, w1
	b.ls	LBB0_5
; %bb.1:
	mov	x20, x4
	ldr	x9, [x19]
	ldr	x9, [x9]
	and	w25, w2, #0xff
	ldr	w8, [x9, w8, uxtw #2]
	add	w21, w8, w2, uxtb #2
Lloh0:
	adrp	x8, _RFREG_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RFREG_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w22, w8, w3
Lloh3:
	adrp	x27, _RF_CFGCH@GOTPAGE
Lloh4:
	ldr	x27, [x27, _RF_CFGCH@GOTPAGEOFF]
Lloh5:
	adrp	x26, _REG_RSV_CTRL@GOTPAGE
Lloh6:
	ldr	x26, [x26, _REG_RSV_CTRL@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh7:
	adrp	x23, _BITS_RFC_DIRECT@GOTPAGE
Lloh8:
	ldr	x23, [x23, _BITS_RFC_DIRECT@GOTPAGEOFF]
Lloh9:
	adrp	x24, _REG_WLRF1@GOTPAGE
Lloh10:
	ldr	x24, [x24, _REG_WLRF1@GOTPAGEOFF]
	cmp	w25, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	w1, [x26]
	ldr	w2, [x23]
Lloh11:
	adrp	x28, _DISABLE_PI@GOTPAGE
Lloh12:
	ldr	x28, [x28, _DISABLE_PI@GOTPAGEOFF]
	ldr	w3, [x28]
	mov	x0, x19
	bl	_rtw_write32_mask
	ldr	w1, [x24]
	ldr	w2, [x23]
	ldr	w3, [x28]
	mov	x0, x19
	bl	_rtw_write32_mask
LBB0_3:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	bl	_rtw_write32_mask
	mov	w20, #1
	mov	w0, #1
	bl	_udelay
	ldr	w8, [x27]
	cmp	w25, w8
	b.ne	LBB0_6
; %bb.4:
	ldr	w1, [x26]
	ldr	w2, [x23]
Lloh13:
	adrp	x20, _ENABLE_PI@GOTPAGE
Lloh14:
	ldr	x20, [x20, _ENABLE_PI@GOTPAGEOFF]
	ldr	w3, [x20]
	mov	x0, x19
	bl	_rtw_write32_mask
	ldr	w1, [x24]
	ldr	w2, [x23]
	ldr	w3, [x20]
	mov	x0, x19
	bl	_rtw_write32_mask
	mov	w20, #1
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x8
	bl	_rtw_err
	mov	w20, #0
LBB0_6:
	mov	x0, 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
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.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	_RF_CFGCH,4,2                   ; @RF_CFGCH
	.comm	_REG_RSV_CTRL,4,2               ; @REG_RSV_CTRL
	.comm	_BITS_RFC_DIRECT,4,2            ; @BITS_RFC_DIRECT
	.comm	_DISABLE_PI,4,2                 ; @DISABLE_PI
	.comm	_REG_WLRF1,4,2                  ; @REG_WLRF1
	.comm	_ENABLE_PI,4,2                  ; @ENABLE_PI
.subsections_via_symbols
