	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_signal
_handle_signal:                         ## @handle_signal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_DLOG
	movq	_SIG_DFL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	$0, -32(%rbp)
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	callq	_sigemptyset
	movl	%ebx, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_sigaction
	movq	_raised_signal@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	xorl	%eax, %eax
	callq	_sighandler_setup
	xorl	%eax, %eax
	callq	_sighandler_create_dialogs
	movq	_conn@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_xcb_wait_for_event
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdi
	callq	_free
	jmp	LBB0_2
LBB0_3:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i3 crashed. SIG: %d\n"

	.comm	_SIG_DFL,4,2                    ## @SIG_DFL
	.comm	_raised_signal,4,2              ## @raised_signal
	.comm	_conn,4,2                       ## @conn
	.no_dead_strip	_handle_signal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_signal
_handle_signal:                         ; @handle_signal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DLOG
Lloh2:
	adrp	x8, _SIG_DFL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIG_DFL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
	add	x0, sp, #8
	bl	_sigemptyset
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, #0
	bl	_sigaction
Lloh5:
	adrp	x8, _raised_signal@GOTPAGE
Lloh6:
	ldr	x8, [x8, _raised_signal@GOTPAGEOFF]
Lloh7:
	str	w19, [x8]
	bl	_sighandler_setup
	bl	_sighandler_create_dialogs
Lloh8:
	adrp	x19, _conn@GOTPAGE
Lloh9:
	ldr	x19, [x19, _conn@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_xcb_wait_for_event
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_free
	b	LBB0_1
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i3 crashed. SIG: %d\n"

	.comm	_SIG_DFL,4,2                    ; @SIG_DFL
	.comm	_raised_signal,4,2              ; @raised_signal
	.comm	_conn,4,2                       ; @conn
	.no_dead_strip	_handle_signal
.subsections_via_symbols
