	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chassis_frontend_init_glib     ## -- Begin function chassis_frontend_init_glib
	.p2align	4, 0x90
_chassis_frontend_init_glib:            ## @chassis_frontend_init_glib
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$2, %edi
	movl	$6, %esi
	xorl	%edx, %edx
	callq	_GLIB_CHECK_VERSION
	movq	_GLIB_MAJOR_VERSION@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_GLIB_MINOR_VERSION@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_GLIB_MICRO_VERSION@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%esi, %edi
	movl	%edx, %esi
	movl	%ecx, %edx
	callq	_glib_check_version
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_glib_major_version@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_glib_minor_version@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_glib_micro_version@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movl	(%r14), %r9d
	movl	(%r15), %r10d
	movl	(%rbx), %ebx
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_g_critical
	addq	$16, %rsp
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_g_critical
	jmp	LBB0_7
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_g_module_supported
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	callq	_g_thread_init
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_g_critical
LBB0_7:
	movl	$-1, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"the glib header are too old, need at least 2.6.0, got: %d.%d.%d"

	.comm	_GLIB_MAJOR_VERSION,4,2         ## @GLIB_MAJOR_VERSION
	.comm	_GLIB_MINOR_VERSION,4,2         ## @GLIB_MINOR_VERSION
	.comm	_GLIB_MICRO_VERSION,4,2         ## @GLIB_MICRO_VERSION
L_.str.1:                               ## @.str.1
	.asciz	"%s, got: lib=%d.%d.%d, headers=%d.%d.%d"

	.comm	_glib_major_version,4,2         ## @glib_major_version
	.comm	_glib_minor_version,4,2         ## @glib_minor_version
	.comm	_glib_micro_version,4,2         ## @glib_micro_version
L_.str.2:                               ## @.str.2
	.asciz	"loading modules is not supported on this platform"

	.comm	_glib_mem_profiler_table,4,2    ## @glib_mem_profiler_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chassis_frontend_init_glib     ; -- Begin function chassis_frontend_init_glib
	.p2align	2
_chassis_frontend_init_glib:            ; @chassis_frontend_init_glib
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	w0, #2
	mov	w1, #6
	mov	w2, #0
	bl	_GLIB_CHECK_VERSION
	mov	x8, x0
Lloh0:
	adrp	x19, _GLIB_MAJOR_VERSION@GOTPAGE
Lloh1:
	ldr	x19, [x19, _GLIB_MAJOR_VERSION@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x20, _GLIB_MINOR_VERSION@GOTPAGE
Lloh3:
	ldr	x20, [x20, _GLIB_MINOR_VERSION@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh4:
	adrp	x21, _GLIB_MICRO_VERSION@GOTPAGE
Lloh5:
	ldr	x21, [x21, _GLIB_MICRO_VERSION@GOTPAGEOFF]
	ldr	w2, [x21]
	cbz	w8, LBB0_3
; %bb.1:
                                        ; kill: def $w0 killed $w0 killed $x0
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_glib_check_version
	cbz	x0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _glib_major_version@GOTPAGE
Lloh7:
	ldr	x8, [x8, _glib_major_version@GOTPAGEOFF]
Lloh8:
	adrp	x9, _glib_minor_version@GOTPAGE
Lloh9:
	ldr	x9, [x9, _glib_minor_version@GOTPAGEOFF]
Lloh10:
	adrp	x10, _glib_micro_version@GOTPAGE
Lloh11:
	ldr	x10, [x10, _glib_micro_version@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x8]
Lloh13:
	ldr	w8, [x9]
Lloh14:
	ldr	w9, [x10]
	ldr	w10, [x19]
	ldr	w12, [x20]
	ldr	w13, [x21]
	stp	x12, x13, [sp, #40]
	stp	x9, x10, [sp, #24]
	stp	x11, x8, [sp, #8]
Lloh15:
	adrp	x8, l_.str.1@PAGE
Lloh16:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x0, [sp]
	mov	x0, x8
	b	LBB0_7
LBB0_3:
	stp	x1, x2, [sp, #8]
	str	x0, [sp]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
	bl	_g_module_supported
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, #0
	bl	_g_thread_init
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_g_critical
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"the glib header are too old, need at least 2.6.0, got: %d.%d.%d"

	.comm	_GLIB_MAJOR_VERSION,4,2         ; @GLIB_MAJOR_VERSION
	.comm	_GLIB_MINOR_VERSION,4,2         ; @GLIB_MINOR_VERSION
	.comm	_GLIB_MICRO_VERSION,4,2         ; @GLIB_MICRO_VERSION
l_.str.1:                               ; @.str.1
	.asciz	"%s, got: lib=%d.%d.%d, headers=%d.%d.%d"

	.comm	_glib_major_version,4,2         ; @glib_major_version
	.comm	_glib_minor_version,4,2         ; @glib_minor_version
	.comm	_glib_micro_version,4,2         ; @glib_micro_version
l_.str.2:                               ; @.str.2
	.asciz	"loading modules is not supported on this platform"

	.comm	_glib_mem_profiler_table,4,2    ; @glib_mem_profiler_table
.subsections_via_symbols
