	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_handle_vst_qinq
_mlx4_handle_vst_qinq:                  ## @mlx4_handle_vst_qinq
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movslq	%esi, %r14
	movq	(%rax,%r14,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movslq	%edx, %rcx
	movq	8(%rdi), %r12
	movq	16(%rdi), %rax
	movq	(%rax,%r14,8), %rax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,2), %r15
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%r15,8), %r13
	movq	_ETH_P_8021AD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r13
	jne	LBB0_7
## %bb.1:
	cmpl	$0, 4(%r12,%r14,8)
	je	LBB0_7
## %bb.2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15,8), %r8
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%r15,8), %rcx
	cmpq	(%r8), %rcx
	jne	LBB0_5
## %bb.3:
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	(,%rdx,8), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi,%rdx), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	8(%rax,%rdx), %rsi
	jne	LBB0_5
## %bb.4:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	16(%rsi,%rdx), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	16(%rax,%rdx), %rsi
	je	LBB0_7
LBB0_5:
	cmpl	$0, (%r12,%r14,8)
	je	LBB0_6
## %bb.8:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx4_activate_vst_qinq         ## TAILCALL
LBB0_6:
	movq	%rcx, (%r8)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movups	8(%rcx,%rax), %xmm0
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movups	%xmm0, 8(%rcx,%rax)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_mlx4_warn
LBB0_7:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_8021AD,4,2               ## @ETH_P_8021AD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Slave %d does not support VST QinQ mode\n"

	.no_dead_strip	_mlx4_handle_vst_qinq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_handle_vst_qinq
_mlx4_handle_vst_qinq:                  ; @mlx4_handle_vst_qinq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	sbfiz	x9, x19, #3, #32
	ldr	x22, [x8, x9]
	ldp	x25, x8, [x0, #8]
	ldr	x23, [x8, x9]
	mov	w8, #24
	smaddl	x24, w2, w8, x23
	ldr	x26, [x24]
Lloh0:
	adrp	x8, _ETH_P_8021AD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_8021AD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	cmp	x26, x0
	b.ne	LBB0_8
; %bb.1:
	sxtw	x8, w19
	add	x9, x25, x8, lsl #3
	ldr	w9, [x9, #4]
	cbz	w9, LBB0_8
; %bb.2:
	sxtw	x9, w21
	mov	w10, #24
	mul	x10, x9, x10
	ldr	x10, [x22, x10]
	ldr	x11, [x24]
	cmp	x10, x11
	b.ne	LBB0_5
; %bb.3:
	add	x11, x9, x9, lsl #1
	lsl	x12, x11, #3
	add	x11, x22, x12
	ldr	x13, [x11, #8]
	add	x12, x23, x12
	ldr	x14, [x12, #8]
	cmp	x13, x14
	b.ne	LBB0_5
; %bb.4:
	ldr	x11, [x11, #16]
	ldr	x12, [x12, #16]
	cmp	x11, x12
	b.eq	LBB0_8
LBB0_5:
	lsl	x8, x8, #3
	ldr	w8, [x25, x8]
	cbz	w8, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mlx4_activate_vst_qinq
LBB0_7:
	str	x10, [x24]
	add	x8, x9, x9, lsl #1
	lsl	x8, x8, #3
	add	x9, x22, x8
	add	x8, x23, x8
	ldur	q0, [x9, #8]
	stur	q0, [x8, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_mlx4_warn
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_8021AD,4,2               ; @ETH_P_8021AD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Slave %d does not support VST QinQ mode\n"

	.no_dead_strip	_mlx4_handle_vst_qinq
.subsections_via_symbols
