	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_gl_state
_rtw8822c_gl_state:                     ## @rtw8822c_gl_state
	.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	%rsi, %rbx
	movl	(%rsi), %eax
	movslq	%edx, %rcx
	leaq	l___const.rtw8822c_gl_state.txbb_bound(%rip), %rsi
	cmpl	(%rsi,%rcx,4), %eax
	jne	LBB0_2
## %bb.1:
	movq	_RTW_DPK_AGC_OUT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	xorl	%ecx, %ecx
	cmpl	$1, %edx
	setne	%cl
	leal	(%rcx,%rcx,4), %ecx
	leal	(%rax,%rcx), %r8d
	addl	$-2, %r8d
	movl	%r8d, (%rbx)
	movl	16(%rbx), %esi
	movq	_RF_TX_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BIT_GAIN_TXBB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_rtw_write_rf
	movq	$0, 8(%rbx)
	movq	_RTW_DPK_GAIN_CHECK@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @__const.rtw8822c_gl_state.txbb_bound
l___const.rtw8822c_gl_state.txbb_bound:
	.long	31                              ## 0x1f
	.long	0                               ## 0x0

	.comm	_RTW_DPK_AGC_OUT,4,2            ## @RTW_DPK_AGC_OUT
	.comm	_RF_TX_GAIN,4,2                 ## @RF_TX_GAIN
	.comm	_BIT_GAIN_TXBB,4,2              ## @BIT_GAIN_TXBB
	.comm	_RTW_DPK_GAIN_CHECK,4,2         ## @RTW_DPK_GAIN_CHECK
	.no_dead_strip	_rtw8822c_gl_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_gl_state
_rtw8822c_gl_state:                     ; @rtw8822c_gl_state
	.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
	ldr	w8, [x1]
Lloh0:
	adrp	x9, l___const.rtw8822c_gl_state.txbb_bound@PAGE
Lloh1:
	add	x9, x9, l___const.rtw8822c_gl_state.txbb_bound@PAGEOFF
	ldr	w9, [x9, w2, sxtw #2]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _RTW_DPK_AGC_OUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RTW_DPK_AGC_OUT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x19, x1
	mov	w9, #3
	mov	w10, #-2
	cmp	w2, #1
	csel	w9, w10, w9, eq
	add	w4, w8, w9
	str	w4, [x1]
	ldr	w1, [x1, #16]
Lloh4:
	adrp	x8, _RF_TX_GAIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RF_TX_GAIN@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _BIT_GAIN_TXBB@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BIT_GAIN_TXBB@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	bl	_rtw_write_rf
	str	xzr, [x19, #8]
Lloh10:
	adrp	x8, _RTW_DPK_GAIN_CHECK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RTW_DPK_GAIN_CHECK@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.rtw8822c_gl_state.txbb_bound
l___const.rtw8822c_gl_state.txbb_bound:
	.long	31                              ; 0x1f
	.long	0                               ; 0x0

	.comm	_RTW_DPK_AGC_OUT,4,2            ; @RTW_DPK_AGC_OUT
	.comm	_RF_TX_GAIN,4,2                 ; @RF_TX_GAIN
	.comm	_BIT_GAIN_TXBB,4,2              ; @BIT_GAIN_TXBB
	.comm	_RTW_DPK_GAIN_CHECK,4,2         ; @RTW_DPK_GAIN_CHECK
	.no_dead_strip	_rtw8822c_gl_state
.subsections_via_symbols
