	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_log
_show_log:                              ## @show_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_log_mutex@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_lock
	movq	_log_buffer_size@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_writer_print_section_header
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.3:
	xorl	%r12d, %r12d
	movq	_log_buffer@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rbx
	leaq	L_.str.5(%rip), %r14
	movq	%r14, %rsi
	callq	_print_str_opt
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %r14
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	callq	_print_str_opt
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rax
	movq	16(%rax,%r12), %rsi
	leaq	L_.str.6(%rip), %rdi
	callq	_print_str
	movq	%r14, %rdi
	callq	_writer_print_section_footer
	movq	_log_buffer_size@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$40, %r12
	cmpq	%rcx, %r15
	jge	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	cmpl	%ebx, (%rcx,%r12)
	jg	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_writer_print_section_header
	movq	(%r13), %rax
	movq	32(%rax,%r12), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_print_str
	movq	(%r13), %rax
	movl	(%rax,%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_print_int
	movq	(%r13), %rax
	movl	4(%rax,%r12), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_print_int
	movq	(%r13), %rax
	movq	24(%rax,%r12), %rsi
	leaq	L_.str.3(%rip), %rdi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_print_str
	movq	(%r13), %rax
	movl	8(%rax,%r12), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_print_int
	jmp	LBB0_8
LBB0_10:
	xorl	%edi, %edi
	callq	_clear_log
	movq	_log_mutex@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_unlock
	movq	%r14, %rdi
	callq	_writer_print_section_footer
	jmp	LBB0_11
LBB0_1:
	movq	_log_mutex@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_unlock
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_log_mutex,4,2                  ## @log_mutex
	.comm	_log_buffer_size,4,2            ## @log_buffer_size
	.comm	_log_buffer,8,3                 ## @log_buffer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"context"

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

L_.str.2:                               ## @.str.2
	.asciz	"category"

L_.str.3:                               ## @.str.3
	.asciz	"parent_context"

L_.str.4:                               ## @.str.4
	.asciz	"parent_category"

L_.str.5:                               ## @.str.5
	.asciz	"N/A"

L_.str.6:                               ## @.str.6
	.asciz	"message"

	.no_dead_strip	_show_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_log
_show_log:                              ; @show_log
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _log_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _log_mutex@GOTPAGEOFF]
	bl	_pthread_mutex_lock
Lloh2:
	adrp	x26, _log_buffer_size@GOTPAGE
Lloh3:
	ldr	x26, [x26, _log_buffer_size@GOTPAGEOFF]
	ldr	w8, [x26]
	cbz	w8, LBB0_10
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	bl	_writer_print_section_header
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x22, #0
	mov	x23, #0
Lloh4:
	adrp	x24, _log_buffer@GOTPAGE
Lloh5:
	ldr	x24, [x24, _log_buffer@GOTPAGEOFF]
Lloh6:
	adrp	x27, l_.str.3@PAGE
Lloh7:
	add	x27, x27, l_.str.3@PAGEOFF
Lloh8:
	adrp	x28, l_.str.6@PAGE
Lloh9:
	add	x28, x28, l_.str.6@PAGEOFF
Lloh10:
	adrp	x25, l_.str.5@PAGE
Lloh11:
	add	x25, x25, l_.str.5@PAGEOFF
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x27
	mov	x1, x25
	bl	_print_str_opt
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x25
	bl	_print_str_opt
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24]
	add	x8, x8, x22
	ldr	x1, [x8, #16]
	mov	x0, x28
	bl	_print_str
	mov	x0, x19
	bl	_writer_print_section_footer
	ldr	w8, [x26]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	add	x22, x22, #40
	cmp	x23, w8, sxtw
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	ldr	w9, [x9, x22]
	cmp	w9, w20
	b.gt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_writer_print_section_header
	ldr	x8, [x24]
	add	x8, x8, x22
	ldr	x1, [x8, #32]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_print_str
	ldr	x8, [x24]
	ldr	w1, [x8, x22]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_print_int
	ldr	x8, [x24]
	add	x8, x8, x22
	ldr	w1, [x8, #4]
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_print_int
	ldr	x8, [x24]
	add	x8, x8, x22
	ldr	x1, [x8, #24]
	cbz	x1, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x27
	bl	_print_str
	ldr	x8, [x24]
	add	x8, x8, x22
	ldr	w1, [x8, #8]
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_print_int
	b	LBB0_4
LBB0_9:
	mov	w0, #0
	bl	_clear_log
Lloh22:
	adrp	x0, _log_mutex@GOTPAGE
Lloh23:
	ldr	x0, [x0, _log_mutex@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
	mov	x0, x19
	bl	_writer_print_section_footer
	b	LBB0_11
LBB0_10:
Lloh24:
	adrp	x0, _log_mutex@GOTPAGE
Lloh25:
	ldr	x0, [x0, _log_mutex@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
LBB0_11:
	mov	w0, #0
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_log_mutex,4,2                  ; @log_mutex
	.comm	_log_buffer_size,4,2            ; @log_buffer_size
	.comm	_log_buffer,8,3                 ; @log_buffer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"context"

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

l_.str.2:                               ; @.str.2
	.asciz	"category"

l_.str.3:                               ; @.str.3
	.asciz	"parent_context"

l_.str.4:                               ; @.str.4
	.asciz	"parent_category"

l_.str.5:                               ; @.str.5
	.asciz	"N/A"

l_.str.6:                               ; @.str.6
	.asciz	"message"

	.no_dead_strip	_show_log
.subsections_via_symbols
