	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prune_logs
_prune_logs:                            ## @prune_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ghb_settings_combo_int
	cmpl	$365, %eax                      ## imm = 0x16D
	jg	LBB0_9
## %bb.1:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rdi
	callq	_ghb_get_user_config_dir
	movq	%rax, %r15
	movq	_G_FILE_TEST_IS_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_g_file_test
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_g_dir_open
	movq	%rax, %r12
	xorl	%edi, %edi
	callq	_time
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_g_dir_read_name
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	imull	$86400, %r13d, %r14d            ## imm = 0x15180
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_g_free
	movq	%r12, %rdi
	callq	_g_dir_read_name
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_g_strdup_printf
	movq	%rax, %r13
	movq	%rax, %rdi
	leaq	-48(%rbp), %rsi
	callq	_g_stat
	movl	%ebx, %eax
	subl	-48(%rbp), %eax
	cmpl	%r14d, %eax
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_g_unlink
	jmp	LBB0_6
LBB0_7:
	movq	%r12, %rdi
	callq	_g_dir_close
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_8:
	movq	%r15, %rdi
	callq	_g_free
	movq	%rbx, %rdi
	callq	_ghb_preview_cleanup
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LogLongevity"

L_.str.1:                               ## @.str.1
	.asciz	"EncodeLogs"

	.comm	_G_FILE_TEST_IS_DIR,4,2         ## @G_FILE_TEST_IS_DIR
L_.str.2:                               ## @.str.2
	.asciz	"%s/%s"

	.no_dead_strip	_prune_logs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prune_logs
_prune_logs:                            ; @prune_logs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ghb_settings_combo_int
	cmp	w0, #365
	b.gt	LBB0_9
; %bb.1:
	mov	x23, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ghb_get_user_config_dir
	mov	x20, x0
Lloh4:
	adrp	x8, _G_FILE_TEST_IS_DIR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _G_FILE_TEST_IS_DIR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_g_file_test
	cbz	x0, LBB0_8
; %bb.2:
	mov	x0, x20
	mov	w1, #0
	mov	x2, #0
	bl	_g_dir_open
	mov	x21, x0
	mov	x0, #0
	bl	_time
	mov	x22, x0
	mov	x0, x21
	bl	_g_dir_read_name
	cbz	x0, LBB0_7
; %bb.3:
	mov	x2, x0
	mov	w8, #20864
	movk	w8, #1, lsl #16
	mul	w25, w23, w8
Lloh7:
	adrp	x23, l_.str.2@PAGE
Lloh8:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_g_free
	mov	x0, x21
	bl	_g_dir_read_name
	mov	x2, x0
	cbz	x0, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x20
	bl	_g_strdup_printf
	mov	x24, x0
	add	x1, sp, #8
	bl	_g_stat
	ldr	w8, [sp, #8]
	sub	w8, w22, w8
	cmp	w8, w25
	b.le	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_g_unlink
	b	LBB0_4
LBB0_7:
	mov	x0, x21
	bl	_g_dir_close
LBB0_8:
	mov	x0, x20
	bl	_g_free
	mov	x0, x19
	bl	_ghb_preview_cleanup
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LogLongevity"

l_.str.1:                               ; @.str.1
	.asciz	"EncodeLogs"

	.comm	_G_FILE_TEST_IS_DIR,4,2         ; @G_FILE_TEST_IS_DIR
l_.str.2:                               ; @.str.2
	.asciz	"%s/%s"

	.no_dead_strip	_prune_logs
.subsections_via_symbols
