	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt753x_apply_mapping           ## -- Begin function mt753x_apply_mapping
	.p2align	4, 0x90
_mt753x_apply_mapping:                  ## @mt753x_apply_mapping
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MT753X_NUM_PORTS@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	jle	LBB0_3
## %bb.1:
	movq	24(%rsi), %r9
	movq	8(%rdi), %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rax,4), %ecx
	movl	%ecx, (%rdx,%rax,4)
	incq	%rax
	movslq	(%r8), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_2
LBB0_3:
	movq	_MT753X_NUM_VLANS@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	jle	LBB0_6
## %bb.4:
	movq	16(%rsi), %r9
	movq	(%rdi), %rdx
	movq	(%rsi), %rdi
	movq	8(%rsi), %rsi
	addq	$8, %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rax,4), %ecx
	movl	%ecx, (%rdx)
	movl	(%rsi,%rax,4), %ecx
	movl	%ecx, -4(%rdx)
	movl	(%rdi,%rax,4), %ecx
	movl	%ecx, -8(%rdx)
	incq	%rax
	movslq	(%r8), %rcx
	addq	$12, %rdx
	cmpq	%rcx, %rax
	jl	LBB0_5
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT753X_NUM_PORTS,4,2           ## @MT753X_NUM_PORTS
	.comm	_MT753X_NUM_VLANS,4,2           ## @MT753X_NUM_VLANS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt753x_apply_mapping           ; -- Begin function mt753x_apply_mapping
	.p2align	2
_mt753x_apply_mapping:                  ; @mt753x_apply_mapping
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MT753X_NUM_PORTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT753X_NUM_PORTS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	ldr	x10, [x1, #24]
	ldr	x11, [x0, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x10, x12]
	str	w13, [x11, x12]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_2
LBB0_3:
Lloh2:
	adrp	x8, _MT753X_NUM_VLANS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT753X_NUM_VLANS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x9, #0
	ldp	x11, x10, [x1, #8]
	ldr	x13, [x0]
	ldr	x12, [x1]
	add	x13, x13, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x14, x9, #2
	ldr	w15, [x10, x14]
	str	w15, [x13]
	ldr	w15, [x11, x14]
	stur	w15, [x13, #-4]
	ldr	w14, [x12, x14]
	stur	w14, [x13, #-8]
	add	x9, x9, #1
	ldrsw	x14, [x8]
	add	x13, x13, #12
	cmp	x9, x14
	b.lt	LBB0_5
LBB0_6:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MT753X_NUM_PORTS,4,2           ; @MT753X_NUM_PORTS
	.comm	_MT753X_NUM_VLANS,4,2           ; @MT753X_NUM_VLANS
.subsections_via_symbols
