	.file	"extr_ts_conf.c_TS_CONF_set_default_engine.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"builtin"
.LC1:
	.string	"engine:"
.LC2:
	.string	"chil"
	.text
	.p2align 4
	.globl	TS_CONF_set_default_engine
	.type	TS_CONF_set_default_engine, @function
TS_CONF_set_default_engine:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rsi, .LC0[rip]
	mov	r13d, 1
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	strcmp@PLT
	test	rax, rax
	jne	.L15
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, r12
	call	ENGINE_by_id@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L6
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	call	strcmp@PLT
	test	rax, rax
	je	.L16
.L5:
	mov	esi, DWORD PTR ENGINE_METHOD_ALL[rip]
	mov	rdi, rbp
	call	ENGINE_set_default@PLT
	test	eax, eax
	je	.L6
	mov	r13d, 1
.L4:
	mov	rdi, rbp
	call	ENGINE_free@PLT
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR TS_R_COULD_NOT_SET_ENGINE[rip]
	mov	edi, DWORD PTR TS_F_TS_CONF_SET_DEFAULT_ENGINE[rip]
	xor	r13d, r13d
	call	TSerr@PLT
	mov	rdx, r12
	mov	edi, 2
	lea	rsi, .LC1[rip]
	call	ERR_add_error_data@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, DWORD PTR ENGINE_CTRL_CHIL_SET_FORKCHECK[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	edx, 1
	mov	rdi, rbp
	call	ENGINE_ctrl@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	TS_CONF_set_default_engine, .-TS_CONF_set_default_engine
	.comm	TS_R_COULD_NOT_SET_ENGINE,4,4
	.comm	TS_F_TS_CONF_SET_DEFAULT_ENGINE,4,4
	.comm	ENGINE_METHOD_ALL,4,4
	.comm	ENGINE_CTRL_CHIL_SET_FORKCHECK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ts_conf.c_TS_CONF_set_default_engine.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"builtin\000"
	.align	2
.LC1:
	.ascii	"engine:\000"
	.align	2
.LC2:
	.ascii	"chil\000"
	.text
	.align	2
	.global	TS_CONF_set_default_engine
	.syntax unified
	.arm
	.fpu softvfp
	.type	TS_CONF_set_default_engine, %function
TS_CONF_set_default_engine:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r1, .L15
	sub	sp, sp, #12
	mov	r4, r0
	bl	strcmp
	cmp	r0, #0
	moveq	r4, #1
	bne	.L13
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L13:
	mov	r0, r4
	bl	ENGINE_by_id
	subs	r5, r0, #0
	beq	.L6
	mov	r0, r4
	ldr	r1, .L15+4
	bl	strcmp
	subs	r3, r0, #0
	beq	.L14
.L5:
	ldr	r3, .L15+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	ENGINE_set_default
	cmp	r0, #0
	beq	.L6
	mov	r4, #1
.L4:
	mov	r0, r5
	bl	ENGINE_free
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L6:
	ldr	r2, .L15+12
	ldr	r3, .L15+16
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	TSerr
	mov	r2, r4
	mov	r0, #2
	ldr	r1, .L15+20
	bl	ERR_add_error_data
	mov	r4, #0
	b	.L4
.L14:
	ldr	r2, .L15+24
	str	r3, [sp]
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, #1
	bl	ENGINE_ctrl
	b	.L5
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	.LC2
	.word	ENGINE_METHOD_ALL
	.word	TS_R_COULD_NOT_SET_ENGINE
	.word	TS_F_TS_CONF_SET_DEFAULT_ENGINE
	.word	.LC1
	.word	ENGINE_CTRL_CHIL_SET_FORKCHECK
	.size	TS_CONF_set_default_engine, .-TS_CONF_set_default_engine
	.comm	TS_R_COULD_NOT_SET_ENGINE,4,4
	.comm	TS_F_TS_CONF_SET_DEFAULT_ENGINE,4,4
	.comm	ENGINE_METHOD_ALL,4,4
	.comm	ENGINE_CTRL_CHIL_SET_FORKCHECK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
