	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_sre_macaddr_change ## -- Begin function qlcnic_83xx_sre_macaddr_change
	.p2align	4, 0x90
_qlcnic_83xx_sre_macaddr_change:        ## @qlcnic_83xx_sre_macaddr_change
	.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
	movl	%ecx, %r14d
	movl	$0, -44(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_HOST_CTX_STATE_FREED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_QLCNIC_CMD_CONFIG_MAC_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	movq	%r13, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	testq	%r12, %r12
	je	LBB0_7
## %bb.4:
	movq	_QLCNIC_MAC_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_QLCNIC_MAC_VLAN_ADD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	cmpl	%r14d, %ecx
	je	LBB0_6
## %bb.5:
	movq	_QLCNIC_MAC_VLAN_DEL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_6:
	cmpl	%r14d, %eax
	cmovel	%ecx, %edx
	movl	%edx, %r14d
LBB0_7:
	movl	%r14d, %eax
	orl	$256, %eax                      ## imm = 0x100
	movq	-56(%rbp), %rcx
	movl	%eax, 4(%rcx)
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_qlcnic_83xx_set_interface_id_macaddr
	movl	-44(%rbp), %eax
	movq	-56(%rbp), %rdi
	orl	%eax, 4(%rdi)
	movq	%r12, -72(%rbp)
	movups	(%r15), %xmm0
	movaps	%xmm0, -96(%rbp)
	movl	16(%r15), %eax
	movl	%eax, -80(%rbp)
	movl	20(%r15), %eax
	movl	%eax, -76(%rbp)
	addq	$8, %rdi
	leaq	-96(%rbp), %rsi
	movl	$32, %edx
	callq	_memcpy
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_qlcnic_issue_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	(%r13), %rdi
	cmpl	$1, %r14d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	callq	_dev_err
LBB0_9:
	leaq	-56(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_10:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_HOST_CTX_STATE_FREED,8,3 ## @QLCNIC_HOST_CTX_STATE_FREED
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLCNIC_CMD_CONFIG_MAC_VLAN,4,2 ## @QLCNIC_CMD_CONFIG_MAC_VLAN
	.comm	_QLCNIC_MAC_ADD,4,2             ## @QLCNIC_MAC_ADD
	.comm	_QLCNIC_MAC_VLAN_ADD,4,2        ## @QLCNIC_MAC_VLAN_ADD
	.comm	_QLCNIC_MAC_VLAN_DEL,4,2        ## @QLCNIC_MAC_VLAN_DEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAC-VLAN %s to CAM failed, err=%d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"add "

L_.str.2:                               ## @.str.2
	.asciz	"delete "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_sre_macaddr_change ; -- Begin function qlcnic_83xx_sre_macaddr_change
	.p2align	2
_qlcnic_83xx_sre_macaddr_change:        ; @qlcnic_83xx_sre_macaddr_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	str	wzr, [sp, #44]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _QLCNIC_HOST_CTX_STATE_FREED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLCNIC_HOST_CTX_STATE_FREED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_8
LBB0_2:
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh6:
	adrp	x8, _QLCNIC_CMD_CONFIG_MAC_VLAN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLCNIC_CMD_CONFIG_MAC_VLAN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x0, sp, #32
	mov	x1, x20
	bl	_qlcnic_alloc_mbx_args
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.3:
	cbz	x22, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _QLCNIC_MAC_ADD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QLCNIC_MAC_ADD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _QLCNIC_MAC_VLAN_ADD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _QLCNIC_MAC_VLAN_ADD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w9, w19
	ccmp	w8, w19, #4, ne
Lloh15:
	adrp	x8, _QLCNIC_MAC_VLAN_DEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QLCNIC_MAC_VLAN_DEL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	csel	w19, w9, w8, eq
LBB0_5:
	orr	w8, w19, #0x100
	ldr	x9, [sp, #32]
	str	w8, [x9, #4]
	add	x1, sp, #44
	mov	x0, x20
	bl	_qlcnic_83xx_set_interface_id_macaddr
	ldr	w8, [sp, #44]
	ldr	x9, [sp, #32]
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
	str	x22, [sp, #24]
	ldr	q0, [x21]
	str	q0, [sp]
	ldr	d0, [x21, #16]
	str	d0, [sp, #16]
	add	x0, x9, #8
	mov	x1, sp
	mov	w2, #32
	bl	_memcpy
	add	x1, sp, #32
	mov	x0, x20
	bl	_qlcnic_issue_cmd
	mov	x23, x0
	cbz	w0, LBB0_7
; %bb.6:
	ldr	x0, [x20]
Lloh18:
	adrp	x8, l_.str.2@PAGE
Lloh19:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh20:
	adrp	x9, l_.str.1@PAGE
Lloh21:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w19, #1
	csel	x2, x9, x8, eq
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x23
	bl	_dev_err
LBB0_7:
	add	x0, sp, #32
	bl	_qlcnic_free_mbx_args
LBB0_8:
	mov	x0, x23
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_HOST_CTX_STATE_FREED,8,3 ; @QLCNIC_HOST_CTX_STATE_FREED
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLCNIC_CMD_CONFIG_MAC_VLAN,4,2 ; @QLCNIC_CMD_CONFIG_MAC_VLAN
	.comm	_QLCNIC_MAC_ADD,4,2             ; @QLCNIC_MAC_ADD
	.comm	_QLCNIC_MAC_VLAN_ADD,4,2        ; @QLCNIC_MAC_VLAN_ADD
	.comm	_QLCNIC_MAC_VLAN_DEL,4,2        ; @QLCNIC_MAC_VLAN_DEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAC-VLAN %s to CAM failed, err=%d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"add "

l_.str.2:                               ; @.str.2
	.asciz	"delete "

.subsections_via_symbols
