	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_set_mc_list
_bnx2x_set_mc_list:                     ## @bnx2x_set_mc_list
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	$0, -32(%rbp)
	movq	%rdi, -40(%rbp)
	movq	_BNX2X_MCAST_CMD_DEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	callq	_bnx2x_config_mcast
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	%r15, %rdi
	callq	_netdev_mc_count
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_bnx2x_init_mcast_macs_list
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	movl	%r14d, %esi
	callq	_BNX2X_ERR
LBB0_9:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_BNX2X_MCAST_CMD_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_bnx2x_config_mcast
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	callq	_BNX2X_ERR
LBB0_8:
	leaq	-40(%rbp), %rdi
	callq	_bnx2x_free_mcast_macs_list
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_MCAST_CMD_DEL,4,2        ## @BNX2X_MCAST_CMD_DEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to clear multicast configuration: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to create multicast MACs list: %d\n"

	.comm	_BNX2X_MCAST_CMD_ADD,4,2        ## @BNX2X_MCAST_CMD_ADD
L_.str.2:                               ## @.str.2
	.asciz	"Failed to set a new multicast configuration: %d\n"

	.no_dead_strip	_bnx2x_set_mc_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_set_mc_list
_bnx2x_set_mc_list:                     ; @bnx2x_set_mc_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	x21, [x0, #8]
	stp	x0, xzr, [sp]
Lloh0:
	adrp	x8, _BNX2X_MCAST_CMD_DEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2X_MCAST_CMD_DEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, sp
	bl	_bnx2x_config_mcast
	mov	x19, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_netdev_mc_count
	cbz	x0, LBB0_6
; %bb.2:
	mov	x1, sp
	mov	x0, x20
	bl	_bnx2x_init_mcast_macs_list
	cbz	w0, LBB0_7
; %bb.3:
	mov	x19, x0
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	mov	x1, x19
	bl	_BNX2X_ERR
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
Lloh7:
	adrp	x8, _BNX2X_MCAST_CMD_ADD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BNX2X_MCAST_CMD_ADD@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, sp
	mov	x0, x20
	bl	_bnx2x_config_mcast
	mov	x19, x0
	tbz	w0, #31, LBB0_9
; %bb.8:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_BNX2X_ERR
LBB0_9:
	mov	x0, sp
	bl	_bnx2x_free_mcast_macs_list
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_MCAST_CMD_DEL,4,2        ; @BNX2X_MCAST_CMD_DEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to clear multicast configuration: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to create multicast MACs list: %d\n"

	.comm	_BNX2X_MCAST_CMD_ADD,4,2        ; @BNX2X_MCAST_CMD_ADD
l_.str.2:                               ; @.str.2
	.asciz	"Failed to set a new multicast configuration: %d\n"

	.no_dead_strip	_bnx2x_set_mc_list
.subsections_via_symbols
