	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_get_oem_version
_i40e_get_oem_version:                  ## @i40e_get_oem_version
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$65535, -12(%rbp)               ## imm = 0xFFFF
	movl	$0, -28(%rbp)
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -16(%rbp)
	leaq	-12(%rbp), %rdx
	movl	$27, %esi
	callq	_i40e_read_nvm_word
	movslq	-12(%rbp), %rsi
	cmpq	$65535, %rsi                    ## imm = 0xFFFF
	je	LBB0_4
## %bb.1:
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_i40e_read_nvm_word
	cmpl	$3, -28(%rbp)
	jl	LBB0_4
## %bb.2:
	movslq	-12(%rbp), %rsi
	incq	%rsi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_i40e_read_nvm_word
	testb	$15, -24(%rbp)
	jne	LBB0_4
## %bb.3:
	movslq	-12(%rbp), %rsi
	addq	$2, %rsi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_i40e_read_nvm_word
	movslq	-12(%rbp), %rsi
	addq	$3, %rsi
	leaq	-16(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_i40e_read_nvm_word
	movl	-20(%rbp), %eax
	movq	_I40E_OEM_SNAP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	-16(%rbp), %eax
	movl	%eax, (%rbx)
	movq	_I40E_OEM_EETRACK_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_OEM_SNAP_SHIFT,4,2        ## @I40E_OEM_SNAP_SHIFT
	.comm	_I40E_OEM_EETRACK_ID,4,2        ## @I40E_OEM_EETRACK_ID
	.comm	_I40E_NVM_OEM_CAPABILITIES_MASK,4,2 ## @I40E_NVM_OEM_CAPABILITIES_MASK
	.comm	_I40E_NVM_OEM_CAPABILITIES_OFFSET,8,3 ## @I40E_NVM_OEM_CAPABILITIES_OFFSET
	.comm	_I40E_NVM_OEM_GEN_OFFSET,8,3    ## @I40E_NVM_OEM_GEN_OFFSET
	.comm	_I40E_NVM_OEM_LENGTH,4,2        ## @I40E_NVM_OEM_LENGTH
	.comm	_I40E_NVM_OEM_LENGTH_OFFSET,8,3 ## @I40E_NVM_OEM_LENGTH_OFFSET
	.comm	_I40E_NVM_OEM_RELEASE_OFFSET,8,3 ## @I40E_NVM_OEM_RELEASE_OFFSET
	.comm	_I40E_SR_NVM_OEM_VERSION_PTR,8,3 ## @I40E_SR_NVM_OEM_VERSION_PTR
	.no_dead_strip	_i40e_get_oem_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_get_oem_version
_i40e_get_oem_version:                  ; @i40e_get_oem_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	mov	w20, #65535
	stur	w20, [x29, #-20]
	str	wzr, [sp, #24]
	str	xzr, [sp, #16]
	str	wzr, [sp, #12]
	sub	x2, x29, #20
	mov	w1, #27
	bl	_i40e_read_nvm_word
	ldursw	x1, [x29, #-20]
	cmp	w1, w20
	b.eq	LBB0_4
; %bb.1:
	add	x2, sp, #24
	mov	x0, x19
	bl	_i40e_read_nvm_word
	ldr	w8, [sp, #24]
	cmp	w8, #3
	b.lt	LBB0_4
; %bb.2:
	ldursw	x8, [x29, #-20]
	add	x1, x8, #1
	add	x2, sp, #20
	mov	x0, x19
	bl	_i40e_read_nvm_word
	ldrb	w8, [sp, #20]
	tst	w8, #0xf
	b.ne	LBB0_4
; %bb.3:
	ldursw	x8, [x29, #-20]
	add	x1, x8, #2
	add	x2, sp, #16
	mov	x0, x19
	bl	_i40e_read_nvm_word
	ldursw	x8, [x29, #-20]
	add	x1, x8, #3
	add	x2, sp, #12
	mov	x0, x19
	bl	_i40e_read_nvm_word
	ldr	w8, [sp, #16]
Lloh0:
	adrp	x9, _I40E_OEM_SNAP_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40E_OEM_SNAP_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	w9, [sp, #12]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh3:
	adrp	x8, _I40E_OEM_EETRACK_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_OEM_EETRACK_ID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_OEM_SNAP_SHIFT,4,2        ; @I40E_OEM_SNAP_SHIFT
	.comm	_I40E_OEM_EETRACK_ID,4,2        ; @I40E_OEM_EETRACK_ID
	.comm	_I40E_NVM_OEM_CAPABILITIES_MASK,4,2 ; @I40E_NVM_OEM_CAPABILITIES_MASK
	.comm	_I40E_NVM_OEM_CAPABILITIES_OFFSET,8,3 ; @I40E_NVM_OEM_CAPABILITIES_OFFSET
	.comm	_I40E_NVM_OEM_GEN_OFFSET,8,3    ; @I40E_NVM_OEM_GEN_OFFSET
	.comm	_I40E_NVM_OEM_LENGTH,4,2        ; @I40E_NVM_OEM_LENGTH
	.comm	_I40E_NVM_OEM_LENGTH_OFFSET,8,3 ; @I40E_NVM_OEM_LENGTH_OFFSET
	.comm	_I40E_NVM_OEM_RELEASE_OFFSET,8,3 ; @I40E_NVM_OEM_RELEASE_OFFSET
	.comm	_I40E_SR_NVM_OEM_VERSION_PTR,8,3 ; @I40E_SR_NVM_OEM_VERSION_PTR
	.no_dead_strip	_i40e_get_oem_version
.subsections_via_symbols
