	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TS_CONF_set_crypto_device      ## -- Begin function TS_CONF_set_crypto_device
	.p2align	4, 0x90
_TS_CONF_set_crypto_device:             ## @TS_CONF_set_crypto_device
	.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	%rsi, %rbx
	testq	%rdx, %rdx
	jne	LBB0_3
## %bb.1:
	movq	_ENV_CRYPTO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_NCONF_get_string
	movq	%rax, %rdx
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	%rdx, %rdi
	callq	_TS_CONF_set_default_engine
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_5
## %bb.4:
	movq	_ENV_CRYPTO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ts_CONF_invalid
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	movl	$1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENV_CRYPTO_DEVICE,4,2          ## @ENV_CRYPTO_DEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TS_CONF_set_crypto_device      ; -- Begin function TS_CONF_set_crypto_device
	.p2align	2
_TS_CONF_set_crypto_device:             ; @TS_CONF_set_crypto_device
	.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, x1
	cbnz	x2, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENV_CRYPTO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENV_CRYPTO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_NCONF_get_string
	mov	x2, x0
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x2
	bl	_TS_CONF_set_default_engine
	cbz	w0, LBB0_4
LBB0_3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _ENV_CRYPTO_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENV_CRYPTO_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ts_CONF_invalid
	mov	w0, #0
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	_ENV_CRYPTO_DEVICE,4,2          ; @ENV_CRYPTO_DEVICE
.subsections_via_symbols
