	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7603_apply_cal_free_data
_mt7603_apply_cal_free_data:            ## @mt7603_apply_cal_free_data
	.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	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rdi), %r13
	leaq	_mt7603_apply_cal_free_data.cal_free_bytes(%rip), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r15d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mt7603_has_cal_free_data
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	%r12, %rdi
	callq	_is_mt7628
	leal	-4(%r15), %ecx
	testq	%rax, %rax
	cmovel	%r15d, %ecx
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.2:
	movl	%ecx, %ecx
	leaq	-1(%rcx), %rdx
	movl	%ecx, %eax
	andl	$3, %eax
	cmpq	$3, %rdx
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_4:
	andl	$-4, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r14,%rdx,4), %rsi
	movl	(%rbx,%rsi,4), %edi
	movl	%edi, (%r13,%rsi,4)
	movslq	4(%r14,%rdx,4), %rsi
	movl	(%rbx,%rsi,4), %edi
	movl	%edi, (%r13,%rsi,4)
	movslq	8(%r14,%rdx,4), %rsi
	movl	(%rbx,%rsi,4), %edi
	movl	%edi, (%r13,%rsi,4)
	movslq	12(%r14,%rdx,4), %rsi
	movl	(%rbx,%rsi,4), %edi
	movl	%edi, (%r13,%rsi,4)
	addq	$4, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_5
LBB0_6:
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	leaq	(%r14,%rdx,4), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rcx,%rdx,4), %rsi
	movl	(%rbx,%rsi,4), %edi
	movl	%edi, (%r13,%rsi,4)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @mt7603_apply_cal_free_data.cal_free_bytes
_mt7603_apply_cal_free_data.cal_free_bytes:
	.long	132                             ## 0x84
	.long	133                             ## 0x85
	.long	129                             ## 0x81
	.long	128                             ## 0x80
	.long	131                             ## 0x83
	.long	132                             ## 0x84
	.long	130                             ## 0x82
	.long	131                             ## 0x83

	.no_dead_strip	_mt7603_apply_cal_free_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7603_apply_cal_free_data
_mt7603_apply_cal_free_data:            ; @mt7603_apply_cal_free_data
	.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, x1
	mov	x20, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x0, _mt7603_apply_cal_free_data.cal_free_bytes@PAGE
Lloh1:
	add	x0, x0, _mt7603_apply_cal_free_data.cal_free_bytes@PAGEOFF
	bl	_ARRAY_SIZE
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_mt7603_has_cal_free_data
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_is_mt7628
	sub	w8, w21, #4
	cmp	x0, #0
	csel	w8, w21, w8, eq
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
Lloh2:
	adrp	x9, _mt7603_apply_cal_free_data.cal_free_bytes@PAGE
Lloh3:
	add	x9, x9, _mt7603_apply_cal_free_data.cal_free_bytes@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x10, [x9], #4
	lsl	x10, x10, #2
	ldr	w11, [x19, x10]
	str	w11, [x22, x10]
	subs	x8, x8, #1
	b.ne	LBB0_3
LBB0_4:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @mt7603_apply_cal_free_data.cal_free_bytes
_mt7603_apply_cal_free_data.cal_free_bytes:
	.long	132                             ; 0x84
	.long	133                             ; 0x85
	.long	129                             ; 0x81
	.long	128                             ; 0x80
	.long	131                             ; 0x83
	.long	132                             ; 0x84
	.long	130                             ; 0x82
	.long	131                             ; 0x83

	.no_dead_strip	_mt7603_apply_cal_free_data
.subsections_via_symbols
