	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7601u_save_power_rate
_mt7601u_save_power_rate:               ## @mt7601u_save_power_rate
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %r15
	cmpl	$2, %ecx
	je	LBB0_5
## %bb.1:
	cmpl	$1, %ecx
	je	LBB0_4
## %bb.2:
	testl	%ecx, %ecx
	jne	LBB0_8
## %bb.3:
	movq	%rdi, %rbx
	movq	24(%r15), %rdi
	movl	%edx, %eax
	movzbl	%al, %edx
	movl	%eax, %r12d
	movl	%r14d, %esi
	callq	_mt7601u_set_power_rate
	movq	24(%r15), %rdi
	addq	$4, %rdi
	movl	%r12d, %eax
	movzbl	%ah, %edx
	movl	%r14d, %esi
	callq	_mt7601u_set_power_rate
	movq	24(%r15), %rax
	movl	(%rax), %ecx
	movq	(%rbx), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rdx)
	movl	4(%rax), %eax
	movl	%eax, 4(%rdx)
	movq	16(%r15), %rdi
	movl	%r12d, %eax
	shrl	$16, %eax
	movzbl	%al, %edx
	movl	%r14d, %esi
	callq	_mt7601u_set_power_rate
	movq	16(%r15), %rdi
	addq	$4, %rdi
	movl	%r12d, %edx
	shrl	$24, %edx
	jmp	LBB0_6
LBB0_5:
	movq	8(%r15), %rdi
	addq	$8, %rdi
	movl	%edx, %ebx
	movzbl	%bl, %edx
	movl	%r14d, %esi
	callq	_mt7601u_set_power_rate
	movq	8(%r15), %rdi
	addq	$12, %rdi
	movzbl	%bh, %edx
LBB0_6:
	movl	%r14d, %esi
	jmp	LBB0_7
LBB0_4:
	movq	16(%r15), %rdi
	addq	$8, %rdi
	movl	%edx, %ebx
	movzbl	%bl, %edx
	movl	%r14d, %esi
	callq	_mt7601u_set_power_rate
	movq	16(%r15), %rdi
	addq	$12, %rdi
	movzbl	%bh, %edx
	movl	%r14d, %esi
	callq	_mt7601u_set_power_rate
	movq	8(%r15), %rdi
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %edx
	movl	%r14d, %esi
	callq	_mt7601u_set_power_rate
	movq	8(%r15), %rdi
	addq	$4, %rdi
	shrl	$24, %ebx
	movl	%r14d, %esi
	movl	%ebx, %edx
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt7601u_set_power_rate         ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mt7601u_save_power_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7601u_save_power_rate
_mt7601u_save_power_rate:               ; @mt7601u_save_power_rate
	.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	x20, x2
	mov	x19, x1
	ldr	x22, [x0]
	cmp	w3, #2
	b.eq	LBB0_4
; %bb.1:
	cmp	w3, #1
	b.eq	LBB0_5
; %bb.2:
	cbnz	w3, LBB0_8
; %bb.3:
	mov	x21, x0
	ldr	x0, [x22, #24]
	and	w2, w20, #0xff
	mov	x1, x19
	bl	_mt7601u_set_power_rate
	ldr	x8, [x22, #24]
	add	x0, x8, #4
	ubfx	w2, w20, #8, #8
	mov	x1, x19
	bl	_mt7601u_set_power_rate
	ldp	x0, x8, [x22, #16]
	ldr	w9, [x8]
	ldr	x10, [x21]
	ldr	x10, [x10]
	str	w9, [x10]
	ldr	w8, [x8, #4]
	str	w8, [x10, #4]
	ubfx	w2, w20, #16, #8
	mov	x1, x19
	bl	_mt7601u_set_power_rate
	ldr	x8, [x22, #16]
	b	LBB0_6
LBB0_4:
	ldr	x8, [x22, #8]
	add	x0, x8, #8
	and	w2, w20, #0xff
	mov	x1, x19
	bl	_mt7601u_set_power_rate
	ldr	x8, [x22, #8]
	add	x0, x8, #12
	ubfx	w2, w20, #8, #8
	b	LBB0_7
LBB0_5:
	ldr	x8, [x22, #16]
	add	x0, x8, #8
	and	w2, w20, #0xff
	mov	x1, x19
	bl	_mt7601u_set_power_rate
	ldr	x8, [x22, #16]
	add	x0, x8, #12
	ubfx	w2, w20, #8, #8
	mov	x1, x19
	bl	_mt7601u_set_power_rate
	ldr	x0, [x22, #8]
	ubfx	w2, w20, #16, #8
	mov	x1, x19
	bl	_mt7601u_set_power_rate
	ldr	x8, [x22, #8]
LBB0_6:
	add	x0, x8, #4
	lsr	w2, w20, #24
LBB0_7:
	mov	x1, 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
	b	_mt7601u_set_power_rate
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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mt7601u_save_power_rate
.subsections_via_symbols
