	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl88e_dm_update_rx_idle_ant
_rtl88e_dm_update_rx_idle_ant:          ## @rtl88e_dm_update_rx_idle_ant
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_rtl_priv
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_efuse
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_dm
	cmpq	%rbx, (%rax)
	je	LBB0_6
## %bb.1:
	movq	_COMP_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rcx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	xorl	%eax, %eax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	callq	_RT_TRACE
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	_MAIN_ANT@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	movq	_CG_TRX_HW_ANTDIV@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_MAIN_ANT_CG_TRX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_AUX_ANT_CG_TRX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	movl	%eax, %esi
	cmovel	%ecx, %esi
	movq	_MAIN_ANT_CGCS_RX@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r14d
	movq	_AUX_ANT_CGCS_RX@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movl	%edi, %edx
	cmovel	%r14d, %edx
	cmovel	%eax, %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmovel	%edi, %r14d
	cmpq	%r8, (%rax)
	cmovel	%esi, %edx
	cmovel	%ecx, %r14d
	movq	(%r12), %rsi
	cmpq	%r8, %rsi
	jne	LBB0_3
## %bb.2:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_DM_REG_RX_ANT_CTRL_11N@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$5, %edi
	movl	%edx, %r13d
	callq	_BIT
	movl	%eax, %r12d
	movl	$4, %edi
	callq	_BIT
	orl	%eax, %r12d
	movl	$3, %edi
	callq	_BIT
	orl	%eax, %r12d
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_rtl_set_bbreg
	movl	(%rbx), %ebx
	movl	$8, %edi
	callq	_BIT
	movl	%eax, %r12d
	movl	$7, %edi
	callq	_BIT
	orl	%eax, %r12d
	movl	$6, %edi
	callq	_BIT
	orl	%eax, %r12d
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_rtl_set_bbreg
	movq	_DM_REG_ANTSEL_CTRL_11N@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$14, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$13, %edi
	callq	_BIT
	orl	%eax, %ebx
	movl	$12, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%r13d, %r12d
	movl	%r13d, %ecx
	callq	_rtl_set_bbreg
	movq	_DM_REG_RESP_TX_11N@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$6, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$7, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%r12d, %ecx
	jmp	LBB0_5
LBB0_3:
	movq	_CGCS_RX_HW_ANTDIV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jne	LBB0_6
## %bb.4:
	movq	_DM_REG_RX_ANT_CTRL_11N@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$5, %edi
	movl	%edx, %r12d
	callq	_BIT
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %ebx
	movl	$4, %edi
	callq	_BIT
	orl	%eax, %ebx
	movl	$3, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_rtl_set_bbreg
	movq	_DM_REG_RX_ANT_CTRL_11N@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$8, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$7, %edi
	callq	_BIT
	orl	%eax, %ebx
	movl	$6, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%r14d, %ecx
LBB0_5:
	callq	_rtl_set_bbreg
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:
	movq	%rbx, (%rax)
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAIN_ANT@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.1(%rip), %rcx
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"need to update rx idle ant\n"

	.comm	_MAIN_ANT,8,3                   ## @MAIN_ANT
	.comm	_CG_TRX_HW_ANTDIV,8,3           ## @CG_TRX_HW_ANTDIV
	.comm	_MAIN_ANT_CG_TRX,4,2            ## @MAIN_ANT_CG_TRX
	.comm	_MAIN_ANT_CGCS_RX,4,2           ## @MAIN_ANT_CGCS_RX
	.comm	_AUX_ANT_CG_TRX,4,2             ## @AUX_ANT_CG_TRX
	.comm	_AUX_ANT_CGCS_RX,4,2            ## @AUX_ANT_CGCS_RX
	.comm	_DM_REG_RX_ANT_CTRL_11N,4,2     ## @DM_REG_RX_ANT_CTRL_11N
	.comm	_DM_REG_ANTSEL_CTRL_11N,4,2     ## @DM_REG_ANTSEL_CTRL_11N
	.comm	_DM_REG_RESP_TX_11N,4,2         ## @DM_REG_RESP_TX_11N
	.comm	_CGCS_RX_HW_ANTDIV,8,3          ## @CGCS_RX_HW_ANTDIV
L_.str.1:                               ## @.str.1
	.asciz	"RxIdleAnt %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"MAIN_ANT"

L_.str.3:                               ## @.str.3
	.asciz	"AUX_ANT"

	.no_dead_strip	_rtl88e_dm_update_rx_idle_ant
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl88e_dm_update_rx_idle_ant
_rtl88e_dm_update_rx_idle_ant:          ; @rtl88e_dm_update_rx_idle_ant
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x21, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x21
	bl	_rtl_priv
	bl	_rtl_efuse
	mov	x25, x0
	mov	x0, x21
	bl	_rtl_priv
	bl	_rtl_dm
	mov	x22, x0
Lloh0:
	adrp	x26, _COMP_INIT@GOTPAGE
Lloh1:
	ldr	x26, [x26, _COMP_INIT@GOTPAGEOFF]
	ldr	x8, [x0]
Lloh2:
	adrp	x28, _DBG_LOUD@GOTPAGE
Lloh3:
	ldr	x28, [x28, _DBG_LOUD@GOTPAGEOFF]
Lloh4:
	adrp	x27, _MAIN_ANT@GOTPAGE
Lloh5:
	ldr	x27, [x27, _MAIN_ANT@GOTPAGEOFF]
	cmp	x8, x20
	b.eq	LBB0_6
; %bb.1:
	ldr	w1, [x26]
	ldr	w2, [x28]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	x8, [x27]
Lloh8:
	adrp	x9, _CG_TRX_HW_ANTDIV@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CG_TRX_HW_ANTDIV@GOTPAGEOFF]
	ldr	x10, [x22]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x11, _MAIN_ANT_CG_TRX@GOTPAGE
Lloh12:
	ldr	x11, [x11, _MAIN_ANT_CG_TRX@GOTPAGEOFF]
Lloh13:
	adrp	x12, _AUX_ANT_CG_TRX@GOTPAGE
Lloh14:
	ldr	x12, [x12, _AUX_ANT_CG_TRX@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
Lloh16:
	ldr	w12, [x12]
	cmp	x8, x20
	csel	w8, w11, w12, eq
Lloh17:
	adrp	x13, _MAIN_ANT_CGCS_RX@GOTPAGE
Lloh18:
	ldr	x13, [x13, _MAIN_ANT_CGCS_RX@GOTPAGEOFF]
Lloh19:
	ldr	w13, [x13]
Lloh20:
	adrp	x14, _AUX_ANT_CGCS_RX@GOTPAGE
Lloh21:
	ldr	x14, [x14, _AUX_ANT_CGCS_RX@GOTPAGEOFF]
Lloh22:
	ldr	w14, [x14]
	csel	w15, w13, w14, eq
	csel	w11, w12, w11, eq
	csel	w12, w14, w13, eq
	cmp	x10, x9
	csel	w23, w8, w15, eq
	csel	w24, w11, w12, eq
	ldr	x8, [x25]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh23:
	adrp	x27, _DM_REG_RX_ANT_CTRL_11N@GOTPAGE
Lloh24:
	ldr	x27, [x27, _DM_REG_RX_ANT_CTRL_11N@GOTPAGEOFF]
	ldr	w25, [x27]
	mov	w0, #5
	bl	_BIT
	mov	x26, x0
	mov	w0, #4
	bl	_BIT
	orr	w26, w0, w26
	mov	w0, #3
	bl	_BIT
	orr	w2, w26, w0
	mov	x0, x21
	mov	x1, x25
	mov	x3, x23
	bl	_rtl_set_bbreg
	ldr	w25, [x27]
Lloh25:
	adrp	x27, _MAIN_ANT@GOTPAGE
Lloh26:
	ldr	x27, [x27, _MAIN_ANT@GOTPAGEOFF]
	mov	w0, #8
	bl	_BIT
	mov	x26, x0
	mov	w0, #7
	bl	_BIT
	orr	w26, w0, w26
	mov	w0, #6
	bl	_BIT
	orr	w2, w26, w0
Lloh27:
	adrp	x26, _COMP_INIT@GOTPAGE
Lloh28:
	ldr	x26, [x26, _COMP_INIT@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x25
	mov	x3, x24
	bl	_rtl_set_bbreg
Lloh29:
	adrp	x8, _DM_REG_ANTSEL_CTRL_11N@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DM_REG_ANTSEL_CTRL_11N@GOTPAGEOFF]
Lloh31:
	ldr	w24, [x8]
	mov	w0, #14
	bl	_BIT
	mov	x25, x0
	mov	w0, #13
	bl	_BIT
	orr	w25, w0, w25
	mov	w0, #12
	bl	_BIT
	orr	w2, w25, w0
	mov	x0, x21
	mov	x1, x24
	mov	x3, x23
	bl	_rtl_set_bbreg
Lloh32:
	adrp	x8, _DM_REG_RESP_TX_11N@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DM_REG_RESP_TX_11N@GOTPAGEOFF]
Lloh34:
	ldr	w24, [x8]
	mov	w0, #6
	bl	_BIT
	mov	x25, x0
	mov	w0, #7
	bl	_BIT
	orr	w2, w0, w25
	mov	x0, x21
	mov	x1, x24
	mov	x3, x23
	b	LBB0_5
LBB0_3:
Lloh35:
	adrp	x9, _CGCS_RX_HW_ANTDIV@GOTPAGE
Lloh36:
	ldr	x9, [x9, _CGCS_RX_HW_ANTDIV@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
Lloh38:
	adrp	x27, _DM_REG_RX_ANT_CTRL_11N@GOTPAGE
Lloh39:
	ldr	x27, [x27, _DM_REG_RX_ANT_CTRL_11N@GOTPAGEOFF]
	ldr	w25, [x27]
	mov	w0, #5
	bl	_BIT
	mov	x26, x0
	mov	w0, #4
	bl	_BIT
	orr	w26, w0, w26
	mov	w0, #3
	bl	_BIT
	orr	w2, w26, w0
Lloh40:
	adrp	x26, _COMP_INIT@GOTPAGE
Lloh41:
	ldr	x26, [x26, _COMP_INIT@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x25
	mov	x3, x23
	bl	_rtl_set_bbreg
	ldr	w23, [x27]
Lloh42:
	adrp	x27, _MAIN_ANT@GOTPAGE
Lloh43:
	ldr	x27, [x27, _MAIN_ANT@GOTPAGEOFF]
	mov	w0, #8
	bl	_BIT
	mov	x25, x0
	mov	w0, #7
	bl	_BIT
	orr	w25, w0, w25
	mov	w0, #6
	bl	_BIT
	orr	w2, w25, w0
	mov	x0, x21
	mov	x1, x23
	mov	x3, x24
LBB0_5:
	bl	_rtl_set_bbreg
LBB0_6:
	str	x20, [x22]
	ldr	w1, [x26]
	ldr	w2, [x28]
	ldr	x8, [x27]
Lloh44:
	adrp	x9, l_.str.3@PAGE
Lloh45:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh46:
	adrp	x10, l_.str.2@PAGE
Lloh47:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, x20
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh48:
	adrp	x3, l_.str.1@PAGE
Lloh49:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"need to update rx idle ant\n"

	.comm	_MAIN_ANT,8,3                   ; @MAIN_ANT
	.comm	_CG_TRX_HW_ANTDIV,8,3           ; @CG_TRX_HW_ANTDIV
	.comm	_MAIN_ANT_CG_TRX,4,2            ; @MAIN_ANT_CG_TRX
	.comm	_MAIN_ANT_CGCS_RX,4,2           ; @MAIN_ANT_CGCS_RX
	.comm	_AUX_ANT_CG_TRX,4,2             ; @AUX_ANT_CG_TRX
	.comm	_AUX_ANT_CGCS_RX,4,2            ; @AUX_ANT_CGCS_RX
	.comm	_DM_REG_RX_ANT_CTRL_11N,4,2     ; @DM_REG_RX_ANT_CTRL_11N
	.comm	_DM_REG_ANTSEL_CTRL_11N,4,2     ; @DM_REG_ANTSEL_CTRL_11N
	.comm	_DM_REG_RESP_TX_11N,4,2         ; @DM_REG_RESP_TX_11N
	.comm	_CGCS_RX_HW_ANTDIV,8,3          ; @CGCS_RX_HW_ANTDIV
l_.str.1:                               ; @.str.1
	.asciz	"RxIdleAnt %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"MAIN_ANT"

l_.str.3:                               ; @.str.3
	.asciz	"AUX_ANT"

	.no_dead_strip	_rtl88e_dm_update_rx_idle_ant
.subsections_via_symbols
