	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chassis_event_threads_init_thread ## -- Begin function chassis_event_threads_init_thread
	.p2align	4, 0x90
_chassis_event_threads_init_thread:     ## @chassis_event_threads_init_thread
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorl	%eax, %eax
	callq	_event_base_new
	movl	%eax, 12(%rbx)
	movq	%r14, 16(%rbx)
	leaq	-40(%rbp), %rdi
	callq	_pipe
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_g_strerror
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	%r14d, %ecx
	callq	_g_error
LBB0_2:
	movl	-40(%rbp), %esi
	movl	%esi, (%rbx)
	movl	-36(%rbp), %eax
	movl	%eax, 4(%rbx)
	leaq	8(%rbx), %r14
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movq	_EV_PERSIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_chassis_event_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %r8
	callq	_event_set
	movl	12(%rbx), %edi
	movq	%r14, %rsi
	callq	_event_base_set
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_event_add
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: evutil_socketpair() failed: %s (%d)"

	.comm	_G_STRLOC,4,2                   ## @G_STRLOC
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_PERSIST,4,2                 ## @EV_PERSIST
	.comm	_chassis_event_handle,4,2       ## @chassis_event_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chassis_event_threads_init_thread ; -- Begin function chassis_event_threads_init_thread
	.p2align	2
_chassis_event_threads_init_thread:     ; @chassis_event_threads_init_thread
	.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	x20, x1
	mov	x19, x0
	bl	_event_base_new
	str	w0, [x19, #12]
	str	x20, [x19, #16]
	add	x0, sp, #8
	bl	_pipe
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_g_strerror
	mov	x2, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x3, x20
	bl	_g_error
LBB0_2:
	ldr	d0, [sp, #8]
	str	d0, [x19]
	add	x20, x19, #8
Lloh8:
	adrp	x8, _EV_READ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _EV_PERSIST@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EV_PERSIST@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh14:
	adrp	x8, _chassis_event_handle@GOTPAGE
Lloh15:
	ldr	x8, [x8, _chassis_event_handle@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	fmov	w1, s0
	mov	x0, x20
	mov	x4, x19
	bl	_event_set
	ldr	w0, [x19, #12]
	mov	x1, x20
	bl	_event_base_set
	mov	x0, x20
	mov	x1, #0
	bl	_event_add
	mov	w0, #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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: evutil_socketpair() failed: %s (%d)"

	.comm	_G_STRLOC,4,2                   ; @G_STRLOC
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_PERSIST,4,2                 ; @EV_PERSIST
	.comm	_chassis_event_handle,4,2       ; @chassis_event_handle
.subsections_via_symbols
