	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_vf_mcast                 ## -- Begin function bnx2x_vf_mcast
	.p2align	4, 0x90
_bnx2x_vf_mcast:                        ## @bnx2x_vf_mcast
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	callq	_DP
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%rbx, -56(%rbp)
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.1:
	movq	_RAMROD_COMP_WAIT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_RAMROD_DRV_CLR_ONLY@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	callq	_set_bit
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	%rax, %r15
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	leaq	-68(%rbp), %rdi
	callq	_INIT_LIST_HEAD
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	testl	%r13d, %r13d
	jle	LBB0_8
## %bb.6:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	xorl	%r13d, %r13d
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r13,4), %eax
	movl	%eax, 4(%r15,%r13,8)
	movq	%rbx, %rdi
	leaq	-68(%rbp), %rsi
	callq	_list_add_tail
	incq	%r13
	addq	$8, %rbx
	cmpq	%r13, %r14
	jne	LBB0_7
LBB0_8:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -72(%rbp)
	movq	_BNX2X_MCAST_CMD_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_bnx2x_config_mcast
	testl	%eax, %eax
	je	LBB0_15
## %bb.9:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_12
LBB0_10:
	movq	_BNX2X_MCAST_CMD_DEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	callq	_bnx2x_config_mcast
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rdi
LBB0_12:
	callq	_BNX2X_ERR
	jmp	LBB0_16
LBB0_15:
	xorl	%r14d, %r14d
LBB0_16:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_17
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	callq	_BNX2X_ERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_MSG_IOV,4,2              ## @BNX2X_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vf[%d]\n"

	.comm	_RAMROD_DRV_CLR_ONLY,4,2        ## @RAMROD_DRV_CLR_ONLY
	.comm	_RAMROD_COMP_WAIT,4,2           ## @RAMROD_COMP_WAIT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Cannot Configure multicasts due to lack of memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BNX2X_MCAST_CMD_SET,4,2        ## @BNX2X_MCAST_CMD_SET
L_.str.2:                               ## @.str.2
	.asciz	"Failed to set multicasts\n"

	.comm	_BNX2X_MCAST_CMD_DEL,4,2        ## @BNX2X_MCAST_CMD_DEL
L_.str.3:                               ## @.str.3
	.asciz	"Failed to remove multicasts\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_vf_mcast                 ; -- Begin function bnx2x_vf_mcast
	.p2align	2
_bnx2x_vf_mcast:                        ; @bnx2x_vf_mcast
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w2, [x1, #4]
Lloh0:
	adrp	x8, _BNX2X_MSG_IOV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2X_MSG_IOV@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	add	x24, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	x23, [sp, #24]
Lloh5:
	adrp	x8, _RAMROD_COMP_WAIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RAMROD_COMP_WAIT@GOTPAGEOFF]
Lloh7:
	adrp	x9, _RAMROD_DRV_CLR_ONLY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RAMROD_DRV_CLR_ONLY@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	add	x1, x24, #8
	bl	_set_bit
	cbz	w21, LBB0_7
; %bb.1:
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_11
; %bb.2:
	mov	x20, x0
	add	x8, sp, #8
	orr	x23, x8, #0x4
	mov	x0, x23
	bl	_INIT_LIST_HEAD
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w25, w21
	mov	x24, x20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22], #4
	str	w8, [x24, #4]
	mov	x0, x24
	mov	x1, x23
	bl	_list_add_tail
	add	x24, x24, #8
	subs	x25, x25, #1
	b.ne	LBB0_4
LBB0_5:
	str	w21, [sp, #8]
Lloh12:
	adrp	x8, _BNX2X_MCAST_CMD_SET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BNX2X_MCAST_CMD_SET@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_bnx2x_config_mcast
	mov	x19, x0
	cbz	w0, LBB0_10
; %bb.6:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh17:
	adrp	x8, _BNX2X_MCAST_CMD_DEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BNX2X_MCAST_CMD_DEL@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_bnx2x_config_mcast
	mov	x19, x0
	mov	x20, #0
	cbz	w0, LBB0_10
; %bb.8:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_9:
	bl	_BNX2X_ERR
LBB0_10:
	mov	x0, x20
	bl	_kfree
	b	LBB0_12
LBB0_11:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BNX2X_ERR
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_12:
	mov	x0, x19
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_MSG_IOV,4,2              ; @BNX2X_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vf[%d]\n"

	.comm	_RAMROD_DRV_CLR_ONLY,4,2        ; @RAMROD_DRV_CLR_ONLY
	.comm	_RAMROD_COMP_WAIT,4,2           ; @RAMROD_COMP_WAIT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Cannot Configure multicasts due to lack of memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BNX2X_MCAST_CMD_SET,4,2        ; @BNX2X_MCAST_CMD_SET
l_.str.2:                               ; @.str.2
	.asciz	"Failed to set multicasts\n"

	.comm	_BNX2X_MCAST_CMD_DEL,4,2        ; @BNX2X_MCAST_CMD_DEL
l_.str.3:                               ; @.str.3
	.asciz	"Failed to remove multicasts\n"

.subsections_via_symbols
