	.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, %r13d
	movl	$0, -44(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_HOST_CTX_STATE_FREED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	movq	_QLCNIC_CMD_CONFIG_MAC_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	movq	_QLC_83XX_MBX_CMD_NO_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	testq	%rbx, %rbx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_10
## %bb.7:
	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	%r13d, %ecx
	je	LBB0_9
## %bb.8:
	movq	_QLCNIC_MAC_VLAN_DEL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_9:
	cmpl	%r13d, %eax
	cmovel	%ecx, %edx
	movl	%edx, %r13d
LBB0_10:
	orl	$256, %r13d                     ## imm = 0x100
	movq	(%r14), %rax
	movl	%r13d, 4(%rax)
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	callq	_qlcnic_83xx_set_interface_id_macaddr
	movl	-44(%rbp), %eax
	movq	(%r14), %rdi
	orl	%eax, 4(%rdi)
	movq	%rbx, -72(%rbp)
	movups	(%r12), %xmm0
	movaps	%xmm0, -96(%rbp)
	movl	16(%r12), %eax
	movl	%eax, -80(%rbp)
	movl	20(%r12), %eax
	movl	%eax, -76(%rbp)
	addq	$8, %rdi
	leaq	-96(%rbp), %rsi
	movl	$32, %edx
	callq	_memcpy
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_qlcnic_issue_cmd
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_qlcnic_free_mbx_args
LBB0_13:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_14
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%r12d, %r12d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_HOST_CTX_STATE_FREED,8,3 ## @QLCNIC_HOST_CTX_STATE_FREED
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QLCNIC_CMD_CONFIG_MAC_VLAN,4,2 ## @QLCNIC_CMD_CONFIG_MAC_VLAN
	.comm	_QLC_83XX_MBX_CMD_NO_WAIT,4,2   ## @QLC_83XX_MBX_CMD_NO_WAIT
	.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
.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, #12]
	ldr	x8, [x0]
	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]
	b	LBB0_10
LBB0_2:
	mov	x23, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh5:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x20, x0
Lloh8:
	adrp	x8, _QLCNIC_CMD_CONFIG_MAC_VLAN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QLCNIC_CMD_CONFIG_MAC_VLAN@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	mov	x24, x0
	cbnz	w0, LBB0_8
; %bb.4:
Lloh11:
	adrp	x8, _QLC_83XX_MBX_CMD_NO_WAIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QLC_83XX_MBX_CMD_NO_WAIT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	cbz	x22, LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _QLCNIC_MAC_ADD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _QLCNIC_MAC_ADD@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _QLCNIC_MAC_VLAN_ADD@GOTPAGE
Lloh18:
	ldr	x9, [x9, _QLCNIC_MAC_VLAN_ADD@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w9, w23
	ccmp	w8, w23, #4, ne
Lloh20:
	adrp	x8, _QLCNIC_MAC_VLAN_DEL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _QLCNIC_MAC_VLAN_DEL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	csel	w23, w9, w8, eq
LBB0_6:
	orr	w8, w23, #0x100
	ldr	x9, [x20]
	str	w8, [x9, #4]
	add	x1, sp, #12
	mov	x0, x19
	bl	_qlcnic_83xx_set_interface_id_macaddr
	ldr	w8, [sp, #12]
	ldr	x9, [x20]
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
	str	x22, [sp, #40]
	ldr	q0, [x21]
	str	q0, [sp, #16]
	ldr	d0, [x21, #16]
	str	d0, [sp, #32]
	add	x0, x9, #8
	add	x1, sp, #16
	mov	w2, #32
	bl	_memcpy
	mov	x0, x19
	mov	x1, x20
	bl	_qlcnic_issue_cmd
	mov	x24, x0
	cbz	w0, LBB0_11
; %bb.7:
	mov	x0, x20
	bl	_qlcnic_free_mbx_args
LBB0_8:
	mov	x0, x20
	bl	_kfree
	b	LBB0_11
LBB0_9:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_11:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_HOST_CTX_STATE_FREED,8,3 ; @QLCNIC_HOST_CTX_STATE_FREED
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QLCNIC_CMD_CONFIG_MAC_VLAN,4,2 ; @QLCNIC_CMD_CONFIG_MAC_VLAN
	.comm	_QLC_83XX_MBX_CMD_NO_WAIT,4,2   ; @QLC_83XX_MBX_CMD_NO_WAIT
	.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
.subsections_via_symbols
