	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92s_dm_switch_baseband_mrc
__rtl92s_dm_switch_baseband_mrc:        ## @_rtl92s_dm_switch_baseband_mrc
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, %r15
	movl	$1, -36(%rbp)
	movq	%rbx, %rdi
	callq	_is_hal_stop
	testq	%rax, %rax
	je	LBB0_1
LBB0_20:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	24(%r14), %rax
	movq	_RF_1T1R@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
## %bb.2:
	movq	_RF_2T2R@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
## %bb.3:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_MRC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	callq	*8(%rax)
	movq	(%r15), %rax
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	jge	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_5:
	cmpq	$0, 16(%r14)
	movl	$0, %edx
	jle	LBB0_7
## %bb.6:
	movq	8(%r14), %rax
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	_RF90_PATH_B@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rax,%rdx,4), %edx
LBB0_7:
	movq	8(%r15), %rsi
	movq	_WIRELESS_MODE_B@GOTPCREL(%rip), %rdi
	movl	$1, %eax
	cmpq	(%rdi), %rsi
	je	LBB0_18
## %bb.8:
	movl	%ecx, %esi
	orl	%edx, %esi
	je	LBB0_17
## %bb.9:
	cmpl	$31, %edx
	jl	LBB0_10
LBB0_17:
	movl	$1, -36(%rbp)
LBB0_18:
	cmpl	-40(%rbp), %eax
	je	LBB0_20
## %bb.19:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rbx), %esi
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	callq	*(%rax)
	jmp	LBB0_20
LBB0_10:
	cmpl	$4, %edx
	jle	LBB0_11
## %bb.12:
	cmpl	$16, %ecx
	jl	LBB0_17
## %bb.13:
	subl	%edx, %ecx
	jl	LBB0_17
## %bb.14:
	cmpl	$16, %ecx
	jl	LBB0_15
LBB0_11:
	movl	$0, -36(%rbp)
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_15:
	cmpl	$9, %ecx
	jle	LBB0_17
## %bb.16:
	movl	-40(%rbp), %eax
	movl	%eax, -36(%rbp)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_RF_1T1R,8,3                    ## @RF_1T1R
	.comm	_RF_2T2R,8,3                    ## @RF_2T2R
	.comm	_HW_VAR_MRC,4,2                 ## @HW_VAR_MRC
	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_RF90_PATH_A,8,3                ## @RF90_PATH_A
	.comm	_RF90_PATH_B,8,3                ## @RF90_PATH_B
	.comm	_WIRELESS_MODE_B,8,3            ## @WIRELESS_MODE_B
	.no_dead_strip	__rtl92s_dm_switch_baseband_mrc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92s_dm_switch_baseband_mrc
__rtl92s_dm_switch_baseband_mrc:        ; @_rtl92s_dm_switch_baseband_mrc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x22, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x21, x0
	mov	w8, #1
	str	w8, [sp, #8]
	mov	x0, x22
	bl	_is_hal_stop
	cbnz	x0, LBB0_14
; %bb.1:
	ldr	x8, [x20, #24]
Lloh0:
	adrp	x9, _RF_1T1R@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RF_1T1R@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _RF_2T2R@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RF_2T2R@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_14
; %bb.2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
Lloh6:
	adrp	x22, _HW_VAR_MRC@GOTPAGE
Lloh7:
	ldr	x22, [x22, _HW_VAR_MRC@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _MAC80211_LINKED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MAC80211_LINKED@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_5
; %bb.3:
	ldr	x8, [x20, #16]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	x9, [x20, #8]
Lloh11:
	adrp	x8, _RF90_PATH_A@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RF90_PATH_A@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w8, [x9, x8, lsl #2]
Lloh14:
	adrp	x10, _RF90_PATH_B@GOTPAGE
Lloh15:
	ldr	x10, [x10, _RF90_PATH_B@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	ldr	w9, [x9, x10, lsl #2]
	b	LBB0_6
LBB0_5:
	mov	w8, #0
	mov	w9, #0
LBB0_6:
	ldr	x10, [x21, #8]
Lloh17:
	adrp	x11, _WIRELESS_MODE_B@GOTPAGE
Lloh18:
	ldr	x11, [x11, _WIRELESS_MODE_B@GOTPAGEOFF]
Lloh19:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_8
; %bb.7:
	mov	w8, #1
	b	LBB0_12
LBB0_8:
	orr	w10, w8, w9
	cbz	w10, LBB0_10
; %bb.9:
	cmp	w9, #31
	b.lt	LBB0_15
LBB0_10:
	mov	w8, #1
LBB0_11:
	str	w8, [sp, #8]
LBB0_12:
	ldr	w9, [sp, #12]
	cmp	w8, w9
	b.eq	LBB0_14
; %bb.13:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
LBB0_14:
	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
	add	sp, sp, #64
	ret
LBB0_15:
	cmp	w9, #4
	b.le	LBB0_19
; %bb.16:
	cmp	w8, #16
	b.lt	LBB0_10
; %bb.17:
	subs	w8, w8, w9
	b.lt	LBB0_10
; %bb.18:
	cmp	w8, #16
	b.lt	LBB0_20
LBB0_19:
	mov	w8, #0
	str	wzr, [sp, #8]
	b	LBB0_12
LBB0_20:
	cmp	w8, #9
	b.le	LBB0_10
; %bb.21:
	ldr	w8, [sp, #12]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_RF_1T1R,8,3                    ; @RF_1T1R
	.comm	_RF_2T2R,8,3                    ; @RF_2T2R
	.comm	_HW_VAR_MRC,4,2                 ; @HW_VAR_MRC
	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_RF90_PATH_A,8,3                ; @RF90_PATH_A
	.comm	_RF90_PATH_B,8,3                ; @RF90_PATH_B
	.comm	_WIRELESS_MODE_B,8,3            ; @WIRELESS_MODE_B
	.no_dead_strip	__rtl92s_dm_switch_baseband_mrc
.subsections_via_symbols
