	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TS_CONF_set_default_engine     ## -- Begin function TS_CONF_set_default_engine
	.p2align	4, 0x90
_TS_CONF_set_default_engine:            ## @TS_CONF_set_default_engine
	.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
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_ENGINE_by_id
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_ENGINE_CTRL_CHIL_SET_FORKCHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ENGINE_ctrl
LBB0_5:
	movq	_ENGINE_METHOD_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ENGINE_set_default
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	movq	_TS_F_TS_CONF_SET_DEFAULT_ENGINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TS_R_COULD_NOT_SET_ENGINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TSerr
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edi
	movq	%r15, %rdx
	callq	_ERR_add_error_data
	xorl	%ebx, %ebx
LBB0_7:
	movq	%r14, %rdi
	callq	_ENGINE_free
	jmp	LBB0_8
LBB0_1:
	movl	$1, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"builtin"

L_.str.1:                               ## @.str.1
	.asciz	"chil"

	.comm	_ENGINE_CTRL_CHIL_SET_FORKCHECK,4,2 ## @ENGINE_CTRL_CHIL_SET_FORKCHECK
	.comm	_ENGINE_METHOD_ALL,4,2          ## @ENGINE_METHOD_ALL
	.comm	_TS_F_TS_CONF_SET_DEFAULT_ENGINE,4,2 ## @TS_F_TS_CONF_SET_DEFAULT_ENGINE
	.comm	_TS_R_COULD_NOT_SET_ENGINE,4,2  ## @TS_R_COULD_NOT_SET_ENGINE
L_.str.2:                               ## @.str.2
	.asciz	"engine:"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TS_CONF_set_default_engine     ; -- Begin function TS_CONF_set_default_engine
	.p2align	2
_TS_CONF_set_default_engine:            ; @TS_CONF_set_default_engine
	.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	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x20
	bl	_ENGINE_by_id
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbnz	x0, LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _ENGINE_CTRL_CHIL_SET_FORKCHECK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENGINE_CTRL_CHIL_SET_FORKCHECK@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	bl	_ENGINE_ctrl
LBB0_4:
Lloh7:
	adrp	x8, _ENGINE_METHOD_ALL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENGINE_METHOD_ALL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ENGINE_set_default
	cbz	w0, LBB0_7
; %bb.5:
	mov	w20, #1
	b	LBB0_8
LBB0_6:
	mov	w20, #1
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x8, _TS_F_TS_CONF_SET_DEFAULT_ENGINE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TS_F_TS_CONF_SET_DEFAULT_ENGINE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _TS_R_COULD_NOT_SET_ENGINE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TS_R_COULD_NOT_SET_ENGINE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_TSerr
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #2
	mov	x2, x20
	bl	_ERR_add_error_data
	mov	w20, #0
LBB0_8:
	mov	x0, x19
	bl	_ENGINE_free
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"builtin"

l_.str.1:                               ; @.str.1
	.asciz	"chil"

	.comm	_ENGINE_CTRL_CHIL_SET_FORKCHECK,4,2 ; @ENGINE_CTRL_CHIL_SET_FORKCHECK
	.comm	_ENGINE_METHOD_ALL,4,2          ; @ENGINE_METHOD_ALL
	.comm	_TS_F_TS_CONF_SET_DEFAULT_ENGINE,4,2 ; @TS_F_TS_CONF_SET_DEFAULT_ENGINE
	.comm	_TS_R_COULD_NOT_SET_ENGINE,4,2  ; @TS_R_COULD_NOT_SET_ENGINE
l_.str.2:                               ; @.str.2
	.asciz	"engine:"

.subsections_via_symbols
