	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x0_phy_set_channel         ## -- Begin function mt76x0_phy_set_channel
	.p2align	4, 0x90
_mt76x0_phy_set_channel:                ## @mt76x0_phy_set_channel
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MT_EXT_CCA_CFG_CCA0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_FIELD_PREP
	movl	%eax, %r12d
	movq	_MT_EXT_CCA_CFG_CCA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_FIELD_PREP
	movl	%eax, %r13d
	orl	%r12d, %r13d
	movq	_MT_EXT_CCA_CFG_CCA2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_FIELD_PREP
	movl	%eax, %r12d
	movq	_MT_EXT_CCA_CFG_CCA3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_FIELD_PREP
	movl	%eax, %ebx
	orl	%r12d, %ebx
	orl	%r13d, %ebx
	movq	_MT_EXT_CCA_CFG_CCA_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %r12d
	xorl	%edi, %edi
	callq	_BIT
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_FIELD_PREP
	orl	%ebx, %eax
	movl	%eax, -64(%rbp)
	movq	_MT_EXT_CCA_CFG_CCA0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_FIELD_PREP
	movl	%eax, %r12d
	movq	_MT_EXT_CCA_CFG_CCA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_FIELD_PREP
	movl	%eax, %r13d
	orl	%r12d, %r13d
	movq	_MT_EXT_CCA_CFG_CCA2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_FIELD_PREP
	movl	%eax, %r12d
	movq	_MT_EXT_CCA_CFG_CCA3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_FIELD_PREP
	movl	%eax, %ebx
	orl	%r12d, %ebx
	orl	%r13d, %ebx
	movl	(%r14), %r12d
	movl	$1, %edi
	callq	_BIT
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_FIELD_PREP
	orl	%ebx, %eax
	movl	%eax, -60(%rbp)
	movq	_MT_EXT_CCA_CFG_CCA0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_FIELD_PREP
	movl	%eax, %r12d
	movq	_MT_EXT_CCA_CFG_CCA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_FIELD_PREP
	movl	%eax, %r13d
	orl	%r12d, %r13d
	movq	_MT_EXT_CCA_CFG_CCA2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_FIELD_PREP
	movl	%eax, %r12d
	movq	_MT_EXT_CCA_CFG_CCA3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_FIELD_PREP
	movl	%eax, %ebx
	orl	%r12d, %ebx
	orl	%r13d, %ebx
	movl	(%r14), %r12d
	movl	$2, %edi
	callq	_BIT
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_FIELD_PREP
	orl	%ebx, %eax
	movl	%eax, -56(%rbp)
	movq	_MT_EXT_CCA_CFG_CCA0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_FIELD_PREP
	movl	%eax, %r12d
	movq	_MT_EXT_CCA_CFG_CCA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_FIELD_PREP
	movl	%eax, %r13d
	orl	%r12d, %r13d
	movq	_MT_EXT_CCA_CFG_CCA2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_FIELD_PREP
	movl	%eax, %r12d
	movq	_MT_EXT_CCA_CFG_CCA3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_FIELD_PREP
	movl	%eax, %ebx
	orl	%r12d, %ebx
	orl	%r13d, %ebx
	movq	_MT_EXT_CCA_CFG_CCA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$3, %edi
	callq	_BIT
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_FIELD_PREP
	orl	%ebx, %eax
	movl	%eax, -52(%rbp)
	movq	_MT76_SCANNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_test_bit
	movq	8(%r14), %rcx
	movl	4(%rcx), %r12d
	movl	4(%r14), %esi
	cmpl	$15, %r12d
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	jge	LBB0_1
## %bb.2:
	movq	_RF_G_BAND@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	movq	_RF_A_BAND@GOTPCREL(%rip), %rdx
LBB0_3:
	movl	(%rcx), %ebx
	movl	(%r14), %ecx
	movl	(%rdx), %r13d
	cmpl	$128, %esi
	je	LBB0_7
## %bb.4:
	cmpl	$129, %esi
	jne	LBB0_5
## %bb.6:
	xorl	%eax, %eax
	cmpl	%ecx, %ebx
	movl	$0, %ebx
	setl	%al
	setge	%bl
	leal	(%r12,%rax,4), %r12d
	addl	$-2, %r12d
	movq	_RF_BW_40@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	subl	%ecx, %ebx
	leal	-50(%rbx), %eax
	xorl	%edi, %edi
	cmpl	$-99, %eax
	setb	%dil
	callq	_WARN_ON
	xorl	%ecx, %ecx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	addl	$30, %ebx
	movslq	%ebx, %rax
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$35, %rcx
	addl	%eax, %ecx
LBB0_9:
	leal	(,%rcx,4), %eax
	subl	%eax, %r12d
	addl	$6, %r12d
	movq	_RF_BW_80@GOTPCREL(%rip), %rax
	movq	%rcx, %rbx
	jmp	LBB0_10
LBB0_5:
	movq	_RF_BW_20@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_10:
	orl	(%rax), %r13d
	movq	%r15, %rdi
	callq	_mt76_is_usb
	movl	4(%r14), %esi
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_mt76x0_phy_bbp_set_bw
	jmp	LBB0_13
LBB0_12:
	andl	$-2, %esi
	xorl	%edx, %edx
	cmpl	$128, %esi
	setne	%dl
	shll	$10, %edx
	orl	$513, %edx                      ## imm = 0x201
	movq	_MT_TX_SW_CFG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mt76_wr
LBB0_13:
	movl	4(%r14), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_mt76x02_phy_set_bw
	movq	8(%r14), %rax
	movl	8(%rax), %esi
	movl	%ebx, %edx
	andl	$1, %edx
	movq	%r15, %rdi
	callq	_mt76x02_phy_set_band
	movq	_MT_EXT_CCA_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_EXT_CCA_CFG_CCA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MT_EXT_CCA_CFG_CCA0@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_MT_EXT_CCA_CFG_CCA2@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_MT_EXT_CCA_CFG_CCA3@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_MT_EXT_CCA_CFG_CCA_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movslq	%ebx, %rax
	movl	-64(%rbp,%rax,4), %ecx
	movq	%r15, %rdi
	callq	_mt76_rmw
	movq	8(%r14), %rax
	movl	8(%rax), %esi
	movq	%r15, %rdi
	callq	_mt76x0_phy_set_band
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_mt76x0_phy_set_chan_rf_params
	movq	_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_MT_BBP
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$32, %edx
	cmpl	$14, %r12d
	jne	LBB0_15
## %bb.14:
	callq	_mt76_set
	jmp	LBB0_16
LBB0_15:
	callq	_mt76_clear
LBB0_16:
	movq	%r15, %rdi
	callq	_mt76x0_read_rx_gain
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_mt76x0_phy_set_chan_bbp_params
	xorl	%edi, %edi
	movl	$4, %esi
	callq	_MT_RF
	movl	%eax, %ebx
	movl	$7, %edi
	callq	_BIT
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_mt76x0_rf_set
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	%r15, %rdi
	callq	_mt76x02_init_agc_gain
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mt76x0_phy_calibrate
	movq	%r15, %rdi
	callq	_mt76x0_phy_set_txpower
	movl	4(%r15), %edi
	movq	_MT_CALIBRATE_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.18:
	movq	%r15, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_queue_delayed_work   ## TAILCALL
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_EXT_CCA_CFG_CCA0,4,2        ## @MT_EXT_CCA_CFG_CCA0
	.comm	_MT_EXT_CCA_CFG_CCA1,4,2        ## @MT_EXT_CCA_CFG_CCA1
	.comm	_MT_EXT_CCA_CFG_CCA2,4,2        ## @MT_EXT_CCA_CFG_CCA2
	.comm	_MT_EXT_CCA_CFG_CCA3,4,2        ## @MT_EXT_CCA_CFG_CCA3
	.comm	_MT_EXT_CCA_CFG_CCA_MASK,4,2    ## @MT_EXT_CCA_CFG_CCA_MASK
	.comm	_MT76_SCANNING,4,2              ## @MT76_SCANNING
	.comm	_RF_G_BAND,4,2                  ## @RF_G_BAND
	.comm	_RF_A_BAND,4,2                  ## @RF_A_BAND
	.comm	_RF_BW_40,4,2                   ## @RF_BW_40
	.comm	_RF_BW_80,4,2                   ## @RF_BW_80
	.comm	_RF_BW_20,4,2                   ## @RF_BW_20
	.comm	_MT_TX_SW_CFG0,4,2              ## @MT_TX_SW_CFG0
	.comm	_MT_EXT_CCA_CFG,4,2             ## @MT_EXT_CCA_CFG
	.comm	_CORE,4,2                       ## @CORE
	.comm	_MT_CALIBRATE_INTERVAL,4,2      ## @MT_CALIBRATE_INTERVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x0_phy_set_channel         ; -- Begin function mt76x0_phy_set_channel
	.p2align	2
_mt76x0_phy_set_channel:                ; @mt76x0_phy_set_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x23, _MT_EXT_CCA_CFG_CCA0@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MT_EXT_CCA_CFG_CCA0@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	w1, #0
	bl	_FIELD_PREP
	mov	x21, x0
Lloh5:
	adrp	x26, _MT_EXT_CCA_CFG_CCA1@GOTPAGE
Lloh6:
	ldr	x26, [x26, _MT_EXT_CCA_CFG_CCA1@GOTPAGEOFF]
	ldr	w0, [x26]
	mov	w1, #1
	bl	_FIELD_PREP
	orr	w21, w0, w21
Lloh7:
	adrp	x27, _MT_EXT_CCA_CFG_CCA2@GOTPAGE
Lloh8:
	ldr	x27, [x27, _MT_EXT_CCA_CFG_CCA2@GOTPAGEOFF]
	ldr	w0, [x27]
	mov	w1, #2
	bl	_FIELD_PREP
	orr	w21, w21, w0
Lloh9:
	adrp	x28, _MT_EXT_CCA_CFG_CCA3@GOTPAGE
Lloh10:
	ldr	x28, [x28, _MT_EXT_CCA_CFG_CCA3@GOTPAGEOFF]
	ldr	w0, [x28]
	mov	w1, #3
	bl	_FIELD_PREP
	orr	w22, w21, w0
Lloh11:
	adrp	x25, _MT_EXT_CCA_CFG_CCA_MASK@GOTPAGE
Lloh12:
	ldr	x25, [x25, _MT_EXT_CCA_CFG_CCA_MASK@GOTPAGEOFF]
	ldr	w21, [x25]
	mov	w0, #0
	bl	_BIT
	mov	x1, x0
	mov	x0, x21
	bl	_FIELD_PREP
	orr	w8, w22, w0
	str	w8, [sp, #8]
	ldr	w0, [x23]
	mov	w1, #1
	bl	_FIELD_PREP
	mov	x21, x0
	ldr	w0, [x26]
	mov	w1, #0
	bl	_FIELD_PREP
	orr	w21, w0, w21
	ldr	w0, [x27]
	mov	w1, #2
	bl	_FIELD_PREP
	orr	w21, w21, w0
	ldr	w0, [x28]
	mov	w1, #3
	bl	_FIELD_PREP
	orr	w22, w21, w0
	ldr	w21, [x25]
	mov	w0, #1
	bl	_BIT
	mov	x1, x0
	mov	x0, x21
	bl	_FIELD_PREP
	orr	w8, w22, w0
	str	w8, [sp, #12]
	ldr	w0, [x23]
	mov	w1, #2
	bl	_FIELD_PREP
	mov	x21, x0
	ldr	w0, [x26]
	mov	w1, #3
	bl	_FIELD_PREP
	orr	w21, w0, w21
	ldr	w0, [x27]
	mov	w1, #1
	bl	_FIELD_PREP
	orr	w21, w21, w0
	ldr	w0, [x28]
	mov	w1, #0
	bl	_FIELD_PREP
	orr	w22, w21, w0
	ldr	w21, [x25]
	mov	w0, #2
	bl	_BIT
	mov	x1, x0
	mov	x0, x21
	bl	_FIELD_PREP
	orr	w8, w22, w0
	str	w8, [sp, #16]
	ldr	w0, [x23]
	mov	w1, #3
	bl	_FIELD_PREP
	mov	x21, x0
	ldr	w0, [x26]
	mov	w1, #2
	bl	_FIELD_PREP
	orr	w21, w0, w21
	ldr	w0, [x27]
	mov	w1, #1
	bl	_FIELD_PREP
	orr	w21, w21, w0
	ldr	w0, [x28]
	mov	w1, #0
	bl	_FIELD_PREP
	orr	w22, w21, w0
	ldr	w21, [x25]
	mov	w0, #3
	bl	_BIT
	mov	x1, x0
	mov	x0, x21
	bl	_FIELD_PREP
	orr	w8, w22, w0
	str	w8, [sp, #20]
Lloh13:
	adrp	x8, _MT76_SCANNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MT76_SCANNING@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	mov	x21, x0
	ldr	x9, [x20, #8]
	ldp	w8, w23, [x9]
Lloh16:
	adrp	x9, _RF_G_BAND@GOTPAGE
Lloh17:
	ldr	x9, [x9, _RF_G_BAND@GOTPAGEOFF]
Lloh18:
	adrp	x10, _RF_A_BAND@GOTPAGE
Lloh19:
	ldr	x10, [x10, _RF_A_BAND@GOTPAGEOFF]
	cmp	w23, #15
	csel	x9, x9, x10, lt
	ldr	w22, [x9]
	ldp	w10, w9, [x20]
	cmp	w9, #128
	b.eq	LBB0_2
; %bb.1:
Lloh20:
	adrp	x11, _RF_BW_20@GOTPAGE
Lloh21:
	ldr	x11, [x11, _RF_BW_20@GOTPAGEOFF]
	cmp	w8, w10
	cset	w8, ge
	mov	w10, #-2
	cneg	w10, w10, lt
	add	w10, w10, w23
Lloh22:
	adrp	x12, _RF_BW_40@GOTPAGE
Lloh23:
	ldr	x12, [x12, _RF_BW_40@GOTPAGEOFF]
	cmp	w9, #129
	csel	w24, wzr, w8, ne
	csel	w23, w23, w10, ne
	csel	x8, x11, x12, ne
	b	LBB0_3
LBB0_2:
	sub	w8, w8, w10
	add	w9, w8, #30
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #35
	add	w24, w9, w10
	sub	w8, w8, #50
	cmn	w8, #99
	cset	w0, lo
	bl	_WARN_ON
	cmp	w0, #0
	csel	w24, w24, wzr, eq
	sub	w8, w23, w24, lsl #2
	add	w23, w8, #6
Lloh24:
	adrp	x8, _RF_BW_80@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RF_BW_80@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	orr	w22, w8, w22
	mov	x0, x19
	bl	_mt76_is_usb
	ldr	w1, [x20, #4]
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_mt76x0_phy_bbp_set_bw
	b	LBB0_6
LBB0_5:
	and	w8, w1, #0xfffffffe
	mov	w9, #1537
	mov	w10, #513
	cmp	w8, #128
	csel	w2, w10, w9, eq
Lloh26:
	adrp	x8, _MT_TX_SW_CFG0@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MT_TX_SW_CFG0@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt76_wr
LBB0_6:
	ldr	w1, [x20, #4]
	mov	x0, x19
	mov	x2, x24
	bl	_mt76x02_phy_set_bw
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #8]
	and	w2, w24, #0x1
	mov	x0, x19
	bl	_mt76x02_phy_set_band
Lloh29:
	adrp	x8, _MT_EXT_CCA_CFG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MT_EXT_CCA_CFG@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _MT_EXT_CCA_CFG_CCA0@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MT_EXT_CCA_CFG_CCA0@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x28]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w2, w8, w9
	add	x8, sp, #8
	ldr	w3, [x8, w24, sxtw #2]
	mov	x0, x19
	bl	_mt76_rmw
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_mt76x0_phy_set_band
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_mt76x0_phy_set_chan_rf_params
Lloh35:
	adrp	x8, _CORE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CORE@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #32
	cmp	w23, #14
	b.ne	LBB0_8
; %bb.7:
	bl	_mt76_set
	b	LBB0_9
LBB0_8:
	bl	_mt76_clear
LBB0_9:
	mov	x0, x19
	bl	_mt76x0_read_rx_gain
	mov	x0, x19
	mov	x1, x22
	bl	_mt76x0_phy_set_chan_bbp_params
	mov	w0, #0
	mov	w1, #4
	bl	_MT_RF
	mov	x20, x0
	mov	w0, #7
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mt76x0_rf_set
	cbz	w21, LBB0_12
; %bb.10:
	ldr	x8, [sp, #24]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_12:
	mov	x0, x19
	bl	_mt76x02_init_agc_gain
	mov	x0, x19
	mov	w1, #0
	bl	_mt76x0_phy_calibrate
	mov	x0, x19
	bl	_mt76x0_phy_set_txpower
	ldr	w0, [x19, #4]
Lloh41:
	adrp	x8, _MT_CALIBRATE_INTERVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MT_CALIBRATE_INTERVAL@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	ldr	x8, [sp, #24]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x1, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_ieee80211_queue_delayed_work
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_EXT_CCA_CFG_CCA0,4,2        ; @MT_EXT_CCA_CFG_CCA0
	.comm	_MT_EXT_CCA_CFG_CCA1,4,2        ; @MT_EXT_CCA_CFG_CCA1
	.comm	_MT_EXT_CCA_CFG_CCA2,4,2        ; @MT_EXT_CCA_CFG_CCA2
	.comm	_MT_EXT_CCA_CFG_CCA3,4,2        ; @MT_EXT_CCA_CFG_CCA3
	.comm	_MT_EXT_CCA_CFG_CCA_MASK,4,2    ; @MT_EXT_CCA_CFG_CCA_MASK
	.comm	_MT76_SCANNING,4,2              ; @MT76_SCANNING
	.comm	_RF_G_BAND,4,2                  ; @RF_G_BAND
	.comm	_RF_A_BAND,4,2                  ; @RF_A_BAND
	.comm	_RF_BW_40,4,2                   ; @RF_BW_40
	.comm	_RF_BW_80,4,2                   ; @RF_BW_80
	.comm	_RF_BW_20,4,2                   ; @RF_BW_20
	.comm	_MT_TX_SW_CFG0,4,2              ; @MT_TX_SW_CFG0
	.comm	_MT_EXT_CCA_CFG,4,2             ; @MT_EXT_CCA_CFG
	.comm	_CORE,4,2                       ; @CORE
	.comm	_MT_CALIBRATE_INTERVAL,4,2      ; @MT_CALIBRATE_INTERVAL
.subsections_via_symbols
