	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sighandler_destroy_dialogs
_sighandler_destroy_dialogs:            ## @sighandler_destroy_dialogs
	.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
	movq	_dialogs@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_TAILQ_EMPTY
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_conn@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	movl	(%r15), %edi
	movl	8(%rax), %esi
	callq	_xcb_free_colormap
	movl	(%r15), %edi
	leaq	4(%rbx), %rsi
	callq	_draw_util_surface_free
	movl	(%r15), %edi
	movl	(%rbx), %esi
	callq	_xcb_destroy_window
	movl	(%r14), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	%rbx, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_TAILQ_EMPTY
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	_conn@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xcb_flush                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dialogs,4,2                    ## @dialogs
	.comm	_conn,4,2                       ## @conn
	.no_dead_strip	_sighandler_destroy_dialogs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sighandler_destroy_dialogs
_sighandler_destroy_dialogs:            ; @sighandler_destroy_dialogs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x19, _dialogs@GOTPAGE
Lloh1:
	ldr	x19, [x19, _dialogs@GOTPAGEOFF]
	mov	x0, x19
	bl	_TAILQ_EMPTY
Lloh2:
	adrp	x21, _conn@GOTPAGE
Lloh3:
	ldr	x21, [x21, _conn@GOTPAGEOFF]
	cbnz	w0, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_TAILQ_FIRST
	mov	x20, x0
	ldr	w0, [x21]
	ldr	w1, [x20, #8]
	bl	_xcb_free_colormap
	ldr	w0, [x21]
	add	x1, x20, #4
	bl	_draw_util_surface_free
	ldr	w0, [x21]
	ldr	w1, [x20]
	bl	_xcb_destroy_window
	ldr	w2, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_TAILQ_REMOVE
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_TAILQ_EMPTY
	cbz	w0, LBB0_1
LBB0_2:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_xcb_flush
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dialogs,4,2                    ; @dialogs
	.comm	_conn,4,2                       ; @conn
	.no_dead_strip	_sighandler_destroy_dialogs
.subsections_via_symbols
