	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_engine                   ## -- Begin function setup_engine
	.p2align	4, 0x90
_setup_engine:                          ## @setup_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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_ENGINE_by_id
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_try_load_engine
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:
	movq	_ENGINE_CTRL_SET_LOGSTREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_ENGINE_ctrl
LBB0_9:
	movq	_ui_method@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_ENGINE_ctrl_cmd
	movq	_ENGINE_METHOD_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ENGINE_set_default
	movq	_bio_err@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	callq	_ENGINE_get_id
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_BIO_printf
	jmp	LBB0_12
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_3:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BIO_printf
	xorl	%eax, %eax
	callq	_ENGINE_register_all_complete
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	(%r15), %edi
	callq	_ERR_print_errors
	movq	%r14, %rdi
	callq	_ENGINE_free
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_6:
	movq	_bio_err@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	(%r15), %edi
	callq	_ERR_print_errors
LBB0_12:
	movq	%r14, %rax
	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	"auto"

	.comm	_bio_err,4,2                    ## @bio_err
L_.str.1:                               ## @.str.1
	.asciz	"enabling auto ENGINE support\n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid engine \"%s\"\n"

	.comm	_ENGINE_CTRL_SET_LOGSTREAM,4,2  ## @ENGINE_CTRL_SET_LOGSTREAM
L_.str.3:                               ## @.str.3
	.asciz	"SET_USER_INTERFACE"

	.comm	_ui_method,4,2                  ## @ui_method
	.comm	_ENGINE_METHOD_ALL,4,2          ## @ENGINE_METHOD_ALL
L_.str.4:                               ## @.str.4
	.asciz	"can't use that engine\n"

L_.str.5:                               ## @.str.5
	.asciz	"engine \"%s\" set.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup_engine                   ; -- Begin function setup_engine
	.p2align	2
_setup_engine:                          ; @setup_engine
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.2:
	mov	x0, x20
	bl	_ENGINE_by_id
	mov	x19, x0
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_try_load_engine
	mov	x19, x0
	cbz	x0, LBB0_10
LBB0_4:
Lloh2:
	adrp	x22, _bio_err@GOTPAGE
Lloh3:
	ldr	x22, [x22, _bio_err@GOTPAGEOFF]
	cbz	w21, LBB0_6
; %bb.5:
Lloh4:
	adrp	x8, _ENGINE_CTRL_SET_LOGSTREAM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENGINE_CTRL_SET_LOGSTREAM@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #0
	mov	w4, #0
	bl	_ENGINE_ctrl
LBB0_6:
Lloh7:
	adrp	x8, _ui_method@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ui_method@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	mov	w4, #0
	mov	w5, #1
	bl	_ENGINE_ctrl_cmd
Lloh12:
	adrp	x8, _ENGINE_METHOD_ALL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENGINE_METHOD_ALL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ENGINE_set_default
	ldr	w20, [x22]
	cbz	w0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_ENGINE_get_id
	str	x0, [sp]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_BIO_printf
	b	LBB0_12
LBB0_8:
Lloh17:
	adrp	x8, _bio_err@GOTPAGE
Lloh18:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BIO_printf
	bl	_ENGINE_register_all_complete
	b	LBB0_11
LBB0_9:
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_BIO_printf
	ldr	w0, [x22]
	bl	_ERR_print_errors
	mov	x0, x19
	bl	_ENGINE_free
	b	LBB0_11
LBB0_10:
Lloh24:
	adrp	x19, _bio_err@GOTPAGE
Lloh25:
	ldr	x19, [x19, _bio_err@GOTPAGEOFF]
	ldr	w0, [x19]
	str	x20, [sp]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_BIO_printf
	ldr	w0, [x19]
	bl	_ERR_print_errors
LBB0_11:
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"auto"

	.comm	_bio_err,4,2                    ; @bio_err
l_.str.1:                               ; @.str.1
	.asciz	"enabling auto ENGINE support\n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid engine \"%s\"\n"

	.comm	_ENGINE_CTRL_SET_LOGSTREAM,4,2  ; @ENGINE_CTRL_SET_LOGSTREAM
l_.str.3:                               ; @.str.3
	.asciz	"SET_USER_INTERFACE"

	.comm	_ui_method,4,2                  ; @ui_method
	.comm	_ENGINE_METHOD_ALL,4,2          ; @ENGINE_METHOD_ALL
l_.str.4:                               ; @.str.4
	.asciz	"can't use that engine\n"

l_.str.5:                               ; @.str.5
	.asciz	"engine \"%s\" set.\n"

.subsections_via_symbols
