	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_keylog_file                ## -- Begin function set_keylog_file
	.p2align	4, 0x90
_set_keylog_file:                       ## @set_keylog_file
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_bio_keylog@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_BIO_free_all
	movq	$0, (%r12)
	xorl	%r14d, %r14d
	testq	%r15, %r15
	je	LBB0_7
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_BIO_new_file
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rdi
	callq	_BIO_tell
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_BIO_puts
	movq	(%r12), %rdi
	callq	_BIO_flush
LBB0_6:
	movq	_keylog_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_SSL_CTX_set_keylog_callback
	jmp	LBB0_7
LBB0_3:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_BIO_printf
	movl	$1, %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bio_keylog,8,3                 ## @bio_keylog
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"a"

	.comm	_bio_err,4,2                    ## @bio_err
L_.str.1:                               ## @.str.1
	.asciz	"Error writing keylog file %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"# SSL/TLS secrets log file, generated by OpenSSL\n"

	.comm	_keylog_callback,4,2            ## @keylog_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_keylog_file                ; -- Begin function set_keylog_file
	.p2align	2
_set_keylog_file:                       ; @set_keylog_file
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _bio_keylog@GOTPAGE
Lloh1:
	ldr	x21, [x21, _bio_keylog@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_BIO_free_all
	mov	w0, #0
	str	xzr, [x21]
	cbz	x19, LBB0_7
; %bb.1:
	cbz	x20, LBB0_7
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_BIO_new_file
	str	x0, [x21]
	cbz	x0, LBB0_6
; %bb.3:
	bl	_BIO_tell
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x21]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_BIO_puts
	ldr	x0, [x21]
	bl	_BIO_flush
LBB0_5:
Lloh6:
	adrp	x8, _keylog_callback@GOTPAGE
Lloh7:
	ldr	x8, [x8, _keylog_callback@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SSL_CTX_set_keylog_callback
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _bio_err@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_BIO_printf
	mov	w0, #1
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_bio_keylog,8,3                 ; @bio_keylog
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"a"

	.comm	_bio_err,4,2                    ; @bio_err
l_.str.1:                               ; @.str.1
	.asciz	"Error writing keylog file %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"# SSL/TLS secrets log file, generated by OpenSSL\n"

	.comm	_keylog_callback,4,2            ; @keylog_callback
.subsections_via_symbols
