	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_master_immediate_activate_vlan_qos ## -- Begin function mlx4_master_immediate_activate_vlan_qos
	.p2align	4, 0x90
_mlx4_master_immediate_activate_vlan_qos: ## @mlx4_master_immediate_activate_vlan_qos
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_NO_INDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	movslq	%esi, %rbx
	movq	(%rcx,%rbx,8), %rcx
	movslq	%edx, %r12
	movq	(%rax,%rbx,8), %r15
	leaq	(%r12,%r12,2), %r14
	movq	8(%rcx,%r14,8), %rax
	shlq	$4, %r12
	cmpq	(%r15,%r12), %rax
	jne	LBB0_2
## %bb.1:
	movq	16(%rcx,%r14,8), %rax
	xorl	%ebx, %ebx
	cmpq	8(%r15,%r12), %rax
	je	LBB0_14
LBB0_2:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%r14,8), %rcx
	addq	$8, %rcx
	leaq	(%r15,%r12), %r11
	movq	(%rcx), %rax
	movq	(%r11), %rdx
	cmpq	%rdx, %rax
	je	LBB0_8
## %bb.5:
	movq	%r11, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	24(%rax), %rdi
	leaq	-52(%rbp), %rcx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	___mlx4_register_vlan
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_kfree
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_mlx4_warn
	jmp	LBB0_14
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_7:
	movq	_MLX4_VF_IMMED_VLAN_FLAG_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edx
	movl	-52(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_mlx4_dbg
	movq	%rbx, %r11
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_8:
	movq	%rax, 8(%r13)
	movl	(%rbx,%r14,8), %eax
	movl	%eax, 16(%r13)
	movq	8(%r15,%r12), %rdx
	cmpq	%rdx, 16(%rbx,%r14,8)
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	jne	LBB0_10
## %bb.9:
	movl	(%r13), %esi
	jmp	LBB0_11
LBB0_10:
	movq	_MLX4_VF_IMMED_VLAN_FLAG_QOS@GOTPCREL(%rip), %rdi
	movl	(%r13), %esi
	orl	(%rdi), %esi
	movl	%esi, (%r13)
LBB0_11:
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	leaq	(%rbx,%r14,8), %r10
	addq	$16, %r10
	movq	_MLX4_VF_IMMED_VLAN_FLAG_VLAN@GOTPCREL(%rip), %rdi
	testl	%esi, (%rdi)
	je	LBB0_13
## %bb.12:
	leaq	(%rbx,%r14,8), %rsi
	movl	-52(%rbp), %eax
	movl	%eax, (%rsi)
LBB0_13:
	movq	(%r11), %rsi
	movq	%rsi, (%rcx)
	movq	%rdx, (%r10)
	movl	%r8d, 20(%r13)
	movl	%r9d, 24(%r13)
	movq	%rdx, 32(%r13)
	movq	%rsi, 40(%r13)
	movl	%eax, 48(%r13)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, 56(%r13)
	addq	$52, %r13
	movq	_mlx4_vf_immed_vlan_work_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_INIT_WORK
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_queue_work
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_INDX,4,2                    ## @NO_INDX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No vlan resources slave %d, port %d\n"

	.comm	_MLX4_VF_IMMED_VLAN_FLAG_VLAN,4,2 ## @MLX4_VF_IMMED_VLAN_FLAG_VLAN
L_.str.1:                               ## @.str.1
	.asciz	"alloc vlan %d idx  %d slave %d port %d\n"

	.comm	_MLX4_VF_IMMED_VLAN_FLAG_QOS,4,2 ## @MLX4_VF_IMMED_VLAN_FLAG_QOS
	.comm	_mlx4_vf_immed_vlan_work_handler,4,2 ## @mlx4_vf_immed_vlan_work_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_master_immediate_activate_vlan_qos ; -- Begin function mlx4_master_immediate_activate_vlan_qos
	.p2align	2
_mlx4_master_immediate_activate_vlan_qos: ; @mlx4_master_immediate_activate_vlan_qos
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _NO_INDX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NO_INDX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	sbfiz	x8, x21, #3, #32
	ldp	x10, x9, [x0, #8]
	ldr	x23, [x9, x8]
	sxtw	x27, w20
	ldr	x28, [x10, x8]
	mov	w8, #24
	smaddl	x25, w2, w8, x23
	ldr	x8, [x25, #8]!
	add	x26, x28, w2, sxtw #4
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #24
	madd	x8, x27, x8, x23
	ldr	x8, [x8, #16]
	add	x9, x28, x27, lsl #4
	ldr	x9, [x9, #8]
	cmp	x8, x9
	b.eq	LBB0_14
LBB0_2:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x22, x0
	ldr	x8, [x25]
	ldr	x2, [x26]
	cmp	x8, x2
	b.eq	LBB0_8
; %bb.4:
	add	x0, x19, #24
	add	x3, sp, #12
	str	x0, [sp]                        ; 8-byte Folded Spill
	mov	x1, x20
	bl	___mlx4_register_vlan
	cbz	w0, LBB0_7
; %bb.5:
	mov	x24, x0
	mov	x0, x22
	bl	_kfree
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x2, x21
	mov	x3, x20
	bl	_mlx4_warn
	b	LBB0_15
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_15
LBB0_7:
Lloh11:
	adrp	x8, _MLX4_VF_IMMED_VLAN_FLAG_VLAN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLX4_VF_IMMED_VLAN_FLAG_VLAN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	ldr	w2, [x26]
	ldr	w3, [sp, #12]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x4, x21
	mov	x5, x20
	bl	_mlx4_dbg
	ldr	x8, [x25]
LBB0_8:
	str	x8, [x22, #8]
	mov	w8, #24
	madd	x11, x27, x8, x23
	ldr	w8, [x11]
	str	w8, [x22, #16]
	mov	x10, x11
	ldr	x12, [x10, #16]!
	add	x9, x28, x27, lsl #4
	ldr	x9, [x9, #8]
	cmp	x12, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	w12, [x22]
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x12, _MLX4_VF_IMMED_VLAN_FLAG_QOS@GOTPAGE
Lloh17:
	ldr	x12, [x12, _MLX4_VF_IMMED_VLAN_FLAG_QOS@GOTPAGEOFF]
Lloh18:
	ldr	w12, [x12]
	ldr	w13, [x22]
	orr	w12, w13, w12
	str	w12, [x22]
LBB0_11:
Lloh19:
	adrp	x13, _MLX4_VF_IMMED_VLAN_FLAG_VLAN@GOTPAGE
Lloh20:
	ldr	x13, [x13, _MLX4_VF_IMMED_VLAN_FLAG_VLAN@GOTPAGEOFF]
Lloh21:
	ldr	w13, [x13]
	tst	w13, w12
	b.eq	LBB0_13
; %bb.12:
	ldr	w8, [sp, #12]
	str	w8, [x11]
LBB0_13:
	ldr	x11, [x26]
	str	x11, [x25]
	str	x9, [x10]
	stp	w20, w21, [x22, #20]
	stp	x9, x11, [x22, #32]
	str	w8, [x22, #48]
	str	x19, [x22, #56]
	add	x20, x22, #52
Lloh22:
	adrp	x8, _mlx4_vf_immed_vlan_work_handler@GOTPAGE
Lloh23:
	ldr	x8, [x8, _mlx4_vf_immed_vlan_work_handler@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_INIT_WORK
	ldr	w0, [x19]
	mov	x1, x20
	bl	_queue_work
LBB0_14:
	mov	w24, #0
LBB0_15:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_INDX,4,2                    ; @NO_INDX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No vlan resources slave %d, port %d\n"

	.comm	_MLX4_VF_IMMED_VLAN_FLAG_VLAN,4,2 ; @MLX4_VF_IMMED_VLAN_FLAG_VLAN
l_.str.1:                               ; @.str.1
	.asciz	"alloc vlan %d idx  %d slave %d port %d\n"

	.comm	_MLX4_VF_IMMED_VLAN_FLAG_QOS,4,2 ; @MLX4_VF_IMMED_VLAN_FLAG_QOS
	.comm	_mlx4_vf_immed_vlan_work_handler,4,2 ; @mlx4_vf_immed_vlan_work_handler
.subsections_via_symbols
