	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_init_shared_code          ## -- Begin function i40e_init_shared_code
	.p2align	4, 0x90
_i40e_init_shared_code:                 ## @i40e_init_shared_code
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_i40e_set_mac_type
	movl	4(%rbx), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.1:
	movl	$1, 24(%rbx)
	movq	_I40E_PFGEN_PORTNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rd32
	movq	_I40E_PFGEN_PORTNUM_PORT_NUM_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_I40E_PFGEN_PORTNUM_PORT_NUM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	cltq
	movq	%rax, 16(%rbx)
	movq	_I40E_GLPCI_CAPSUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rd32
	movl	%eax, %r14d
	movq	_I40E_GLPCI_CAPSUP_ARI_EN_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_I40E_GLPCI_CAPSUP_ARI_EN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	movq	_I40E_PF_FUNC_RID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rd32
	testl	%r14d, %r14d
	movl	$7, %ecx
	movl	$255, %edx
	cmovel	%ecx, %edx
	andl	%eax, %edx
	movq	%rdx, 8(%rbx)
	cmpl	$129, 4(%rbx)
	jne	LBB0_3
## %bb.2:
	movq	_I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE@GOTPCREL(%rip), %rax
	movq	_I40E_HW_FLAG_NVM_READ_REQUIRES_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%rbx)
LBB0_3:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_i40e_init_nvm                  ## TAILCALL
LBB0_4:
	movq	_I40E_ERR_DEVICE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_ERR_DEVICE_NOT_SUPPORTED,4,2 ## @I40E_ERR_DEVICE_NOT_SUPPORTED
	.comm	_I40E_PFGEN_PORTNUM,4,2         ## @I40E_PFGEN_PORTNUM
	.comm	_I40E_PFGEN_PORTNUM_PORT_NUM_MASK,4,2 ## @I40E_PFGEN_PORTNUM_PORT_NUM_MASK
	.comm	_I40E_PFGEN_PORTNUM_PORT_NUM_SHIFT,4,2 ## @I40E_PFGEN_PORTNUM_PORT_NUM_SHIFT
	.comm	_I40E_GLPCI_CAPSUP,4,2          ## @I40E_GLPCI_CAPSUP
	.comm	_I40E_GLPCI_CAPSUP_ARI_EN_MASK,4,2 ## @I40E_GLPCI_CAPSUP_ARI_EN_MASK
	.comm	_I40E_GLPCI_CAPSUP_ARI_EN_SHIFT,4,2 ## @I40E_GLPCI_CAPSUP_ARI_EN_SHIFT
	.comm	_I40E_PF_FUNC_RID,4,2           ## @I40E_PF_FUNC_RID
	.comm	_I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE,4,2 ## @I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE
	.comm	_I40E_HW_FLAG_NVM_READ_REQUIRES_LOCK,4,2 ## @I40E_HW_FLAG_NVM_READ_REQUIRES_LOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_init_shared_code          ; -- Begin function i40e_init_shared_code
	.p2align	2
_i40e_init_shared_code:                 ; @i40e_init_shared_code
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_i40e_set_mac_type
	ldr	w8, [x19, #4]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.1:
	mov	w8, #1
	str	w8, [x19, #24]
Lloh0:
	adrp	x8, _I40E_PFGEN_PORTNUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_PFGEN_PORTNUM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rd32
Lloh3:
	adrp	x8, _I40E_PFGEN_PORTNUM_PORT_NUM_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_PFGEN_PORTNUM_PORT_NUM_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _I40E_PFGEN_PORTNUM_PORT_NUM_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I40E_PFGEN_PORTNUM_PORT_NUM_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
	sxtw	x8, w8
	str	x8, [x19, #16]
Lloh9:
	adrp	x8, _I40E_GLPCI_CAPSUP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40E_GLPCI_CAPSUP@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rd32
Lloh12:
	adrp	x8, _I40E_GLPCI_CAPSUP_ARI_EN_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I40E_GLPCI_CAPSUP_ARI_EN_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _I40E_GLPCI_CAPSUP_ARI_EN_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _I40E_GLPCI_CAPSUP_ARI_EN_SHIFT@GOTPAGEOFF]
	and	w8, w8, w0
Lloh17:
	ldr	w9, [x9]
	asr	w20, w8, w9
Lloh18:
	adrp	x8, _I40E_PF_FUNC_RID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I40E_PF_FUNC_RID@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rd32
	mov	w8, #255
	mov	w9, #7
	cmp	w20, #0
	csel	w8, w9, w8, eq
	and	w8, w0, w8
	str	x8, [x19, #8]
	ldr	w8, [x19, #4]
	cmp	w8, #129
	b.ne	LBB0_3
; %bb.2:
Lloh21:
	adrp	x8, _I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE@GOTPAGEOFF]
Lloh23:
	adrp	x9, _I40E_HW_FLAG_NVM_READ_REQUIRES_LOCK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _I40E_HW_FLAG_NVM_READ_REQUIRES_LOCK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i40e_init_nvm
LBB0_4:
Lloh27:
	adrp	x8, _I40E_ERR_DEVICE_NOT_SUPPORTED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _I40E_ERR_DEVICE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_ERR_DEVICE_NOT_SUPPORTED,4,2 ; @I40E_ERR_DEVICE_NOT_SUPPORTED
	.comm	_I40E_PFGEN_PORTNUM,4,2         ; @I40E_PFGEN_PORTNUM
	.comm	_I40E_PFGEN_PORTNUM_PORT_NUM_MASK,4,2 ; @I40E_PFGEN_PORTNUM_PORT_NUM_MASK
	.comm	_I40E_PFGEN_PORTNUM_PORT_NUM_SHIFT,4,2 ; @I40E_PFGEN_PORTNUM_PORT_NUM_SHIFT
	.comm	_I40E_GLPCI_CAPSUP,4,2          ; @I40E_GLPCI_CAPSUP
	.comm	_I40E_GLPCI_CAPSUP_ARI_EN_MASK,4,2 ; @I40E_GLPCI_CAPSUP_ARI_EN_MASK
	.comm	_I40E_GLPCI_CAPSUP_ARI_EN_SHIFT,4,2 ; @I40E_GLPCI_CAPSUP_ARI_EN_SHIFT
	.comm	_I40E_PF_FUNC_RID,4,2           ; @I40E_PF_FUNC_RID
	.comm	_I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE,4,2 ; @I40E_HW_FLAG_AQ_SRCTL_ACCESS_ENABLE
	.comm	_I40E_HW_FLAG_NVM_READ_REQUIRES_LOCK,4,2 ; @I40E_HW_FLAG_NVM_READ_REQUIRES_LOCK
.subsections_via_symbols
