	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Log_Close                      ## -- Begin function Log_Close
	.p2align	4, 0x90
_Log_Close:                             ## @Log_Close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_logfile@GOTPCREL(%rip), %rbx
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	callq	_fclose
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	_PRT_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	$0, 8(%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	_PRT_MESSAGE@GOTPCREL(%rip), %rax
LBB0_4:
	movq	_botimport@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax), %edi
	movl	(%rbx), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_logfile,16,3                   ## @logfile
	.comm	_botimport,8,3                  ## @botimport
	.comm	_PRT_ERROR,4,2                  ## @PRT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't close log file %s\n"

	.comm	_PRT_MESSAGE,4,2                ## @PRT_MESSAGE
L_.str.1:                               ## @.str.1
	.asciz	"Closed log %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Log_Close                      ; -- Begin function Log_Close
	.p2align	2
_Log_Close:                             ; @Log_Close
	.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
Lloh0:
	adrp	x19, _logfile@GOTPAGE
Lloh1:
	ldr	x19, [x19, _logfile@GOTPAGEOFF]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_fclose
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
Lloh4:
	adrp	x8, _PRT_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PRT_ERROR@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	str	xzr, [x19, #8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh8:
	adrp	x8, _PRT_MESSAGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PRT_MESSAGE@GOTPAGEOFF]
LBB0_5:
Lloh10:
	adrp	x9, _botimport@GOTPAGE
Lloh11:
	ldr	x9, [x9, _botimport@GOTPAGEOFF]
Lloh12:
	ldr	x3, [x9]
	ldr	w0, [x8]
	ldr	w2, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_logfile,16,3                   ; @logfile
	.comm	_botimport,8,3                  ; @botimport
	.comm	_PRT_ERROR,4,2                  ; @PRT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't close log file %s\n"

	.comm	_PRT_MESSAGE,4,2                ; @PRT_MESSAGE
l_.str.1:                               ; @.str.1
	.asciz	"Closed log %s\n"

.subsections_via_symbols
