	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crfind                         ## -- Begin function crfind
	.p2align	4, 0x90
_crfind:                                ## @crfind
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_CRYPTO_FLAG_SOFTWARE@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movl	%edi, %ebx
	movq	_CRYPTO_FLAG_HARDWARE@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	leaq	_crfind.find(%rip), %r14
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_bzero
	movl	%ebx, _crfind.find(%rip)
	xorl	%eax, %eax
	callq	_devcrypto
	movq	_CRIOFINDDEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movq	%r14, %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	callq	_err
LBB0_6:
	movq	_crfind.find+8(%rip), %rax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_crfind.find,16,3 ## @crfind.find
	.comm	_CRYPTO_FLAG_SOFTWARE,4,2       ## @CRYPTO_FLAG_SOFTWARE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"soft"

	.comm	_CRYPTO_FLAG_HARDWARE,4,2       ## @CRYPTO_FLAG_HARDWARE
L_.str.1:                               ## @.str.1
	.asciz	"unknown"

	.comm	_CRIOFINDDEV,4,2                ## @CRIOFINDDEV
L_.str.2:                               ## @.str.2
	.asciz	"ioctl(CIOCFINDDEV): crid %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crfind                         ; -- Begin function crfind
	.p2align	2
_crfind:                                ; @crfind
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _CRYPTO_FLAG_SOFTWARE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYPTO_FLAG_SOFTWARE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_2:
	mov	x19, x0
Lloh5:
	adrp	x8, _CRYPTO_FLAG_HARDWARE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CRYPTO_FLAG_HARDWARE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:
Lloh10:
	adrp	x20, _crfind.find@PAGE
Lloh11:
	add	x20, x20, _crfind.find@PAGEOFF
	mov	x0, x20
	mov	w1, #16
	bl	_bzero
	str	w19, [x20]
	bl	_devcrypto
Lloh12:
	adrp	x8, _CRIOFINDDEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CRIOFINDDEV@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_err
LBB0_6:
Lloh17:
	adrp	x8, _crfind.find@PAGE+8
Lloh18:
	ldr	x0, [x8, _crfind.find@PAGEOFF+8]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdr	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_crfind.find,16,3 ; @crfind.find
	.comm	_CRYPTO_FLAG_SOFTWARE,4,2       ; @CRYPTO_FLAG_SOFTWARE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"soft"

	.comm	_CRYPTO_FLAG_HARDWARE,4,2       ; @CRYPTO_FLAG_HARDWARE
l_.str.1:                               ; @.str.1
	.asciz	"unknown"

	.comm	_CRIOFINDDEV,4,2                ; @CRIOFINDDEV
l_.str.2:                               ; @.str.2
	.asciz	"ioctl(CIOCFINDDEV): crid %d"

.subsections_via_symbols
