	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nix_interface_init
_nix_interface_init:                    ## @nix_interface_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	callq	_rvu_get_pfvf
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_rvu_get_pf
	movl	%eax, %r14d
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_is_pf_cgxmapped
	xorl	%ecx, %ecx
	cmpl	$128, %r15d
	je	LBB0_2
## %bb.1:
	testl	%eax, %eax
	je	LBB0_11
LBB0_2:
	cmpl	$128, %r15d
	je	LBB0_7
## %bb.3:
	cmpl	$129, %r15d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_8
## %bb.4:
	movq	8(%r13), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %edi
	movl	%edi, 48(%r15)
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_rvu_get_cgx_lmac_id
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_rvu_npc_get_pkind
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	%eax, %r14d
	movl	-48(%rbp), %edi
	movl	-44(%rbp), %esi
	xorl	%edx, %edx
	callq	_NIX_CHAN_CGX_LMAC_CHX
	movq	%rax, 24(%r15)
	movq	%rax, 40(%r15)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r15)
	movl	-48(%rbp), %edi
	movq	%r13, %rsi
	callq	_rvu_cgx_pdata
	movl	-44(%rbp), %esi
	movl	%eax, %edi
	movl	%r14d, %edx
	callq	_cgx_set_pkind
	movq	%r13, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_rvu_npc_set_pkind
	jmp	LBB0_8
LBB0_7:
	movq	_RVU_PFVF_FUNC_MASK@GOTPCREL(%rip), %rax
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	(%rax), %r15d
	andl	%r12d, %r15d
	leal	-1(%r15), %r14d
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_NIX_CHAN_LBK_CHX
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	leal	-2(%r15), %esi
	testb	$1, %r14b
	cmovel	%r15d, %esi
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movq	%rbx, %r15
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_NIX_CHAN_LBK_CHX
	movq	%rax, 40(%r15)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r15)
	movq	24(%r15), %rcx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	xorl	%r8d, %r8d
	callq	_rvu_npc_install_promisc_entry
LBB0_8:
	movq	24(%r15), %rcx
	movl	32(%r15), %r8d
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_rvu_npc_install_ucast_entry
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_nix_update_bcast_mce_list
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_err
	movl	%ebx, %ecx
	jmp	LBB0_11
LBB0_10:
	movl	%ebx, %edx
	movq	24(%r15), %rcx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_rvu_npc_install_bcast_match_entry
	movq	_NIC_HW_MIN_FRS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	%rax, 8(%r15)
	xorl	%ecx, %ecx
	jmp	LBB0_11
LBB0_5:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_11:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PF_Func 0x%x: Invalid pkind\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RVU_PFVF_FUNC_MASK,4,2         ## @RVU_PFVF_FUNC_MASK
L_.str.1:                               ## @.str.1
	.asciz	"Bcast list, failed to enable PF_FUNC 0x%x\n"

	.comm	_NIC_HW_MIN_FRS,8,3             ## @NIC_HW_MIN_FRS
	.no_dead_strip	_nix_interface_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nix_interface_init
_nix_interface_init:                    ; @nix_interface_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x24, x2
	mov	x19, x1
	mov	x21, x0
	bl	_rvu_get_pfvf
	mov	x22, x0
	mov	x0, x19
	bl	_rvu_get_pf
	mov	x23, x0
	mov	x0, x21
	mov	x1, x23
	bl	_is_pf_cgxmapped
	cmp	w24, #128
	b.eq	LBB0_3
; %bb.1:
	cbnz	w0, LBB0_3
; %bb.2:
	mov	w23, #0
	b	LBB0_12
LBB0_3:
	cmp	w24, #128
	b.eq	LBB0_7
; %bb.4:
	cmp	w24, #129
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x21, #8]
	ldr	w0, [x8, w23, sxtw #2]
	str	w0, [x22, #48]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_rvu_get_cgx_lmac_id
	mov	x0, x21
	mov	x1, x23
	bl	_rvu_npc_get_pkind
	tbnz	w0, #31, LBB0_11
; %bb.6:
	mov	x23, x0
	ldp	w1, w0, [sp, #8]
	mov	w2, #0
	bl	_NIX_CHAN_CGX_LMAC_CHX
	str	x0, [x22, #24]
	str	x0, [x22, #40]
	movi.2s	v0, #1
	str	d0, [x22]
	ldr	w0, [sp, #12]
	mov	x1, x21
	bl	_rvu_cgx_pdata
	ldr	w1, [sp, #8]
	mov	x2, x23
	bl	_cgx_set_pkind
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_rvu_npc_set_pkind
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _RVU_PFVF_FUNC_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RVU_PFVF_FUNC_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w24, w8, w19
	sub	w23, w24, #1
	mov	w0, #0
	mov	x1, x23
	bl	_NIX_CHAN_LBK_CHX
	str	x0, [x22, #24]
	sub	w8, w24, #2
	tst	w23, #0x1
	csel	w1, w24, w8, eq
	mov	w0, #0
	bl	_NIX_CHAN_LBK_CHX
	str	x0, [x22, #40]
	movi.2s	v0, #1
	str	d0, [x22]
	ldr	x3, [x22, #24]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	w4, #0
	bl	_rvu_npc_install_promisc_entry
LBB0_8:
	ldr	x3, [x22, #24]
	ldr	w4, [x22, #32]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_rvu_npc_install_ucast_entry
	mov	x0, x21
	mov	x1, x19
	mov	w2, #1
	bl	_nix_update_bcast_mce_list
	mov	x23, x0
	cbz	w0, LBB0_10
; %bb.9:
	ldr	w0, [x21]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	b	LBB0_12
LBB0_10:
	ldr	x3, [x22, #24]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_rvu_npc_install_bcast_match_entry
Lloh5:
	adrp	x8, _NIC_HW_MIN_FRS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NIC_HW_MIN_FRS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	stp	x8, x8, [x22, #8]
	b	LBB0_12
LBB0_11:
	ldr	w0, [x21]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PF_Func 0x%x: Invalid pkind\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RVU_PFVF_FUNC_MASK,4,2         ; @RVU_PFVF_FUNC_MASK
l_.str.1:                               ; @.str.1
	.asciz	"Bcast list, failed to enable PF_FUNC 0x%x\n"

	.comm	_NIC_HW_MIN_FRS,8,3             ; @NIC_HW_MIN_FRS
	.no_dead_strip	_nix_interface_init
.subsections_via_symbols
