	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reopen_logs                    ## -- Begin function reopen_logs
	.p2align	4, 0x90
_reopen_logs:                           ## @reopen_logs
	.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	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%edx, %edx
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_dup2
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_dup2
	movl	%ebx, %edi
	movl	$2, %esi
	callq	_dup2
	cmpl	$3, %ebx
	jl	LBB0_3
## %bb.2:
	movl	%ebx, %edi
	callq	_close
LBB0_3:
	movq	_logname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.4:
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_APPEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	$416, %edx                      ## imm = 0x1A0
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	$1, %esi
	callq	_dup2
	movl	%ebx, %edi
	movl	$2, %esi
	callq	_dup2
	cmpl	$3, %ebx
	jl	LBB0_7
## %bb.6:
	movl	%ebx, %edi
	callq	_close
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_vkprintf                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,4,2                     ## @stdout
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/null"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_logname,8,3                    ## @logname
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_APPEND,4,2                   ## @O_APPEND
	.comm	_O_CREAT,4,2                    ## @O_CREAT
L_.str.1:                               ## @.str.1
	.asciz	"logs reopened.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reopen_logs                    ; -- Begin function reopen_logs
	.p2align	2
_reopen_logs:                           ; @reopen_logs
	.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	x8, _stdout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_fflush
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_fflush
Lloh6:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #0
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w1, #0
	bl	_dup2
	mov	x0, x19
	mov	w1, #1
	bl	_dup2
	mov	x0, x19
	mov	w1, #2
	bl	_dup2
	cmp	w19, #3
	b.lt	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_close
LBB0_3:
Lloh11:
	adrp	x8, _logname@GOTPAGE
Lloh12:
	ldr	x8, [x8, _logname@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
	cbz	x0, LBB0_7
; %bb.4:
Lloh14:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _O_APPEND@GOTPAGE
Lloh18:
	ldr	x9, [x9, _O_APPEND@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w2, #416
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.5:
	mov	x19, x0
	mov	w1, #1
	bl	_dup2
	mov	x0, x19
	mov	w1, #2
	bl	_dup2
	cmp	w19, #3
	b.lt	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_close
LBB0_7:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vkprintf
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,4,2                     ; @stdout
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/null"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_logname,8,3                    ; @logname
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_APPEND,4,2                   ; @O_APPEND
	.comm	_O_CREAT,4,2                    ; @O_CREAT
l_.str.1:                               ; @.str.1
	.asciz	"logs reopened.\n"

.subsections_via_symbols
