	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_get_default_vgc
_rt2800_get_default_vgc:                ## @rt2800_get_default_vgc
	.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
	movq	(%rdi), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.1:
	movq	_RT3070@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_12
## %bb.2:
	movq	_RT3071@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_12
## %bb.3:
	movq	_RT3090@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_12
## %bb.4:
	movq	_RT3290@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_12
## %bb.5:
	movq	_RT3390@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_12
## %bb.6:
	movq	_RT3572@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_12
## %bb.7:
	movq	_RT3593@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:
	movq	_RT5390@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:
	movq	_RT5392@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	movq	_RT5592@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_RT6352@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	je	LBB0_13
LBB0_12:
	movl	8(%rbx), %eax
	addl	%eax, %eax
	addl	$28, %eax
	jmp	LBB0_22
LBB0_14:
	movq	_RT3593@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	_RT3883@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	je	LBB0_17
LBB0_16:
	movl	8(%rbx), %eax
	leal	(%rax,%rax,4), %eax
	cltq
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$32, %rcx
	shrq	$63, %rax
	addl	%ecx, %eax
	addl	$32, %eax
LBB0_22:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_17:
	movq	_RT5592@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movl	8(%rbx), %eax
	addl	%eax, %eax
	addl	$36, %eax
	jmp	LBB0_22
LBB0_19:
	movq	_CONFIG_CHANNEL_HT40@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	callq	_test_bit
	movl	%eax, %ecx
	movl	8(%rbx), %eax
	leal	(%rax,%rax,4), %eax
	cltq
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rdx
	shrq	$63, %rdx
	shrq	$32, %rax
	addl	%edx, %eax
	testl	%ecx, %ecx
	je	LBB0_20
## %bb.21:
	addl	$58, %eax
	jmp	LBB0_22
LBB0_20:
	addl	$50, %eax
	jmp	LBB0_22
LBB0_13:
	movl	8(%rbx), %eax
	addl	$46, %eax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_RT3070,4,2                     ## @RT3070
	.comm	_RT3071,4,2                     ## @RT3071
	.comm	_RT3090,4,2                     ## @RT3090
	.comm	_RT3290,4,2                     ## @RT3290
	.comm	_RT3390,4,2                     ## @RT3390
	.comm	_RT3572,4,2                     ## @RT3572
	.comm	_RT3593,4,2                     ## @RT3593
	.comm	_RT5390,4,2                     ## @RT5390
	.comm	_RT5392,4,2                     ## @RT5392
	.comm	_RT5592,4,2                     ## @RT5592
	.comm	_RT6352,4,2                     ## @RT6352
	.comm	_RT3883,4,2                     ## @RT3883
	.comm	_CONFIG_CHANNEL_HT40,4,2        ## @CONFIG_CHANNEL_HT40
	.no_dead_strip	_rt2800_get_default_vgc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800_get_default_vgc
_rt2800_get_default_vgc:                ; @rt2800_get_default_vgc
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.1:
Lloh3:
	adrp	x8, _RT3070@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RT3070@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_12
; %bb.2:
Lloh6:
	adrp	x8, _RT3071@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RT3071@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_12
; %bb.3:
Lloh9:
	adrp	x8, _RT3090@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RT3090@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_12
; %bb.4:
Lloh12:
	adrp	x8, _RT3290@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RT3290@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_12
; %bb.5:
Lloh15:
	adrp	x8, _RT3390@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RT3390@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_12
; %bb.6:
Lloh18:
	adrp	x8, _RT3572@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RT3572@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_12
; %bb.7:
Lloh21:
	adrp	x8, _RT3593@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RT3593@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_12
; %bb.8:
Lloh24:
	adrp	x8, _RT5390@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RT5390@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_12
; %bb.9:
Lloh27:
	adrp	x8, _RT5392@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RT5392@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_12
; %bb.10:
Lloh30:
	adrp	x8, _RT5592@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RT5592@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_12
; %bb.11:
Lloh33:
	adrp	x8, _RT6352@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RT6352@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbz	x0, LBB0_20
LBB0_12:
	ldr	w8, [x19, #8]
	lsl	w8, w8, #1
	add	w0, w8, #28
	b	LBB0_16
LBB0_13:
Lloh36:
	adrp	x8, _RT3593@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RT3593@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_15
; %bb.14:
Lloh39:
	adrp	x8, _RT3883@GOTPAGE
Lloh40:
	ldr	x8, [x8, _RT3883@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbz	x0, LBB0_17
LBB0_15:
	ldr	w8, [x19, #8]
	add	w8, w8, w8, lsl #2
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	add	w0, w8, #32
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh42:
	adrp	x8, _RT5592@GOTPAGE
Lloh43:
	ldr	x8, [x8, _RT5592@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbz	x0, LBB0_19
; %bb.18:
	ldr	w8, [x19, #8]
	lsl	w8, w8, #1
	add	w0, w8, #36
	b	LBB0_16
LBB0_19:
Lloh45:
	adrp	x8, _CONFIG_CHANNEL_HT40@GOTPAGE
Lloh46:
	ldr	x8, [x8, _CONFIG_CHANNEL_HT40@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	add	x1, x19, #12
	bl	_test_bit
	ldr	w8, [x19, #8]
	add	w8, w8, w8, lsl #2
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	add	w9, w8, #58
	add	w8, w8, #50
	cmp	w0, #0
	csel	w0, w9, w8, ne
	b	LBB0_16
LBB0_20:
	ldr	w8, [x19, #8]
	add	w0, w8, #46
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_RT3070,4,2                     ; @RT3070
	.comm	_RT3071,4,2                     ; @RT3071
	.comm	_RT3090,4,2                     ; @RT3090
	.comm	_RT3290,4,2                     ; @RT3290
	.comm	_RT3390,4,2                     ; @RT3390
	.comm	_RT3572,4,2                     ; @RT3572
	.comm	_RT3593,4,2                     ; @RT3593
	.comm	_RT5390,4,2                     ; @RT5390
	.comm	_RT5392,4,2                     ; @RT5392
	.comm	_RT5592,4,2                     ; @RT5592
	.comm	_RT6352,4,2                     ; @RT6352
	.comm	_RT3883,4,2                     ; @RT3883
	.comm	_CONFIG_CHANNEL_HT40,4,2        ; @CONFIG_CHANNEL_HT40
	.no_dead_strip	_rt2800_get_default_vgc
.subsections_via_symbols
