	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_eeprom_check_version    ## -- Begin function il4965_eeprom_check_version
	.p2align	4, 0x90
_il4965_eeprom_check_version:           ## @il4965_eeprom_check_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_EEPROM_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_il_eeprom_query16
	movq	%rax, %r14
	movq	_EEPROM_4965_CALIB_VERSION_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_il_eeprom_query16
	movq	(%rbx), %rcx
	movq	(%rcx), %rdx
	movq	8(%rcx), %r8
	cmpq	%rdx, %r14
	jl	LBB0_3
## %bb.1:
	cmpq	%r8, %rax
	jl	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_IL_INFO
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rcx
	callq	_IL_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_VERSION,4,2             ## @EEPROM_VERSION
	.comm	_EEPROM_4965_CALIB_VERSION_OFFSET,4,2 ## @EEPROM_4965_CALIB_VERSION_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device EEPROM VER=0x%x, CALIB=0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unsupported (too old) EEPROM VER=0x%x < 0x%x CALIB=0x%x < 0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_eeprom_check_version    ; -- Begin function il4965_eeprom_check_version
	.p2align	2
_il4965_eeprom_check_version:           ; @il4965_eeprom_check_version
	.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	x20, x0
Lloh0:
	adrp	x8, _EEPROM_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEPROM_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_il_eeprom_query16
	mov	x19, x0
Lloh3:
	adrp	x8, _EEPROM_4965_CALIB_VERSION_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EEPROM_4965_CALIB_VERSION_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_il_eeprom_query16
	mov	x3, x0
	ldr	x8, [x20]
	ldp	x2, x4, [x8]
	cmp	x19, x2
	ccmp	x0, x4, #8, ge
	b.ge	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_IL_ERR
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x3
	bl	_IL_INFO
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_VERSION,4,2             ; @EEPROM_VERSION
	.comm	_EEPROM_4965_CALIB_VERSION_OFFSET,4,2 ; @EEPROM_4965_CALIB_VERSION_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device EEPROM VER=0x%x, CALIB=0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unsupported (too old) EEPROM VER=0x%x < 0x%x CALIB=0x%x < 0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
