	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_log
_read_log:                              ## @read_log
	.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	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
LBB0_2:
	movq	%rbx, %rdi
	callq	_g_free
	movq	%r15, %rdi
	callq	_g_strdup
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	8(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_gtk_text_buffer_set_text
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_g_fopen
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %rbx
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	%rbx, %rdi
	callq	_ftell
	movq	%rax, %r12
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	_ACTIVITY_MAX_READ_SZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpq	%rdi, %r12
	cmovbq	%r12, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_g_malloc
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_fread
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r13
	movl	8(%r15), %edi
	leaq	-60(%rbp), %r14
	movq	%r14, %rsi
	callq	_gtk_text_buffer_get_end_iter
	movl	8(%r15), %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_gtk_text_buffer_insert
	movq	%rbx, %rdi
	callq	_feof
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	movq	%rbx, %rdi
	callq	_fclose
	movq	%r12, %rdi
	callq	_g_free
LBB0_8:
	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
	.space	1

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

	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_ACTIVITY_MAX_READ_SZ,8,3       ## @ACTIVITY_MAX_READ_SZ
	.no_dead_strip	_read_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_log
_read_log:                              ; @read_log
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	cbz	x21, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_strcmp
	cbz	w0, LBB0_8
LBB0_2:
	mov	x0, x21
	bl	_g_free
	mov	x0, x20
	bl	_g_strdup
	str	x0, [x19]
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_gtk_text_buffer_set_text
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_g_fopen
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
Lloh4:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_fseek
	mov	x0, x20
	bl	_ftell
	mov	x21, x0
Lloh7:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_fseek
Lloh10:
	adrp	x8, _ACTIVITY_MAX_READ_SZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ACTIVITY_MAX_READ_SZ@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x21, x8
	csel	x22, x21, x8, lo
	mov	x0, x22
	bl	_g_malloc
	mov	x21, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_feof
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	w1, #1
	mov	x2, x22
	mov	x3, x20
	bl	_fread
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	ldr	w0, [x19, #8]
	add	x1, sp, #12
	bl	_gtk_text_buffer_get_end_iter
	ldr	w0, [x19, #8]
	add	x1, sp, #12
	mov	x2, x21
	mov	x3, x23
	bl	_gtk_text_buffer_insert
	b	LBB0_4
LBB0_7:
	mov	x0, x20
	bl	_fclose
	mov	x0, x21
	bl	_g_free
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

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

	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_ACTIVITY_MAX_READ_SZ,8,3       ; @ACTIVITY_MAX_READ_SZ
	.no_dead_strip	_read_log
.subsections_via_symbols
