	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dup_bio_out                    ## -- Begin function dup_bio_out
	.p2align	4, 0x90
_dup_bio_out:                           ## @dup_bio_out
	.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	%edi, %ebx
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_BIO_NOCLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_istext
	xorl	%esi, %esi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_BIO_FP_TEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_2:
	orl	%r15d, %esi
	movl	%r14d, %edi
	callq	_BIO_new_fp
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_istext
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %r14
	movq	_prefix_method@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_apps_bf_prefix
	movq	%rax, %rdi
	movq	%rax, (%rbx)
LBB0_6:
	callq	_BIO_new
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_BIO_push
	movq	%rax, %r15
	movq	_PREFIX_CTRL_SET_PREFIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_BIO_ctrl
LBB0_7:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,4,2                     ## @stdout
	.comm	_BIO_NOCLOSE,4,2                ## @BIO_NOCLOSE
	.comm	_BIO_FP_TEXT,4,2                ## @BIO_FP_TEXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HARNESS_OSSL_PREFIX"

	.comm	_prefix_method,8,3              ## @prefix_method
	.comm	_PREFIX_CTRL_SET_PREFIX,4,2     ## @PREFIX_CTRL_SET_PREFIX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dup_bio_out                    ; -- Begin function dup_bio_out
	.p2align	2
_dup_bio_out:                           ; @dup_bio_out
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _stdout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _BIO_NOCLOSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIO_NOCLOSE@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	bl	_istext
Lloh6:
	adrp	x8, _BIO_FP_TEXT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BIO_FP_TEXT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w1, w8, w21
	mov	x0, x19
	bl	_BIO_new_fp
	mov	x19, x0
	mov	x0, x20
	bl	_istext
	cbz	x0, LBB0_5
; %bb.1:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh11:
	adrp	x21, _prefix_method@GOTPAGE
Lloh12:
	ldr	x21, [x21, _prefix_method@GOTPAGEOFF]
	ldr	x0, [x21]
	cbnz	x0, LBB0_4
; %bb.3:
	bl	_apps_bf_prefix
	str	x0, [x21]
LBB0_4:
	bl	_BIO_new
	mov	x1, x19
	bl	_BIO_push
	mov	x19, x0
Lloh13:
	adrp	x8, _PREFIX_CTRL_SET_PREFIX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PREFIX_CTRL_SET_PREFIX@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w2, #0
	mov	x3, x20
	bl	_BIO_ctrl
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,4,2                     ; @stdout
	.comm	_BIO_NOCLOSE,4,2                ; @BIO_NOCLOSE
	.comm	_BIO_FP_TEXT,4,2                ; @BIO_FP_TEXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HARNESS_OSSL_PREFIX"

	.comm	_prefix_method,8,3              ; @prefix_method
	.comm	_PREFIX_CTRL_SET_PREFIX,4,2     ; @PREFIX_CTRL_SET_PREFIX
.subsections_via_symbols
