	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7601u_set_bw_filter
_mt7601u_set_bw_filter:                 ## @mt7601u_set_bw_filter
	.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, %r14
	xorl	%eax, %eax
	testl	%esi, %esi
	sete	%al
	shll	$16, %eax
	movq	(%rdi), %rcx
	movq	_MT_BW_20@GOTPCREL(%rip), %rdx
	leal	256(%rax), %ebx
	cmpq	(%rdx), %rcx
	cmovel	%eax, %ebx
	movq	_MCU_CAL_BW@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leal	1(%rbx), %edx
	callq	_mt7601u_mcu_calibrate
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt7601u_mcu_calibrate          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_BW_20,8,3                   ## @MT_BW_20
	.comm	_MCU_CAL_BW,4,2                 ## @MCU_CAL_BW
	.no_dead_strip	_mt7601u_set_bw_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7601u_set_bw_filter
_mt7601u_set_bw_filter:                 ; @mt7601u_set_bw_filter
	.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
	cmp	w1, #0
	cset	w8, eq
	lsl	w9, w8, #16
	ldr	x10, [x0]
Lloh0:
	adrp	x11, _MT_BW_20@GOTPAGE
Lloh1:
	ldr	x11, [x11, _MT_BW_20@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	mov	w12, #256
	bfi	w12, w8, #16, #1
	cmp	x10, x11
	csel	w20, w9, w12, eq
Lloh3:
	adrp	x21, _MCU_CAL_BW@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MCU_CAL_BW@GOTPAGEOFF]
	ldr	w1, [x21]
	orr	w2, w20, #0x1
	bl	_mt7601u_mcu_calibrate
	cbz	w0, LBB0_2
; %bb.1:
	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_2:
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	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
	b	_mt7601u_mcu_calibrate
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_BW_20,8,3                   ; @MT_BW_20
	.comm	_MCU_CAL_BW,4,2                 ; @MCU_CAL_BW
	.no_dead_strip	_mt7601u_set_bw_filter
.subsections_via_symbols
