	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x0_phy_set_band
_mt76x0_phy_set_band:                   ## @mt76x0_phy_set_band
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpl	$129, %esi
	je	LBB0_1
## %bb.2:
	cmpl	$128, %esi
	jne	LBB0_5
## %bb.3:
	movl	$16843010, %r14d                ## imm = 0x1010102
	movl	$5, %r15d
	movl	$69, %r12d
	movl	$68, %r13d
	movq	_mt76x0_rf_5g_channel_0_tab@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movl	$4063234, %r14d                 ## imm = 0x3E0002
	movl	$327687, %r15d                  ## imm = 0x50007
	movl	$68, %r12d
	movl	$69, %r13d
	movq	_mt76x0_rf_2g_channel_0_tab@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_RF_RANDOM_WRITE
	movl	$5, %edi
	xorl	%esi, %esi
	callq	_MT_RF
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_mt76x0_rf_wr
	movl	$6, %edi
	xorl	%esi, %esi
	callq	_MT_RF
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_mt76x0_rf_wr
	movq	_MT_TX_ALC_VGA3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_mt76_wr
	movq	_MT_TX0_RF_GAIN_CORR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_wr                        ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mt76x0_rf_2g_channel_0_tab,4,2 ## @mt76x0_rf_2g_channel_0_tab
	.comm	_MT_TX_ALC_VGA3,4,2             ## @MT_TX_ALC_VGA3
	.comm	_MT_TX0_RF_GAIN_CORR,4,2        ## @MT_TX0_RF_GAIN_CORR
	.comm	_mt76x0_rf_5g_channel_0_tab,4,2 ## @mt76x0_rf_5g_channel_0_tab
	.no_dead_strip	_mt76x0_phy_set_band
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x0_phy_set_band
_mt76x0_phy_set_band:                   ; @mt76x0_phy_set_band
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_5
; %bb.2:
	mov	w20, #258
	movk	w20, #257, lsl #16
	mov	w21, #5
	mov	w22, #69
	mov	w23, #68
Lloh0:
	adrp	x8, _mt76x0_rf_5g_channel_0_tab@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mt76x0_rf_5g_channel_0_tab@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	mov	w20, #2
	movk	w20, #62, lsl #16
	mov	w21, #7
	movk	w21, #5, lsl #16
	mov	w22, #68
	mov	w23, #69
Lloh2:
	adrp	x8, _mt76x0_rf_2g_channel_0_tab@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mt76x0_rf_2g_channel_0_tab@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RF_RANDOM_WRITE
	mov	w0, #5
	mov	w1, #0
	bl	_MT_RF
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_mt76x0_rf_wr
	mov	w0, #6
	mov	w1, #0
	bl	_MT_RF
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_mt76x0_rf_wr
Lloh4:
	adrp	x8, _MT_TX_ALC_VGA3@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MT_TX_ALC_VGA3@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_mt76_wr
Lloh7:
	adrp	x8, _MT_TX0_RF_GAIN_CORR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MT_TX0_RF_GAIN_CORR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mt76_wr
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_mt76x0_rf_2g_channel_0_tab,4,2 ; @mt76x0_rf_2g_channel_0_tab
	.comm	_MT_TX_ALC_VGA3,4,2             ; @MT_TX_ALC_VGA3
	.comm	_MT_TX0_RF_GAIN_CORR,4,2        ; @MT_TX0_RF_GAIN_CORR
	.comm	_mt76x0_rf_5g_channel_0_tab,4,2 ; @mt76x0_rf_5g_channel_0_tab
	.no_dead_strip	_mt76x0_phy_set_band
.subsections_via_symbols
