	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qce_check_version
_qce_check_version:                     ## @qce_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	leaq	-16(%rbp), %rcx
	callq	_qce_get_version
	movq	-32(%rbp), %rdx
	movq	_QCE_MAJOR_VERSION5@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_2
## %bb.1:
	movq	-24(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	movq	_QCE_BAM_BURST_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$1, (%rbx)
	movl	4(%rbx), %edi
	movq	-16(%rbp), %r8
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QCE_MAJOR_VERSION5,8,3         ## @QCE_MAJOR_VERSION5
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_QCE_BAM_BURST_SIZE,4,2         ## @QCE_BAM_BURST_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Crypto device found, version %d.%d.%d\n"

	.no_dead_strip	_qce_check_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qce_check_version
_qce_check_version:                     ; @qce_check_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
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	bl	_qce_get_version
	ldp	x3, x2, [sp, #16]
Lloh0:
	adrp	x8, _QCE_MAJOR_VERSION5@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QCE_MAJOR_VERSION5@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	ccmp	x3, #0, #4, eq
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _QCE_BAM_BURST_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QCE_BAM_BURST_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #4]
	ldr	x4, [sp, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w0, #0
LBB0_3:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_QCE_MAJOR_VERSION5,8,3         ; @QCE_MAJOR_VERSION5
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_QCE_BAM_BURST_SIZE,4,2         ; @QCE_BAM_BURST_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Crypto device found, version %d.%d.%d\n"

	.no_dead_strip	_qce_check_version
.subsections_via_symbols
