	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_check_tpsram_version        ## -- Begin function t3_check_tpsram_version
	.p2align	4, 0x90
_t3_check_tpsram_version:               ## @t3_check_tpsram_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	_T3_REV_A@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	leaq	-20(%rbp), %rsi
	callq	_t3_get_tp_version
	movl	%eax, %ecx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	-20(%rbp), %edi
	callq	_G_TP_VERSION_MAJOR
	movl	%eax, %r14d
	movl	-20(%rbp), %edi
	callq	_G_TP_VERSION_MINOR
	movq	_TP_VERSION_MAJOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_TP_VERSION_MINOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	cmpl	%r8d, %r14d
	jne	LBB0_4
## %bb.3:
	movl	$0, %ecx
	cmpl	%r9d, %eax
	je	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_CH_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_5:
	movl	%ecx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_T3_REV_A,8,3                   ## @T3_REV_A
	.comm	_TP_VERSION_MAJOR,4,2           ## @TP_VERSION_MAJOR
	.comm	_TP_VERSION_MINOR,4,2           ## @TP_VERSION_MINOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"found wrong TP version (%u.%u), driver compiled for version %d.%d\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_tpsram_version        ; -- Begin function t3_check_tpsram_version
	.p2align	2
_t3_check_tpsram_version:               ; @t3_check_tpsram_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _T3_REV_A@GOTPAGE
Lloh1:
	ldr	x9, [x9, _T3_REV_A@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	mov	x19, x0
	add	x1, sp, #12
	bl	_t3_get_tp_version
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w0, [sp, #12]
	bl	_G_TP_VERSION_MAJOR
	mov	x20, x0
	ldr	w0, [sp, #12]
	bl	_G_TP_VERSION_MINOR
Lloh3:
	adrp	x8, _TP_VERSION_MAJOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TP_VERSION_MAJOR@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x8, _TP_VERSION_MINOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TP_VERSION_MINOR@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	cmp	w20, w4
	ccmp	w0, w5, #0, eq
	b.eq	LBB0_1
; %bb.4:
	mov	x3, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_CH_ERR
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_T3_REV_A,8,3                   ; @T3_REV_A
	.comm	_TP_VERSION_MAJOR,4,2           ; @TP_VERSION_MAJOR
	.comm	_TP_VERSION_MINOR,4,2           ; @TP_VERSION_MINOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"found wrong TP version (%u.%u), driver compiled for version %d.%d\n"

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