	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efa_com_validate_version       ## -- Begin function efa_com_validate_version
	.p2align	4, 0x90
_efa_com_validate_version:              ## @efa_com_validate_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	%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, %r12
	movq	_EFA_REGS_VERSION_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_efa_com_reg_read32
	movl	%eax, %ebx
	movq	_EFA_REGS_CONTROLLER_VERSION_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_efa_com_reg_read32
	movl	%eax, %r14d
	movq	_EFA_REGS_VERSION_MAJOR_VERSION_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ebx, %edx
	movq	_EFA_REGS_VERSION_MAJOR_VERSION_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movl	(%r12), %edi
	movq	_EFA_REGS_VERSION_MINOR_VERSION_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%ebx, %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_ibdev_dbg
	movq	_MIN_EFA_VER@GOTPCREL(%rip), %rax
	movl	(%r12), %edi
	cmpl	(%rax), %ebx
	jge	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_2:
	movq	_EFA_REGS_CONTROLLER_VERSION_MAJOR_VERSION_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r14d, %edx
	movq	_EFA_REGS_CONTROLLER_VERSION_MAJOR_VERSION_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movq	_EFA_REGS_CONTROLLER_VERSION_MINOR_VERSION_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	andl	%r14d, %eax
	movq	_EFA_REGS_CONTROLLER_VERSION_MINOR_VERSION_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_EFA_REGS_CONTROLLER_VERSION_SUBMINOR_VERSION_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	andl	%r14d, %r8d
	movq	_EFA_REGS_CONTROLLER_VERSION_IMPL_ID_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	andl	%r14d, %r9d
	movq	_EFA_REGS_CONTROLLER_VERSION_IMPL_ID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %r9d
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ibdev_dbg
	movl	(%rbx), %eax
	movq	_EFA_REGS_CONTROLLER_VERSION_MAJOR_VERSION_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%r13), %eax
	andl	%r14d, %eax
	movq	_MIN_EFA_CTRL_VER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_5
## %bb.3:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_4:
	callq	_ibdev_err
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFA_REGS_VERSION_OFF,4,2       ## @EFA_REGS_VERSION_OFF
	.comm	_EFA_REGS_CONTROLLER_VERSION_OFF,4,2 ## @EFA_REGS_CONTROLLER_VERSION_OFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"efa device version: %d.%d\n"

	.comm	_EFA_REGS_VERSION_MAJOR_VERSION_MASK,4,2 ## @EFA_REGS_VERSION_MAJOR_VERSION_MASK
	.comm	_EFA_REGS_VERSION_MAJOR_VERSION_SHIFT,4,2 ## @EFA_REGS_VERSION_MAJOR_VERSION_SHIFT
	.comm	_EFA_REGS_VERSION_MINOR_VERSION_MASK,4,2 ## @EFA_REGS_VERSION_MINOR_VERSION_MASK
	.comm	_MIN_EFA_VER,4,2                ## @MIN_EFA_VER
L_.str.1:                               ## @.str.1
	.asciz	"EFA version is lower than the minimal version the driver supports\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.2:                               ## @.str.2
	.asciz	"efa controller version: %d.%d.%d implementation version %d\n"

	.comm	_EFA_REGS_CONTROLLER_VERSION_MAJOR_VERSION_MASK,4,2 ## @EFA_REGS_CONTROLLER_VERSION_MAJOR_VERSION_MASK
	.comm	_EFA_REGS_CONTROLLER_VERSION_MAJOR_VERSION_SHIFT,4,2 ## @EFA_REGS_CONTROLLER_VERSION_MAJOR_VERSION_SHIFT
	.comm	_EFA_REGS_CONTROLLER_VERSION_MINOR_VERSION_MASK,4,2 ## @EFA_REGS_CONTROLLER_VERSION_MINOR_VERSION_MASK
	.comm	_EFA_REGS_CONTROLLER_VERSION_MINOR_VERSION_SHIFT,4,2 ## @EFA_REGS_CONTROLLER_VERSION_MINOR_VERSION_SHIFT
	.comm	_EFA_REGS_CONTROLLER_VERSION_SUBMINOR_VERSION_MASK,4,2 ## @EFA_REGS_CONTROLLER_VERSION_SUBMINOR_VERSION_MASK
	.comm	_EFA_REGS_CONTROLLER_VERSION_IMPL_ID_MASK,4,2 ## @EFA_REGS_CONTROLLER_VERSION_IMPL_ID_MASK
	.comm	_EFA_REGS_CONTROLLER_VERSION_IMPL_ID_SHIFT,4,2 ## @EFA_REGS_CONTROLLER_VERSION_IMPL_ID_SHIFT
	.comm	_MIN_EFA_CTRL_VER,4,2           ## @MIN_EFA_CTRL_VER
L_.str.3:                               ## @.str.3
	.asciz	"EFA ctrl version is lower than the minimal ctrl version the driver supports\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efa_com_validate_version       ; -- Begin function efa_com_validate_version
	.p2align	2
_efa_com_validate_version:              ; @efa_com_validate_version
	.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	x19, x0
Lloh0:
	adrp	x8, _EFA_REGS_VERSION_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFA_REGS_VERSION_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_efa_com_reg_read32
	mov	x21, x0
Lloh3:
	adrp	x8, _EFA_REGS_CONTROLLER_VERSION_OFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFA_REGS_CONTROLLER_VERSION_OFF@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_efa_com_reg_read32
	mov	x20, x0
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _EFA_REGS_VERSION_MAJOR_VERSION_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFA_REGS_VERSION_MAJOR_VERSION_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w21
Lloh9:
	adrp	x9, _EFA_REGS_VERSION_MAJOR_VERSION_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EFA_REGS_VERSION_MAJOR_VERSION_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	asr	w2, w8, w9
Lloh12:
	adrp	x8, _EFA_REGS_VERSION_MINOR_VERSION_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EFA_REGS_VERSION_MINOR_VERSION_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w3, w8, w21
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ibdev_dbg
Lloh17:
	adrp	x8, _MIN_EFA_VER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MIN_EFA_VER@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w0, [x19]
	cmp	w21, w8
	b.ge	LBB0_2
; %bb.1:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh22:
	adrp	x21, _EFA_REGS_CONTROLLER_VERSION_MAJOR_VERSION_MASK@GOTPAGE
Lloh23:
	ldr	x21, [x21, _EFA_REGS_CONTROLLER_VERSION_MAJOR_VERSION_MASK@GOTPAGEOFF]
	ldr	w8, [x21]
	and	w8, w8, w20
Lloh24:
	adrp	x9, _EFA_REGS_CONTROLLER_VERSION_MAJOR_VERSION_SHIFT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _EFA_REGS_CONTROLLER_VERSION_MAJOR_VERSION_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	asr	w2, w8, w9
Lloh27:
	adrp	x22, _EFA_REGS_CONTROLLER_VERSION_MINOR_VERSION_MASK@GOTPAGE
Lloh28:
	ldr	x22, [x22, _EFA_REGS_CONTROLLER_VERSION_MINOR_VERSION_MASK@GOTPAGEOFF]
	ldr	w8, [x22]
	and	w8, w8, w20
Lloh29:
	adrp	x9, _EFA_REGS_CONTROLLER_VERSION_MINOR_VERSION_SHIFT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _EFA_REGS_CONTROLLER_VERSION_MINOR_VERSION_SHIFT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	asr	w3, w8, w9
Lloh32:
	adrp	x23, _EFA_REGS_CONTROLLER_VERSION_SUBMINOR_VERSION_MASK@GOTPAGE
Lloh33:
	ldr	x23, [x23, _EFA_REGS_CONTROLLER_VERSION_SUBMINOR_VERSION_MASK@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w8, w8, w20
Lloh34:
	adrp	x9, _EFA_REGS_CONTROLLER_VERSION_IMPL_ID_MASK@GOTPAGE
Lloh35:
	ldr	x9, [x9, _EFA_REGS_CONTROLLER_VERSION_IMPL_ID_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	and	w9, w9, w20
Lloh37:
	adrp	x10, _EFA_REGS_CONTROLLER_VERSION_IMPL_ID_SHIFT@GOTPAGE
Lloh38:
	ldr	x10, [x10, _EFA_REGS_CONTROLLER_VERSION_IMPL_ID_SHIFT@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	asr	w9, w9, w10
	stp	x8, x9, [sp]
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ibdev_dbg
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w8, w8, w9
	and	w8, w8, w20
Lloh42:
	adrp	x9, _MIN_EFA_CTRL_VER@GOTPAGE
Lloh43:
	ldr	x9, [x9, _MIN_EFA_CTRL_VER@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.3:
	ldr	w0, [x19]
Lloh45:
	adrp	x1, l_.str.3@PAGE
Lloh46:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_4:
	bl	_ibdev_err
Lloh47:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.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 AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_EFA_REGS_VERSION_OFF,4,2       ; @EFA_REGS_VERSION_OFF
	.comm	_EFA_REGS_CONTROLLER_VERSION_OFF,4,2 ; @EFA_REGS_CONTROLLER_VERSION_OFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"efa device version: %d.%d\n"

	.comm	_EFA_REGS_VERSION_MAJOR_VERSION_MASK,4,2 ; @EFA_REGS_VERSION_MAJOR_VERSION_MASK
	.comm	_EFA_REGS_VERSION_MAJOR_VERSION_SHIFT,4,2 ; @EFA_REGS_VERSION_MAJOR_VERSION_SHIFT
	.comm	_EFA_REGS_VERSION_MINOR_VERSION_MASK,4,2 ; @EFA_REGS_VERSION_MINOR_VERSION_MASK
	.comm	_MIN_EFA_VER,4,2                ; @MIN_EFA_VER
l_.str.1:                               ; @.str.1
	.asciz	"EFA version is lower than the minimal version the driver supports\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.2:                               ; @.str.2
	.asciz	"efa controller version: %d.%d.%d implementation version %d\n"

	.comm	_EFA_REGS_CONTROLLER_VERSION_MAJOR_VERSION_MASK,4,2 ; @EFA_REGS_CONTROLLER_VERSION_MAJOR_VERSION_MASK
	.comm	_EFA_REGS_CONTROLLER_VERSION_MAJOR_VERSION_SHIFT,4,2 ; @EFA_REGS_CONTROLLER_VERSION_MAJOR_VERSION_SHIFT
	.comm	_EFA_REGS_CONTROLLER_VERSION_MINOR_VERSION_MASK,4,2 ; @EFA_REGS_CONTROLLER_VERSION_MINOR_VERSION_MASK
	.comm	_EFA_REGS_CONTROLLER_VERSION_MINOR_VERSION_SHIFT,4,2 ; @EFA_REGS_CONTROLLER_VERSION_MINOR_VERSION_SHIFT
	.comm	_EFA_REGS_CONTROLLER_VERSION_SUBMINOR_VERSION_MASK,4,2 ; @EFA_REGS_CONTROLLER_VERSION_SUBMINOR_VERSION_MASK
	.comm	_EFA_REGS_CONTROLLER_VERSION_IMPL_ID_MASK,4,2 ; @EFA_REGS_CONTROLLER_VERSION_IMPL_ID_MASK
	.comm	_EFA_REGS_CONTROLLER_VERSION_IMPL_ID_SHIFT,4,2 ; @EFA_REGS_CONTROLLER_VERSION_IMPL_ID_SHIFT
	.comm	_MIN_EFA_CTRL_VER,4,2           ; @MIN_EFA_CTRL_VER
l_.str.3:                               ; @.str.3
	.asciz	"EFA ctrl version is lower than the minimal ctrl version the driver supports\n"

.subsections_via_symbols
