	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8723be_dm_txpower_track_adjust ## -- Begin function rtl8723be_dm_txpower_track_adjust
	.p2align	4, 0x90
_rtl8723be_dm_txpower_track_adjust:     ## @rtl8723be_dm_txpower_track_adjust
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_dm
	cmpq	$1, %r13
	je	LBB0_6
## %bb.1:
	testq	%r13, %r13
	jne	LBB0_2
## %bb.3:
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movq	8(%r12), %rdx
	movq	(%rcx,%rax,8), %rcx
	movq	(%rdx,%rax,8), %rdx
	jmp	LBB0_4
LBB0_6:
	movq	(%rax), %rcx
	movq	8(%rax), %rdx
LBB0_4:
	movq	%rdx, %rax
	subq	%rcx, %rax
	jle	LBB0_5
## %bb.7:
	movq	$2, (%r15)
	jmp	LBB0_8
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	movq	$1, (%r15)
	subq	%rdx, %rcx
	movq	%rcx, %rax
LBB0_8:
	movq	_TXPWRTRACK_MAX_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_10
## %bb.9:
	cmpq	$1, (%r15)
	cmoveq	%rcx, %rax
LBB0_10:
	movq	%rax, %rcx
	shlq	$8, %rcx
	orq	%rax, %rcx
	movq	%rax, %rdx
	shlq	$16, %rdx
	shlq	$24, %rax
	orq	%rdx, %rax
	orq	%rcx, %rax
	movq	%rax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RF90_PATH_A,8,3                ## @RF90_PATH_A
	.comm	_TXPWRTRACK_MAX_IDX,8,3         ## @TXPWRTRACK_MAX_IDX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8723be_dm_txpower_track_adjust ; -- Begin function rtl8723be_dm_txpower_track_adjust
	.p2align	2
_rtl8723be_dm_txpower_track_adjust:     ; @rtl8723be_dm_txpower_track_adjust
	.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	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	bl	_rtl_priv
	mov	x21, x0
	mov	x0, x23
	bl	_rtl_priv
	bl	_rtl_dm
	cmp	x22, #1
	b.eq	LBB0_4
; %bb.1:
	cbnz	x22, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _RF90_PATH_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RF90_PATH_A@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	x8, x8, #3
	ldp	x9, x10, [x21]
	ldr	x9, [x9, x8]
	ldr	x10, [x10, x8]
	subs	x8, x10, x9
	b.gt	LBB0_5
LBB0_3:
	mov	w8, #1
	str	x8, [x20]
	sub	x8, x9, x10
	b	LBB0_7
LBB0_4:
	ldp	x9, x10, [x0]
	subs	x8, x10, x9
	b.le	LBB0_3
LBB0_5:
	mov	w9, #2
	str	x9, [x20]
	b	LBB0_7
LBB0_6:
	mov	x8, #0
LBB0_7:
Lloh3:
	adrp	x9, _TXPWRTRACK_MAX_IDX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TXPWRTRACK_MAX_IDX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_9
; %bb.8:
	ldr	x10, [x20]
	cmp	x10, #1
	csel	x8, x9, x8, eq
LBB0_9:
	orr	x9, x8, x8, lsl #8
	orr	x9, x9, x8, lsl #16
	orr	x8, x9, x8, lsl #24
	str	x8, [x19]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RF90_PATH_A,8,3                ; @RF90_PATH_A
	.comm	_TXPWRTRACK_MAX_IDX,8,3         ; @TXPWRTRACK_MAX_IDX
.subsections_via_symbols
