	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92s_set_antennadiff
__rtl92s_set_antennadiff:               ## @_rtl92s_set_antennadiff
	.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
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_efuse
	movq	%rax, %r12
	movq	(%r14), %rax
	movq	_RF_2T2R@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	8(%r13), %eax
	subl	(%r13), %eax
	cmpl	$7, %eax
	movl	$7, %ecx
	cmovll	%eax, %ecx
	cmpl	$-7, %ecx
	movl	$-8, %r8d
	cmovgel	%ecx, %r8d
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r8d, %ebx
	andl	$15, %ebx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%ebx, %r9d
	callq	_RT_TRACE
LBB0_2:
	movq	(%r12), %rax
	movq	$0, 4(%rax)
	movl	%ebx, (%rax)
	movq	_RFPGA0_TXGAINSTAGE@GOTPCREL(%rip), %r12
	movq	_BXBTXAGC@GOTPCREL(%rip), %rax
	movq	_BXCTXAGC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	(%r12), %esi
	movq	_BXDTXAGC@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_rtl_set_bbreg
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %r8d
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movl	%ebx, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RF_2T2R,8,3                    ## @RF_2T2R
	.comm	_COMP_POWER,4,2                 ## @COMP_POWER
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Antenna Diff from RF-B to RF-A = %d (0x%x)\n"

	.comm	_RFPGA0_TXGAINSTAGE,4,2         ## @RFPGA0_TXGAINSTAGE
	.comm	_BXBTXAGC,4,2                   ## @BXBTXAGC
	.comm	_BXCTXAGC,4,2                   ## @BXCTXAGC
	.comm	_BXDTXAGC,4,2                   ## @BXDTXAGC
L_.str.1:                               ## @.str.1
	.asciz	"Write BCD-Diff(0x%x) = 0x%x\n"

	.no_dead_strip	__rtl92s_set_antennadiff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92s_set_antennadiff
__rtl92s_set_antennadiff:               ; @_rtl92s_set_antennadiff
	.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	x21, x1
	mov	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_efuse
	mov	x22, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _RF_2T2R@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RF_2T2R@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x23, _COMP_POWER@GOTPAGE
Lloh4:
	ldr	x23, [x23, _COMP_POWER@GOTPAGEOFF]
Lloh5:
	adrp	x24, _DBG_LOUD@GOTPAGE
Lloh6:
	ldr	x24, [x24, _DBG_LOUD@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x21, #8]
	ldr	w9, [x21]
	sub	w8, w8, w9
	mov	w9, #7
	cmp	w8, #7
	csel	w8, w8, w9, lt
	cmn	w8, #8
	mov	w9, #-8
	csel	w4, w8, w9, gt
	ldr	w1, [x23]
	ldr	w2, [x24]
	and	w21, w4, #0xf
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x5, x21
	bl	_RT_TRACE
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
	ldr	x8, [x22]
	stp	wzr, wzr, [x8, #4]
	str	w21, [x8]
Lloh9:
	adrp	x22, _RFPGA0_TXGAINSTAGE@GOTPAGE
Lloh10:
	ldr	x22, [x22, _RFPGA0_TXGAINSTAGE@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh11:
	adrp	x8, _BXBTXAGC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BXBTXAGC@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _BXCTXAGC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BXCTXAGC@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _BXDTXAGC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BXDTXAGC@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	mov	x3, x21
	bl	_rtl_set_bbreg
	ldr	w1, [x23]
	ldr	w2, [x24]
	ldr	w4, [x22]
Lloh20:
	adrp	x3, l_.str.1@PAGE
Lloh21:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x5, x21
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RF_2T2R,8,3                    ; @RF_2T2R
	.comm	_COMP_POWER,4,2                 ; @COMP_POWER
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Antenna Diff from RF-B to RF-A = %d (0x%x)\n"

	.comm	_RFPGA0_TXGAINSTAGE,4,2         ; @RFPGA0_TXGAINSTAGE
	.comm	_BXBTXAGC,4,2                   ; @BXBTXAGC
	.comm	_BXCTXAGC,4,2                   ; @BXCTXAGC
	.comm	_BXDTXAGC,4,2                   ; @BXDTXAGC
l_.str.1:                               ; @.str.1
	.asciz	"Write BCD-Diff(0x%x) = 0x%x\n"

	.no_dead_strip	__rtl92s_set_antennadiff
.subsections_via_symbols
