	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chassis_event_thread_loop      ## -- Begin function chassis_event_thread_loop
	.p2align	4, 0x90
_chassis_event_thread_loop:             ## @chassis_event_thread_loop
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_GUINT_TO_POINTER
	movq	_tls_index@GOTPCREL(%rip), %rdi
	movl	%eax, %esi
	callq	_g_private_set
	xorl	%eax, %eax
	callq	_chassis_is_shutdown
	testl	%eax, %eax
	je	LBB0_1
LBB0_6:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	-48(%rbp), %r14
	movq	_errno@GOTPCREL(%rip), %r15
	movq	_EINTR@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_chassis_is_shutdown
	testl	%eax, %eax
	jne	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, -48(%rbp)
	movq	$0, -40(%rbp)
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_event_base_loopexit
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_g_assert
	movl	(%rbx), %edi
	callq	_event_base_dispatch
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdi
	cmpq	(%r12), %rdi
	je	LBB0_5
## %bb.4:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_g_strerror
	movq	(%r15), %rcx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_g_critical
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_tls_index,4,2                  ## @tls_index
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: leaving chassis_event_thread_loop early, errno != EINTR was: %s (%d)"

	.comm	_G_STRLOC,4,2                   ## @G_STRLOC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chassis_event_thread_loop      ; -- Begin function chassis_event_thread_loop
	.p2align	2
_chassis_event_thread_loop:             ; @chassis_event_thread_loop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	w0, [x0, #4]
	bl	_GUINT_TO_POINTER
	mov	x1, x0
Lloh0:
	adrp	x0, _tls_index@GOTPAGE
Lloh1:
	ldr	x0, [x0, _tls_index@GOTPAGEOFF]
	bl	_g_private_set
	bl	_chassis_is_shutdown
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	mov	w21, #1
Lloh2:
	adrp	x20, _errno@GOTPAGE
Lloh3:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x22, _EINTR@GOTPAGE
Lloh5:
	ldr	x22, [x22, _EINTR@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_chassis_is_shutdown
	cbnz	w0, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	w21, [sp]
	str	xzr, [sp, #8]
	ldr	w0, [x19]
	mov	x1, sp
	bl	_event_base_loopexit
	cmp	x0, #0
	cset	w0, eq
	bl	_g_assert
	ldr	w0, [x19]
	bl	_event_base_dispatch
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20]
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.6:
Lloh6:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
	bl	_g_strerror
	mov	x2, x0
	ldr	x3, [x20]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_g_critical
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_tls_index,4,2                  ; @tls_index
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: leaving chassis_event_thread_loop early, errno != EINTR was: %s (%d)"

	.comm	_G_STRLOC,4,2                   ; @G_STRLOC
.subsections_via_symbols
