	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cryptodev_find
_cryptodev_find:                        ## @cryptodev_find
	.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	%rdi, %rbx
	movl	(%rdi), %edi
	cmpl	$-1, %edi
	je	LBB0_3
## %bb.1:
	callq	_crypto_find_device_byhid
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	8(%rbx), %r14
	movq	%rax, %rdi
	callq	_device_get_nameunit
	movl	$8, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_strncpy
	movq	8(%rbx), %rax
	movb	$0, 7(%rax)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	8(%rbx), %rax
	movb	$0, 7(%rax)
	movq	8(%rbx), %rdi
	callq	_crypto_find_driver
	movl	%eax, %ecx
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	cmpl	$-1, %ecx
	jne	LBB0_5
LBB0_4:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_cryptodev_find
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cryptodev_find
_cryptodev_find:                        ; @cryptodev_find
	.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
	mov	x19, x0
	ldr	w0, [x0]
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	bl	_crypto_find_device_byhid
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x20, [x19, #8]
	bl	_device_get_nameunit
	mov	x1, x0
	mov	x0, x20
	mov	w2, #8
	bl	_strncpy
	mov	w0, #0
	ldr	x8, [x19, #8]
	strb	wzr, [x8, #7]
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19, #8]
	strb	wzr, [x8, #7]
	ldr	x0, [x19, #8]
	bl	_crypto_find_driver
	str	w0, [x19]
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, #1
	csel	w0, w8, wzr, eq
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_5:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_cryptodev_find
.subsections_via_symbols
