	.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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_mcast_group_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LIST_HEAD
	movq	$0, -24(%rbp)
	movq	8(%rbx), %r14
	movq	%rbx, %rdi
	callq	_CHIP_IS_E1x
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bnx2x_set_mc_list_e1x          ## TAILCALL
LBB0_1:
	movq	%rbx, -32(%rbp)
	movq	%r14, %rdi
	callq	_netdev_mc_count
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_mcast_group_list@GOTPCREL(%rip), %rdx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_bnx2x_init_mcast_macs_list
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	_BNX2X_MCAST_CMD_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_bnx2x_config_mcast
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_BNX2X_ERR
LBB0_5:
	movq	_mcast_group_list@GOTPCREL(%rip), %rdi
	callq	_bnx2x_free_mcast_macs_list
	jmp	LBB0_8
LBB0_6:
	movq	_BNX2X_MCAST_CMD_DEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_bnx2x_config_mcast
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_BNX2X_ERR
LBB0_8:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mcast_group_list,4,2           ## @mcast_group_list
	.comm	_BNX2X_MCAST_CMD_SET,4,2        ## @BNX2X_MCAST_CMD_SET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set a new multicast configuration: %d\n"

	.comm	_BNX2X_MCAST_CMD_DEL,4,2        ## @BNX2X_MCAST_CMD_DEL
L_.str.1:                               ## @.str.1
	.asciz	"Failed to clear 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, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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
	str	xzr, [sp, #8]
	ldr	x20, [x19, #8]
	mov	x0, x19
	bl	_CHIP_IS_E1x
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_bnx2x_set_mc_list_e1x
LBB0_2:
	str	x19, [sp]
	mov	x0, x20
	bl	_netdev_mc_count
	cbz	x0, LBB0_7
; %bb.3:
Lloh3:
	adrp	x2, _mcast_group_list@GOTPAGE
Lloh4:
	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_9
; %bb.4:
Lloh5:
	adrp	x8, _BNX2X_MCAST_CMD_SET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BNX2X_MCAST_CMD_SET@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, sp
	mov	x0, x19
	bl	_bnx2x_config_mcast
	mov	x20, x0
	tbz	w0, #31, LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_BNX2X_ERR
LBB0_6:
Lloh10:
	adrp	x0, _mcast_group_list@GOTPAGE
Lloh11:
	ldr	x0, [x0, _mcast_group_list@GOTPAGEOFF]
	bl	_bnx2x_free_mcast_macs_list
	b	LBB0_9
LBB0_7:
Lloh12:
	adrp	x8, _BNX2X_MCAST_CMD_DEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BNX2X_MCAST_CMD_DEL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x1, sp
	mov	x0, x19
	bl	_bnx2x_config_mcast
	mov	x20, x0
	tbz	w0, #31, LBB0_9
; %bb.8:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_BNX2X_ERR
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_mcast_group_list,4,2           ; @mcast_group_list
	.comm	_BNX2X_MCAST_CMD_SET,4,2        ; @BNX2X_MCAST_CMD_SET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set a new multicast configuration: %d\n"

	.comm	_BNX2X_MCAST_CMD_DEL,4,2        ; @BNX2X_MCAST_CMD_DEL
l_.str.1:                               ; @.str.1
	.asciz	"Failed to clear multicast configuration %d\n"

	.no_dead_strip	_bnx2x_set_mc_list
.subsections_via_symbols
