	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmveth_set_multicast_list
_ibmveth_set_multicast_list:            ## @ibmveth_set_multicast_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	%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	%rdi, %r13
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	jne	LBB0_2
## %bb.1:
	movq	8(%r13), %rax
	cmpq	(%r14), %rax
	jle	LBB0_4
LBB0_2:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	_IbmVethMcastEnableRecv@GOTPCREL(%rip), %rax
	movq	_IbmVethMcastDisableFiltering@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	xorl	%edx, %edx
	callq	_h_multicast_ctrl
	movq	_H_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_4:
	movq	16(%r13), %rbx
	movq	8(%r14), %rax
	movq	_IbmVethMcastEnableRecv@GOTPCREL(%rip), %rcx
	movq	_IbmVethMcastDisableFiltering@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movl	(%rax), %edi
	movq	_IbmVethMcastClearFilterTable@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	xorl	%edx, %edx
	callq	_h_multicast_ctrl
	movq	_H_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_netdev_err
LBB0_6:
	cmpq	$0, 8(%r13)
	jle	LBB0_11
## %bb.7:
	xorl	%r12d, %r12d
	movq	_IbmVethMcastAddFilter@GOTPCREL(%rip), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	movq	8(%rbx), %rbx
	cmpq	%r12, 8(%r13)
	jle	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -48(%rbp)
	movl	(%rbx), %esi
	leaq	-46(%rbp), %rdi
	movl	$6, %edx
	callq	_memcpy
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movq	-48(%rbp), %rdx
	callq	_h_multicast_ctrl
	movq	_H_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	callq	_netdev_err
	jmp	LBB0_10
LBB0_11:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	_IbmVethMcastEnableFiltering@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_h_multicast_ctrl
	movq	_H_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_netdev_err
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_IbmVethMcastEnableRecv,4,2     ## @IbmVethMcastEnableRecv
	.comm	_IbmVethMcastDisableFiltering,4,2 ## @IbmVethMcastDisableFiltering
	.comm	_H_SUCCESS,8,3                  ## @H_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"h_multicast_ctrl rc=%ld when entering promisc mode\n"

	.comm	_IbmVethMcastClearFilterTable,4,2 ## @IbmVethMcastClearFilterTable
L_.str.1:                               ## @.str.1
	.asciz	"h_multicast_ctrl rc=%ld when attempting to clear filter table\n"

	.comm	_IbmVethMcastAddFilter,4,2      ## @IbmVethMcastAddFilter
L_.str.2:                               ## @.str.2
	.asciz	"h_multicast_ctrl rc=%ld when adding an entry to the filter table\n"

	.comm	_IbmVethMcastEnableFiltering,4,2 ## @IbmVethMcastEnableFiltering
L_.str.3:                               ## @.str.3
	.asciz	"h_multicast_ctrl rc=%ld when enabling filtering\n"

	.no_dead_strip	_ibmveth_set_multicast_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmveth_set_multicast_list
_ibmveth_set_multicast_list:            ; @ibmveth_set_multicast_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.le	LBB0_4
LBB0_2:
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _IbmVethMcastEnableRecv@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IbmVethMcastEnableRecv@GOTPAGEOFF]
	ldr	w0, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _IbmVethMcastDisableFiltering@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IbmVethMcastDisableFiltering@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x2, #0
	bl	_h_multicast_ctrl
Lloh9:
	adrp	x8, _H_SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _H_SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_13
; %bb.3:
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_netdev_err
LBB0_4:
	ldr	x23, [x19, #16]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _IbmVethMcastEnableRecv@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IbmVethMcastEnableRecv@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _IbmVethMcastDisableFiltering@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IbmVethMcastDisableFiltering@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _IbmVethMcastClearFilterTable@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IbmVethMcastClearFilterTable@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x2, #0
	bl	_h_multicast_ctrl
Lloh23:
	adrp	x24, _H_SUCCESS@GOTPAGE
Lloh24:
	ldr	x24, [x24, _H_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
	mov	x2, x0
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
LBB0_6:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x25, #0
	add	x8, sp, #8
	orr	x21, x8, #0x2
Lloh27:
	adrp	x26, _IbmVethMcastAddFilter@GOTPAGE
Lloh28:
	ldr	x26, [x26, _IbmVethMcastAddFilter@GOTPAGEOFF]
Lloh29:
	adrp	x22, l_.str.2@PAGE
Lloh30:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	ldr	x23, [x23, #8]
	ldr	x8, [x19, #8]
	cmp	x8, x25
	b.le	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #8]
	ldr	w1, [x23]
	mov	x0, x21
	mov	w2, #6
	bl	_memcpy
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	w1, [x26]
	ldr	x2, [sp, #8]
	bl	_h_multicast_ctrl
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_netdev_err
	b	LBB0_8
LBB0_11:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh31:
	adrp	x8, _IbmVethMcastEnableFiltering@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IbmVethMcastEnableFiltering@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_h_multicast_ctrl
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_13
; %bb.12:
	mov	x2, x0
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_IbmVethMcastEnableRecv,4,2     ; @IbmVethMcastEnableRecv
	.comm	_IbmVethMcastDisableFiltering,4,2 ; @IbmVethMcastDisableFiltering
	.comm	_H_SUCCESS,8,3                  ; @H_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"h_multicast_ctrl rc=%ld when entering promisc mode\n"

	.comm	_IbmVethMcastClearFilterTable,4,2 ; @IbmVethMcastClearFilterTable
l_.str.1:                               ; @.str.1
	.asciz	"h_multicast_ctrl rc=%ld when attempting to clear filter table\n"

	.comm	_IbmVethMcastAddFilter,4,2      ; @IbmVethMcastAddFilter
l_.str.2:                               ; @.str.2
	.asciz	"h_multicast_ctrl rc=%ld when adding an entry to the filter table\n"

	.comm	_IbmVethMcastEnableFiltering,4,2 ; @IbmVethMcastEnableFiltering
l_.str.3:                               ; @.str.3
	.asciz	"h_multicast_ctrl rc=%ld when enabling filtering\n"

	.no_dead_strip	_ibmveth_set_multicast_list
.subsections_via_symbols
