	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cryptodev_select_cipher_cb
_cryptodev_select_cipher_cb:            ## @cryptodev_select_cipher_cb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, %ebx
	testl	%esi, %esi
	je	LBB0_10
## %bb.1:
	movq	%rdx, %r15
	xorl	%ebx, %ebx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.2:
	callq	_OPENSSL_strndup
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_EVP_get_cipherbyname
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	callq	_EVP_CIPHER_nid
	movl	%eax, %edi
	callq	_find_cipher_data_index
	cmpq	$-1, %rax
	je	LBB0_7
## %bb.6:
	movl	$1, (%r15,%rax,4)
	jmp	LBB0_9
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	movq	%r14, %rdx
	callq	_fprintf
LBB0_9:
	movq	%r14, %rdi
	callq	_OPENSSL_free
	movl	$1, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"devcrypto: unknown cipher %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"devcrypto: cipher %s not available\n"

	.no_dead_strip	_cryptodev_select_cipher_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cryptodev_select_cipher_cb
_cryptodev_select_cipher_cb:            ; @cryptodev_select_cipher_cb
	.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
	cbz	w1, LBB0_11
; %bb.1:
	mov	x20, x2
	cbz	x2, LBB0_6
; %bb.2:
	bl	_OPENSSL_strndup
	cbz	x0, LBB0_12
; %bb.3:
	mov	x19, x0
	bl	_EVP_get_cipherbyname
	cbz	x0, LBB0_7
; %bb.4:
	bl	_EVP_CIPHER_nid
	bl	_find_cipher_data_index
	cmn	x0, #1
	b.eq	LBB0_8
; %bb.5:
	mov	w8, #1
	str	w8, [x20, x0, lsl #2]
	b	LBB0_10
LBB0_6:
	mov	w0, #0
	b	LBB0_12
LBB0_7:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x2, x19
	bl	_fprintf
LBB0_10:
	mov	x0, x19
	bl	_OPENSSL_free
LBB0_11:
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"devcrypto: unknown cipher %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"devcrypto: cipher %s not available\n"

	.no_dead_strip	_cryptodev_select_cipher_cb
.subsections_via_symbols
