	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_init_agc_gain          ## -- Begin function mt76x02_init_agc_gain
	.p2align	4, 0x90
_mt76x02_init_agc_gain:                 ## @mt76x02_init_agc_gain
	.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
	movq	%rdi, %rbx
	movq	_AGC@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	$8, %esi
	callq	_MT_BBP
	movq	_MT_BBP_AGC_GAIN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mt76_get_field
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movl	(%r14), %edi
	movl	$9, %esi
	callq	_MT_BBP
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mt76_get_field
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movl	16(%rbx), %edi
	movq	8(%rbx), %rsi
	movl	$4, %edx
	callq	_memcpy
	movabsq	$8589934591, %rax               ## imm = 0x1FFFFFFFF
	movq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AGC,4,2                        ## @AGC
	.comm	_MT_BBP_AGC_GAIN,4,2            ## @MT_BBP_AGC_GAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mt76x02_init_agc_gain
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mt76x02_init_agc_gain
	.p2align	2
_mt76x02_init_agc_gain:                 ; @mt76x02_init_agc_gain
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _AGC@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AGC@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #8
	bl	_MT_BBP
	mov	x1, x0
Lloh2:
	adrp	x21, _MT_BBP_AGC_GAIN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MT_BBP_AGC_GAIN@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_mt76_get_field
	ldr	x8, [x19, #8]
	str	x0, [x8]
	ldr	w0, [x20]
	mov	w1, #9
	bl	_MT_BBP
	mov	x1, x0
	ldr	w2, [x21]
	mov	x0, x19
	bl	_mt76_get_field
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	ldr	w0, [x19, #16]
	ldr	x1, [x19, #8]
	mov	w2, #4
	bl	_memcpy
Lloh4:
	adrp	x8, lCPI0_0@PAGE
Lloh5:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	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
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AGC,4,2                        ; @AGC
	.comm	_MT_BBP_AGC_GAIN,4,2            ; @MT_BBP_AGC_GAIN
.subsections_via_symbols
