	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function watchfd
_watchfd:                               ## @watchfd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_Punt
LBB0_2:
	movl	8(%rbx), %eax
	movq	_fds@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_nfds@GOTPCREL(%rip), %r8
	movq	(%r8), %rdi
	leaq	(,%rdi,8), %rsi
	movl	%eax, 4(%rdx,%rdi,8)
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx,%rdi,8)
	movq	_jobfds@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, (%rax,%rdi,8)
	addq	(%rcx), %rsi
	movq	%rsi, (%rbx)
	incq	%rdi
	movq	%rdi, (%r8)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Watching watched job"

	.comm	_fds,8,3                        ## @fds
	.comm	_nfds,8,3                       ## @nfds
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_jobfds,8,3                     ## @jobfds
	.no_dead_strip	_watchfd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function watchfd
_watchfd:                               ; @watchfd
	.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	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Punt
LBB0_2:
	ldr	w8, [x19, #8]
Lloh2:
	adrp	x9, _fds@GOTPAGE
Lloh3:
	ldr	x9, [x9, _fds@GOTPAGEOFF]
	ldr	x10, [x9]
Lloh4:
	adrp	x11, _nfds@GOTPAGE
Lloh5:
	ldr	x11, [x11, _nfds@GOTPAGEOFF]
	ldr	x12, [x11]
	lsl	x13, x12, #3
	add	x10, x10, x13
	str	w8, [x10, #4]
Lloh6:
	adrp	x8, _jobfds@GOTPAGE
Lloh7:
	ldr	x8, [x8, _jobfds@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x19, [x8, x13]
Lloh9:
	adrp	x8, _POLLIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x10]
	ldr	x8, [x9]
	add	x8, x8, x13
	str	x8, [x19]
	add	x8, x12, #1
	str	x8, [x11]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Watching watched job"

	.comm	_fds,8,3                        ; @fds
	.comm	_nfds,8,3                       ; @nfds
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_jobfds,8,3                     ; @jobfds
	.no_dead_strip	_watchfd
.subsections_via_symbols
