	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_queue_fix                      ## -- Begin function queue_fix
	.p2align	4, 0x90
_queue_fix:                             ## @queue_fix
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_my_verbosity@GOTPCREL(%rip), %r14
	cmpl	$2, (%r14)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	cmpl	$0, (%rbx)
	jne	LBB0_7
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%rdi)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rdi), %rax
	movq	%rax, 32(%rbx)
	callq	_event_free
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_4
## %bb.6:
	movq	$0, 24(%rbx)
LBB0_7:
	cmpq	$0, 8(%rbx)
	jne	LBB0_11
## %bb.8:
	movq	%rbx, %rdi
	callq	_queue_clear_subs
	cmpq	$0, 8(%rbx)
	jne	LBB0_11
## %bb.9:
	cmpq	$0, 16(%rbx)
	je	LBB0_10
LBB0_11:
	cmpl	$2, (%r14)
	jl	LBB0_12
LBB0_13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_10:
	movq	%rbx, %rdi
	callq	_delete_queue
	cmpl	$2, (%r14)
	jge	LBB0_13
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_my_verbosity,4,2               ## @my_verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in queue fix %p %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"exit queue fix\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_queue_fix                      ; -- Begin function queue_fix
	.p2align	2
_queue_fix:                             ; @queue_fix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _my_verbosity@GOTPAGE
Lloh1:
	ldr	x20, [x20, _my_verbosity@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w8, [x19]
	stp	x19, x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	ldr	w8, [x19]
	cbnz	w8, LBB0_7
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x0]
	cbnz	x8, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x0, #8]
	str	x8, [x19, #32]
	bl	_event_free
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #32]
	cbnz	x0, LBB0_3
; %bb.6:
	str	xzr, [x19, #24]
LBB0_7:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_11
; %bb.8:
	mov	x0, x19
	bl	_queue_clear_subs
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_11
; %bb.9:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_delete_queue
LBB0_11:
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_13
; %bb.12:
Lloh7:
	adrp	x8, _stderr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_fprintf
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_my_verbosity,4,2               ; @my_verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in queue fix %p %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"exit queue fix\n"

.subsections_via_symbols
