	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sntp_addremove_fd              ## -- Begin function sntp_addremove_fd
	.p2align	4, 0x90
_sntp_addremove_fd:                     ## @sntp_addremove_fd
	.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
	movl	%edi, %esi
	movq	_blocking_children_alloc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	_blocking_children@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	xorl	%ecx, %ecx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%esi, (%rbx)
	jne	LBB0_8
## %bb.2:
	cmpq	%rax, %rcx
	jne	LBB0_3
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	cmpq	%rax, %rcx
	je	LBB0_9
LBB0_3:
	testl	%edx, %edx
	je	LBB0_10
## %bb.4:
	movq	8(%rbx), %r14
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	callq	_event_del
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_event_free                     ## TAILCALL
LBB0_10:
	movq	_base@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movq	_EV_PERSIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_worker_resp_cb@GOTPCREL(%rip), %rcx
	movq	%rbx, %r8
	callq	_event_new
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_event_add                      ## TAILCALL
LBB0_12:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_msyslog                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_blocking_children_alloc,8,3    ## @blocking_children_alloc
	.comm	_blocking_children,8,3          ## @blocking_children
	.comm	_base,4,2                       ## @base
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_PERSIST,4,2                 ## @EV_PERSIST
	.comm	_worker_resp_cb,4,2             ## @worker_resp_cb
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sntp_addremove_fd: event_new(base, fd) failed!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sntp_addremove_fd              ; -- Begin function sntp_addremove_fd
	.p2align	2
_sntp_addremove_fd:                     ; @sntp_addremove_fd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x1, x0
Lloh0:
	adrp	x8, _blocking_children_alloc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _blocking_children_alloc@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x9, #0
Lloh3:
	adrp	x10, _blocking_children@GOTPAGE
Lloh4:
	ldr	x10, [x10, _blocking_children@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x10, x9, lsl #3]
	cbz	x19, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x19]
	cmp	w11, w1
	b.ne	LBB0_2
; %bb.5:
	cmp	x9, x8
	b.ne	LBB0_8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x9, #0
	mov	x19, #0
	cmp	x9, x8
	b.eq	LBB0_6
LBB0_8:
	cbz	w2, LBB0_10
; %bb.9:
	ldr	x20, [x19, #8]
	str	xzr, [x19, #8]
	mov	x0, x20
	bl	_event_del
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_event_free
LBB0_10:
Lloh6:
	adrp	x8, _base@GOTPAGE
Lloh7:
	ldr	x8, [x8, _base@GOTPAGEOFF]
Lloh8:
	adrp	x9, _EV_READ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EV_READ@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _EV_PERSIST@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EV_PERSIST@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh15:
	adrp	x3, _worker_resp_cb@GOTPAGE
Lloh16:
	ldr	x3, [x3, _worker_resp_cb@GOTPAGEOFF]
	mov	x4, x19
	bl	_event_new
	cbz	x0, LBB0_12
; %bb.11:
	str	x0, [x19, #8]
	mov	x1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_event_add
LBB0_12:
Lloh17:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_msyslog
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_blocking_children_alloc,8,3    ; @blocking_children_alloc
	.comm	_blocking_children,8,3          ; @blocking_children
	.comm	_base,4,2                       ; @base
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_PERSIST,4,2                 ; @EV_PERSIST
	.comm	_worker_resp_cb,4,2             ; @worker_resp_cb
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sntp_addremove_fd: event_new(base, fd) failed!"

.subsections_via_symbols
