	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_check_fw_version            ## -- Begin function t3_check_fw_version
	.p2align	4, 0x90
_t3_check_fw_version:                   ## @t3_check_fw_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-36(%rbp), %rsi
	callq	_t3_get_fw_version
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movl	-36(%rbp), %edi
	callq	_G_FW_VERSION_TYPE
	movl	%eax, %r12d
	movl	-36(%rbp), %edi
	callq	_G_FW_VERSION_MAJOR
	movl	%eax, %r15d
	movl	-36(%rbp), %edi
	callq	_G_FW_VERSION_MINOR
	movq	_FW_VERSION_T3@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	movq	_FW_VERSION_MAJOR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_FW_VERSION_MINOR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	cmpl	(%rcx), %r12d
	jne	LBB0_4
## %bb.2:
	cmpl	%r8d, %r15d
	jne	LBB0_4
## %bb.3:
	cmpl	%r9d, %eax
	je	LBB0_8
LBB0_4:
	cmpl	%r8d, %r15d
	jne	LBB0_6
## %bb.5:
	cmpl	%r9d, %eax
	jb	LBB0_6
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_CH_WARN
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_CH_WARN
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_VERSION_T3,4,2              ## @FW_VERSION_T3
	.comm	_FW_VERSION_MAJOR,4,2           ## @FW_VERSION_MAJOR
	.comm	_FW_VERSION_MINOR,4,2           ## @FW_VERSION_MINOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"found old FW minor version(%u.%u), driver compiled for version %u.%u\n"

L_.str.1:                               ## @.str.1
	.asciz	"found newer FW version(%u.%u), driver compiled for version %u.%u\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	_t3_check_fw_version            ; -- Begin function t3_check_fw_version
	.p2align	2
_t3_check_fw_version:                   ; @t3_check_fw_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	add	x1, sp, #12
	bl	_t3_get_fw_version
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w0, [sp, #12]
	bl	_G_FW_VERSION_TYPE
	mov	x21, x0
	ldr	w0, [sp, #12]
	bl	_G_FW_VERSION_MAJOR
	mov	x20, x0
	ldr	w0, [sp, #12]
	bl	_G_FW_VERSION_MINOR
Lloh0:
	adrp	x8, _FW_VERSION_T3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_VERSION_T3@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FW_VERSION_MAJOR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FW_VERSION_MAJOR@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x9]
Lloh6:
	adrp	x9, _FW_VERSION_MINOR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FW_VERSION_MINOR@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x9]
	cmp	w21, w8
	ccmp	w20, w4, #0, eq
	ccmp	w0, w5, #0, eq
	b.eq	LBB0_5
; %bb.2:
	mov	x3, x0
	cmp	w20, w4
	ccmp	w0, w5, #0, eq
	b.hs	LBB0_4
; %bb.3:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_CH_WARN
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_CH_WARN
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_VERSION_T3,4,2              ; @FW_VERSION_T3
	.comm	_FW_VERSION_MAJOR,4,2           ; @FW_VERSION_MAJOR
	.comm	_FW_VERSION_MINOR,4,2           ; @FW_VERSION_MINOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found old FW minor version(%u.%u), driver compiled for version %u.%u\n"

l_.str.1:                               ; @.str.1
	.asciz	"found newer FW version(%u.%u), driver compiled for version %u.%u\n"

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