	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crlookup                       ## -- Begin function crlookup
	.p2align	4, 0x90
_crlookup:                              ## @crlookup
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	$-1, -16(%rbp)
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_strlcpy
	xorl	%eax, %eax
	callq	_devcrypto
	movq	_CIOCFINDDEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-16(%rbp), %rdx
	movl	%eax, %edi
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	movl	-16(%rbp), %eax
	jmp	LBB0_5
LBB0_1:
	movq	_CRYPTO_FLAG_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"soft"

	.comm	_CRYPTO_FLAG_SOFTWARE,4,2       ## @CRYPTO_FLAG_SOFTWARE
	.comm	_CIOCFINDDEV,4,2                ## @CIOCFINDDEV
L_.str.1:                               ## @.str.1
	.asciz	"ioctl(CIOCFINDDEV)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crlookup                       ; -- Begin function crlookup
	.p2align	2
_crlookup:                              ; @crlookup
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_4
; %bb.1:
	mov	w8, #-1
	str	w8, [sp, #8]
	mov	x1, x19
	mov	w2, #4
	bl	_strlcpy
	bl	_devcrypto
Lloh2:
	adrp	x8, _CIOCFINDDEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CIOCFINDDEV@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
	ldr	w0, [sp, #8]
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _CRYPTO_FLAG_SOFTWARE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CRYPTO_FLAG_SOFTWARE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"soft"

	.comm	_CRYPTO_FLAG_SOFTWARE,4,2       ; @CRYPTO_FLAG_SOFTWARE
	.comm	_CIOCFINDDEV,4,2                ; @CIOCFINDDEV
l_.str.1:                               ; @.str.1
	.asciz	"ioctl(CIOCFINDDEV)"

.subsections_via_symbols
