	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_iov_vf_update_mac_shadow
_qed_iov_vf_update_mac_shadow:          ## @qed_iov_vf_update_mac_shadow
	.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	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	16(%rsi), %rax
	movl	(%rax), %ebx
	movq	_MAC_ADDR_FORCED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	xorl	%r15d, %r15d
	testl	%ebx, %eax
	jne	LBB0_23
## %bb.1:
	cmpq	$0, 8(%r13)
	jne	LBB0_23
## %bb.2:
	movq	(%r12), %rax
	movq	_QED_FILTER_REMOVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_9
## %bb.3:
	movq	_QED_ETH_VF_NUM_MAC_FILTERS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	movl	8(%r12), %esi
	callq	_ether_addr_equal
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_7:
	cmpl	%eax, %ebx
	je	LBB0_8
	jmp	LBB0_13
LBB0_9:
	movq	_QED_FILTER_REPLACE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_QED_FILTER_FLUSH@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%dl
	orb	%cl, %dl
	movq	_QED_ETH_VF_NUM_MAC_FILTERS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	cmpb	$1, %dl
	jne	LBB0_13
## %bb.10:
	testl	%eax, %eax
	jle	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_eth_zero_addr
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_12
	jmp	LBB0_13
LBB0_5:
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_eth_zero_addr
	movl	(%r14), %eax
	cmpl	%eax, %ebx
	jne	LBB0_13
LBB0_8:
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_13:
	movq	(%r12), %rcx
	movq	_QED_FILTER_ADD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_15
## %bb.14:
	movq	_QED_FILTER_REPLACE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_23
LBB0_15:
	xorl	%r15d, %r15d
	movl	$0, %ebx
	testl	%eax, %eax
	jle	LBB0_20
## %bb.16:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_is_zero_ether_addr
	testq	%rax, %rax
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	movq	_QED_ETH_VF_NUM_MAC_FILTERS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_17
	jmp	LBB0_20
LBB0_18:
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	movl	8(%r12), %esi
	callq	_ether_addr_copy
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	_QED_ETH_VF_NUM_MAC_FILTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_20:
	cmpl	%eax, %ebx
	jne	LBB0_23
## %bb.21:
	leaq	L_.str.2(%rip), %rdx
LBB0_22:
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_23:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_ADDR_FORCED,4,2            ## @MAC_ADDR_FORCED
	.comm	_QED_FILTER_REMOVE,8,3          ## @QED_FILTER_REMOVE
	.comm	_QED_ETH_VF_NUM_MAC_FILTERS,4,2 ## @QED_ETH_VF_NUM_MAC_FILTERS
	.comm	_QED_MSG_IOV,4,2                ## @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAC isn't configured\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QED_FILTER_REPLACE,8,3         ## @QED_FILTER_REPLACE
	.comm	_QED_FILTER_FLUSH,8,3           ## @QED_FILTER_FLUSH
	.comm	_QED_FILTER_ADD,8,3             ## @QED_FILTER_ADD
L_.str.1:                               ## @.str.1
	.asciz	"Added MAC at %d entry in shadow\n"

L_.str.2:                               ## @.str.2
	.asciz	"No available place for MAC\n"

	.no_dead_strip	_qed_iov_vf_update_mac_shadow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_iov_vf_update_mac_shadow
_qed_iov_vf_update_mac_shadow:          ; @qed_iov_vf_update_mac_shadow
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x1, #16]
	ldr	w22, [x8]
Lloh0:
	adrp	x8, _MAC_ADDR_FORCED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_ADDR_FORCED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w22
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
LBB0_4:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _QED_FILTER_REMOVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QED_FILTER_REMOVE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x22, _QED_FILTER_REPLACE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _QED_FILTER_REPLACE@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
Lloh8:
	adrp	x24, _QED_ETH_VF_NUM_MAC_FILTERS@GOTPAGE
Lloh9:
	ldr	x24, [x24, _QED_ETH_VF_NUM_MAC_FILTERS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.6:
	mov	x23, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x23, lsl #2]
	ldr	w1, [x20, #8]
	bl	_ether_addr_equal
	cbnz	x0, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x24]
	cmp	x23, x8
	b.lt	LBB0_7
; %bb.9:
	cmp	w23, w8
	b.ne	LBB0_17
	b	LBB0_15
LBB0_10:
	ldr	x9, [x22]
Lloh10:
	adrp	x10, _QED_FILTER_FLUSH@GOTPAGE
Lloh11:
	ldr	x10, [x10, _QED_FILTER_FLUSH@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh13:
	adrp	x23, _QED_ETH_VF_NUM_MAC_FILTERS@GOTPAGE
Lloh14:
	ldr	x23, [x23, _QED_ETH_VF_NUM_MAC_FILTERS@GOTPAGEOFF]
	ldr	w8, [x23]
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_17
; %bb.11:
	mov	x24, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x24, lsl #2]
	bl	_eth_zero_addr
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.lt	LBB0_12
; %bb.13:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	b	LBB0_17
LBB0_14:
	mov	w23, #0
	cmp	w23, w8
	b.ne	LBB0_17
LBB0_15:
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_27
LBB0_16:
	ldr	x8, [x21]
	ldr	w0, [x8, x23, lsl #2]
	bl	_eth_zero_addr
	ldr	w8, [x24]
	cmp	w23, w8
	b.eq	LBB0_15
LBB0_17:
	ldr	x9, [x20]
Lloh17:
	adrp	x10, _QED_FILTER_ADD@GOTPAGE
Lloh18:
	ldr	x10, [x10, _QED_FILTER_ADD@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	ldr	x11, [x22]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_2
; %bb.18:
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.19:
	mov	x22, #0
Lloh20:
	adrp	x23, _QED_ETH_VF_NUM_MAC_FILTERS@GOTPAGE
Lloh21:
	ldr	x23, [x23, _QED_ETH_VF_NUM_MAC_FILTERS@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x22, lsl #2]
	bl	_is_zero_ether_addr
	cbnz	x0, LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x23]
	cmp	x22, x8
	b.lt	LBB0_20
; %bb.22:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	b	LBB0_25
LBB0_23:
	mov	w22, #0
	b	LBB0_25
LBB0_24:
	ldr	x8, [x21]
	ldr	w0, [x8, x22, lsl #2]
	ldr	w1, [x20, #8]
	bl	_ether_addr_copy
Lloh22:
	adrp	x8, _QED_MSG_IOV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _QED_MSG_IOV@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	str	x22, [sp]
Lloh25:
	adrp	x2, l_.str.1@PAGE
Lloh26:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
	ldr	w8, [x23]
LBB0_25:
	cmp	w22, w8
	b.ne	LBB0_2
; %bb.26:
Lloh27:
	adrp	x2, l_.str.2@PAGE
Lloh28:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_27:
Lloh29:
	adrp	x8, _QED_MSG_IOV@GOTPAGE
Lloh30:
	ldr	x8, [x8, _QED_MSG_IOV@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_DP_VERBOSE
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_ADDR_FORCED,4,2            ; @MAC_ADDR_FORCED
	.comm	_QED_FILTER_REMOVE,8,3          ; @QED_FILTER_REMOVE
	.comm	_QED_ETH_VF_NUM_MAC_FILTERS,4,2 ; @QED_ETH_VF_NUM_MAC_FILTERS
	.comm	_QED_MSG_IOV,4,2                ; @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAC isn't configured\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_FILTER_REPLACE,8,3         ; @QED_FILTER_REPLACE
	.comm	_QED_FILTER_FLUSH,8,3           ; @QED_FILTER_FLUSH
	.comm	_QED_FILTER_ADD,8,3             ; @QED_FILTER_ADD
l_.str.1:                               ; @.str.1
	.asciz	"Added MAC at %d entry in shadow\n"

l_.str.2:                               ; @.str.2
	.asciz	"No available place for MAC\n"

	.no_dead_strip	_qed_iov_vf_update_mac_shadow
.subsections_via_symbols
