	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_read_queue
_add_read_queue:                        ## @add_read_queue
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	$0, -24(%rbp)
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_pr_debug
	movq	_TIME_CONST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rdi
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	subq	%rdi, %rbx
	movl	$1, %edi
	cmovaq	%rbx, %rdi
	movl	$1, -24(%rbp)
	jmp	LBB0_3
LBB0_2:
	addq	%rbx, %rdi
LBB0_3:
	callq	_US_TO_NS
	movl	%eax, -20(%rbp)
	movq	_rcdev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-24(%rbp), %rsi
	callq	_ir_raw_event_store_with_filter
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"add flag %d with val %lu\n"

	.comm	_TIME_CONST,4,2                 ## @TIME_CONST
	.comm	_rcdev,4,2                      ## @rcdev
	.no_dead_strip	_add_read_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_read_queue
_add_read_queue:                        ; @add_read_queue
	.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, x1
	mov	x20, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_pr_debug
Lloh2:
	adrp	x8, _TIME_CONST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TIME_CONST@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	sbfx	x8, x8, #1, #31
	cbz	w20, LBB0_2
; %bb.1:
	subs	x8, x19, x8
	csinc	x0, x8, xzr, hi
	mov	w8, #1
	str	w8, [sp, #8]
	b	LBB0_3
LBB0_2:
	add	x0, x8, x19
LBB0_3:
	bl	_US_TO_NS
	str	w0, [sp, #12]
Lloh5:
	adrp	x8, _rcdev@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rcdev@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_ir_raw_event_store_with_filter
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"add flag %d with val %lu\n"

	.comm	_TIME_CONST,4,2                 ; @TIME_CONST
	.comm	_rcdev,4,2                      ; @rcdev
	.no_dead_strip	_add_read_queue
.subsections_via_symbols
