	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_set_mc_list_e1x
_bnx2x_set_mc_list_e1x:                 ## @bnx2x_set_mc_list_e1x
	.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, %r14
	movq	_mcast_group_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LIST_HEAD
	movq	8(%r14), %r15
	movq	$0, -32(%rbp)
	movq	%r14, -40(%rbp)
	movq	_BNX2X_MCAST_CMD_DEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_bnx2x_config_mcast
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_netdev_mc_count
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_mcast_group_list@GOTPCREL(%rip), %rdx
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_bnx2x_init_mcast_macs_list
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	_BNX2X_MCAST_CMD_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_bnx2x_config_mcast
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_BNX2X_ERR
LBB0_6:
	movq	_mcast_group_list@GOTPCREL(%rip), %rdi
	callq	_bnx2x_free_mcast_macs_list
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_BNX2X_ERR
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mcast_group_list,4,2           ## @mcast_group_list
	.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"

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

	.no_dead_strip	_bnx2x_set_mc_list_e1x
.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_e1x
_bnx2x_set_mc_list_e1x:                 ; @bnx2x_set_mc_list_e1x
	.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	x19, x0
Lloh0:
	adrp	x8, _mcast_group_list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mcast_group_list@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_LIST_HEAD
	ldr	x21, [x19, #8]
	stp	x19, xzr, [sp]
Lloh3:
	adrp	x8, _BNX2X_MCAST_CMD_DEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNX2X_MCAST_CMD_DEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, sp
	mov	x0, x19
	bl	_bnx2x_config_mcast
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x0, x21
	bl	_netdev_mc_count
	cbz	x0, LBB0_7
; %bb.2:
Lloh6:
	adrp	x2, _mcast_group_list@GOTPAGE
Lloh7:
	ldr	x2, [x2, _mcast_group_list@GOTPAGEOFF]
	mov	x1, sp
	mov	x0, x19
	bl	_bnx2x_init_mcast_macs_list
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.3:
Lloh8:
	adrp	x8, _BNX2X_MCAST_CMD_ADD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BNX2X_MCAST_CMD_ADD@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x1, sp
	mov	x0, x19
	bl	_bnx2x_config_mcast
	mov	x20, x0
	tbz	w0, #31, LBB0_5
; %bb.4:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_BNX2X_ERR
LBB0_5:
Lloh13:
	adrp	x0, _mcast_group_list@GOTPAGE
Lloh14:
	ldr	x0, [x0, _mcast_group_list@GOTPAGEOFF]
	bl	_bnx2x_free_mcast_macs_list
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_BNX2X_ERR
LBB0_7:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_mcast_group_list,4,2           ; @mcast_group_list
	.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"

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

	.no_dead_strip	_bnx2x_set_mc_list_e1x
.subsections_via_symbols
