	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8821ae_dm_get_swing_index
_rtl8821ae_dm_get_swing_index:          ## @rtl8821ae_dm_get_swing_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_rtl_priv
	movl	%eax, %edi
	callq	_rtl_hal
	movl	(%rax), %esi
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_phy_get_tx_swing_8812A
	movq	%rax, %rcx
	movq	_TXSCALE_TABLE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	_rtl8821ae_txscaling_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rsi,%rax,8), %rcx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rax, %rdx
	jne	LBB0_3
## %bb.5:
	movq	%rdx, %rax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RF90_PATH_A,4,2                ## @RF90_PATH_A
	.comm	_TXSCALE_TABLE_SIZE,8,3         ## @TXSCALE_TABLE_SIZE
	.comm	_rtl8821ae_txscaling_table,8,3  ## @rtl8821ae_txscaling_table
	.no_dead_strip	_rtl8821ae_dm_get_swing_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8821ae_dm_get_swing_index
_rtl8821ae_dm_get_swing_index:          ; @rtl8821ae_dm_get_swing_index
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_rtl_priv
	bl	_rtl_hal
	ldr	w1, [x0]
Lloh0:
	adrp	x8, _RF90_PATH_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RF90_PATH_A@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_get_tx_swing_8812A
Lloh3:
	adrp	x9, _TXSCALE_TABLE_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TXSCALE_TABLE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cbz	x9, LBB0_5
; %bb.1:
	mov	x8, x0
	mov	x0, #0
Lloh6:
	adrp	x10, _rtl8821ae_txscaling_table@GOTPAGE
Lloh7:
	ldr	x10, [x10, _rtl8821ae_txscaling_table@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x0, lsl #3]
	cmp	x8, x11
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, #1
	cmp	x9, x0
	b.ne	LBB0_2
; %bb.4:
	mov	x0, x9
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RF90_PATH_A,4,2                ; @RF90_PATH_A
	.comm	_TXSCALE_TABLE_SIZE,8,3         ; @TXSCALE_TABLE_SIZE
	.comm	_rtl8821ae_txscaling_table,8,3  ; @rtl8821ae_txscaling_table
	.no_dead_strip	_rtl8821ae_dm_get_swing_index
.subsections_via_symbols
