	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_config_port_mirroring   ## -- Begin function qlcnic_config_port_mirroring
	.p2align	4, 0x90
_qlcnic_config_port_mirroring:          ## @qlcnic_config_port_mirroring
	.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	%rcx, %r13
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_MGMT_FUNC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_QLCNIC_SWITCH_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax,%rsi,4)
	je	LBB0_8
## %bb.2:
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	_BIT_4@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
LBB0_4:
	movq	16(%r12), %rbx
	movq	%r13, %r14
	shlq	$8, %r14
	orq	%r15, %r14
	orq	%rdx, %r14
	movq	_QLCNIC_CMD_SET_PORTMIRRORING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_qlcnic_alloc_mbx_args
	movq	-48(%rbp), %rax
	movq	%r14, 8(%rax)
	movq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	callq	_qlcnic_issue_cmd
	movq	%rbx, %rdi
	movl	%eax, %ebx
	movq	_QLCNIC_RCODE_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_5
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_dev_info
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_dev_err
LBB0_7:
	leaq	-48(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLCNIC_MGMT_FUNC,8,3           ## @QLCNIC_MGMT_FUNC
	.comm	_QLCNIC_SWITCH_ENABLE,4,2       ## @QLCNIC_SWITCH_ENABLE
	.comm	_BIT_4,8,3                      ## @BIT_4
	.comm	_QLCNIC_CMD_SET_PORTMIRRORING,4,2 ## @QLCNIC_CMD_SET_PORTMIRRORING
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ## @QLCNIC_RCODE_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to configure port mirroring for vNIC function %d on eSwitch %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Configured port mirroring for vNIC function %d on eSwitch %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_config_port_mirroring   ; -- Begin function qlcnic_config_port_mirroring
	.p2align	2
_qlcnic_config_port_mirroring:          ; @qlcnic_config_port_mirroring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _QLCNIC_MGMT_FUNC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QLCNIC_MGMT_FUNC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x22, x0
	ldr	x8, [x0]
	ldr	w8, [x8, x1, lsl #2]
Lloh6:
	adrp	x9, _QLCNIC_SWITCH_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _QLCNIC_SWITCH_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
	mov	x20, x3
	ldr	x23, [x22, #16]
Lloh9:
	adrp	x8, _BIT_4@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BIT_4@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x2, #0
	csel	x8, xzr, x8, eq
	orr	x9, x19, x3, lsl #8
	orr	x21, x9, x8
Lloh12:
	adrp	x8, _QLCNIC_CMD_SET_PORTMIRRORING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QLCNIC_CMD_SET_PORTMIRRORING@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x22
	bl	_qlcnic_alloc_mbx_args
	ldr	x8, [sp, #8]
	str	x21, [x8, #8]
	add	x1, sp, #8
	mov	x0, x22
	bl	_qlcnic_issue_cmd
	mov	x21, x0
Lloh15:
	adrp	x8, _QLCNIC_RCODE_SUCCESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QLCNIC_RCODE_SUCCESS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, x20
	mov	x3, x19
	bl	_dev_info
	b	LBB0_5
LBB0_4:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x20
	mov	x3, x19
	bl	_dev_err
LBB0_5:
	add	x0, sp, #8
	bl	_qlcnic_free_mbx_args
LBB0_6:
	mov	x0, 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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLCNIC_MGMT_FUNC,8,3           ; @QLCNIC_MGMT_FUNC
	.comm	_QLCNIC_SWITCH_ENABLE,4,2       ; @QLCNIC_SWITCH_ENABLE
	.comm	_BIT_4,8,3                      ; @BIT_4
	.comm	_QLCNIC_CMD_SET_PORTMIRRORING,4,2 ; @QLCNIC_CMD_SET_PORTMIRRORING
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ; @QLCNIC_RCODE_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to configure port mirroring for vNIC function %d on eSwitch %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Configured port mirroring for vNIC function %d on eSwitch %d\n"

.subsections_via_symbols
