	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_set_vgc
_rt2800_set_vgc:                        ## @rt2800_set_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	%edx, (%rsi)
	je	LBB0_9
## %bb.1:
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_RT3572@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_RT3593@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_RT3883@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	_RT5592@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	cmpl	$-64, 4(%r14)
	movl	$74, %eax
	movl	$122, %edx
	cmovgel	%eax, %edx
	movq	%r15, %rdi
	movl	$83, %esi
	callq	_rt2800_bbp_write
LBB0_4:
	movq	%r15, %rdi
	movl	$66, %esi
	movl	%ebx, %edx
	callq	_rt2800_bbp_write_with_rx_chain
LBB0_8:
	movl	%ebx, (%r14)
	movl	%ebx, 8(%r14)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	movl	$66, %esi
	movl	%ebx, %edx
	callq	_rt2800_bbp_write
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_RT3572,4,2                     ## @RT3572
	.comm	_RT3593,4,2                     ## @RT3593
	.comm	_RT3883,4,2                     ## @RT3883
	.comm	_RT5592,4,2                     ## @RT5592
	.no_dead_strip	_rt2800_set_vgc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800_set_vgc
_rt2800_set_vgc:                        ; @rt2800_set_vgc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x1]
	cmp	w8, w2
	b.eq	LBB0_8
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _RT3572@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RT3572@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rt2x00_rt
	cbnz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _RT3593@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RT3593@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rt2x00_rt
	cbnz	x0, LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _RT3883@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RT3883@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rt2x00_rt
	cbnz	x0, LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _RT5592@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RT5592@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rt2x00_rt
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w8, [x20, #4]
	cmn	w8, #65
	mov	w8, #122
	mov	w9, #74
	csel	w2, w9, w8, gt
	mov	x0, x21
	mov	w1, #83
	bl	_rt2800_bbp_write
LBB0_6:
	mov	x0, x21
	mov	w1, #66
	mov	x2, x19
	bl	_rt2800_bbp_write_with_rx_chain
LBB0_7:
	str	w19, [x20]
	str	w19, [x20, #8]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x21
	mov	w1, #66
	mov	x2, x19
	bl	_rt2800_bbp_write
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RT3572,4,2                     ; @RT3572
	.comm	_RT3593,4,2                     ; @RT3593
	.comm	_RT3883,4,2                     ; @RT3883
	.comm	_RT5592,4,2                     ; @RT5592
	.no_dead_strip	_rt2800_set_vgc
.subsections_via_symbols
