	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wakeup_socket
_wakeup_socket:                         ## @wakeup_socket
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	%esi, %edi
	callq	_FDLOCK_ID
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%r14d, %r14d
	js	LBB0_2
## %bb.1:
	cmpl	%r14d, 16(%r12)
	setg	%dil
LBB0_2:
	callq	_INSIST
	movq	_SELECT_POKE_CLOSE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_3
## %bb.8:
	movq	(%r12), %rax
	movslq	%r14d, %rbx
	movq	(%rax,%rbx,8), %rax
	movq	_CLOSE_PENDING@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_INSIST
	movq	_CLOSED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	_SELECT_POKE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_unwatch_fd
	movq	_SELECT_POKE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_unwatch_fd
	movl	%r14d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close                          ## TAILCALL
LBB0_3:
	movslq	%ebx, %rbx
	shlq	$2, %rbx
	movq	8(%r12), %rdi
	addq	%rbx, %rdi
	callq	_LOCK
	movq	(%r12), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %r13
	movq	_CLOSE_PENDING@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_4
## %bb.9:
	addq	8(%r12), %rbx
	movq	%rbx, %rdi
	callq	_UNLOCK
	movq	_SELECT_POKE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_unwatch_fd
	movq	_SELECT_POKE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_unwatch_fd                     ## TAILCALL
LBB0_4:
	movq	_MANAGED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	8(%r12), %rbx
	movq	%rbx, %rdi
	callq	_UNLOCK
	cmpq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	jne	LBB0_7
## %bb.5:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_watch_fd
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_isc_lctx@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movq	_ISC_LOGCATEGORY_GENERAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movq	_ISC_LOGMODULE_SOCKET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movq	_ISC_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	%rax, %rdi
	callq	_isc_result_totext
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %r8
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%r14d, %r9d
	callq	_isc_log_write
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SELECT_POKE_CLOSE,4,2          ## @SELECT_POKE_CLOSE
	.comm	_CLOSE_PENDING,8,3              ## @CLOSE_PENDING
	.comm	_CLOSED,8,3                     ## @CLOSED
	.comm	_SELECT_POKE_READ,4,2           ## @SELECT_POKE_READ
	.comm	_SELECT_POKE_WRITE,4,2          ## @SELECT_POKE_WRITE
	.comm	_MANAGED,8,3                    ## @MANAGED
	.comm	_ISC_R_SUCCESS,8,3              ## @ISC_R_SUCCESS
	.comm	_isc_lctx,4,2                   ## @isc_lctx
	.comm	_ISC_LOGCATEGORY_GENERAL,4,2    ## @ISC_LOGCATEGORY_GENERAL
	.comm	_ISC_LOGMODULE_SOCKET,4,2       ## @ISC_LOGMODULE_SOCKET
	.comm	_ISC_LOG_ERROR,4,2              ## @ISC_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to start watching FD (%d): %s"

	.no_dead_strip	_wakeup_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wakeup_socket
_wakeup_socket:                         ; @wakeup_socket
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_FDLOCK_ID
	mov	x22, x0
	tbnz	w19, #31, LBB0_2
; %bb.1:
	ldr	w8, [x20, #16]
	cmp	w8, w19
	cset	w0, gt
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_INSIST
Lloh0:
	adrp	x8, _SELECT_POKE_CLOSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SELECT_POKE_CLOSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x20]
	sbfiz	x21, x19, #3, #32
	ldr	x8, [x8, x21]
Lloh3:
	adrp	x9, _CLOSE_PENDING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CLOSE_PENDING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_INSIST
Lloh6:
	adrp	x8, _CLOSED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CLOSED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x20]
	str	x8, [x9, x21]
Lloh9:
	adrp	x8, _SELECT_POKE_READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SELECT_POKE_READ@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_unwatch_fd
Lloh12:
	adrp	x8, _SELECT_POKE_WRITE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SELECT_POKE_WRITE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_unwatch_fd
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_close
LBB0_5:
	ldr	x8, [x20, #8]
	sxtw	x23, w22
	add	x0, x8, w22, sxtw #2
	bl	_LOCK
	ldr	x8, [x20]
	ldr	x22, [x8, w19, sxtw #3]
Lloh15:
	adrp	x8, _CLOSE_PENDING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CLOSE_PENDING@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x20, #8]
	add	x0, x8, x23, lsl #2
	bl	_UNLOCK
Lloh18:
	adrp	x8, _SELECT_POKE_READ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SELECT_POKE_READ@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_unwatch_fd
Lloh21:
	adrp	x8, _SELECT_POKE_WRITE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SELECT_POKE_WRITE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_unwatch_fd
LBB0_7:
Lloh24:
	adrp	x8, _MANAGED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MANAGED@GOTPAGEOFF]
Lloh26:
	ldr	x24, [x8]
	ldr	x8, [x20, #8]
	add	x0, x8, x23, lsl #2
	bl	_UNLOCK
	cmp	x22, x24
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_watch_fd
Lloh27:
	adrp	x8, _ISC_R_SUCCESS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ISC_R_SUCCESS@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh30:
	adrp	x8, _isc_lctx@GOTPAGE
Lloh31:
	ldr	x8, [x8, _isc_lctx@GOTPAGEOFF]
Lloh32:
	ldr	w20, [x8]
Lloh33:
	adrp	x8, _ISC_LOGCATEGORY_GENERAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ISC_LOGCATEGORY_GENERAL@GOTPAGEOFF]
Lloh35:
	ldr	w21, [x8]
Lloh36:
	adrp	x8, _ISC_LOGMODULE_SOCKET@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ISC_LOGMODULE_SOCKET@GOTPAGEOFF]
Lloh38:
	ldr	w22, [x8]
Lloh39:
	adrp	x8, _ISC_LOG_ERROR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ISC_LOG_ERROR@GOTPAGEOFF]
Lloh41:
	ldr	w23, [x8]
	bl	_isc_result_totext
	mov	x6, x0
Lloh42:
	adrp	x4, l_.str@PAGE
Lloh43:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x5, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_isc_log_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SELECT_POKE_CLOSE,4,2          ; @SELECT_POKE_CLOSE
	.comm	_CLOSE_PENDING,8,3              ; @CLOSE_PENDING
	.comm	_CLOSED,8,3                     ; @CLOSED
	.comm	_SELECT_POKE_READ,4,2           ; @SELECT_POKE_READ
	.comm	_SELECT_POKE_WRITE,4,2          ; @SELECT_POKE_WRITE
	.comm	_MANAGED,8,3                    ; @MANAGED
	.comm	_ISC_R_SUCCESS,8,3              ; @ISC_R_SUCCESS
	.comm	_isc_lctx,4,2                   ; @isc_lctx
	.comm	_ISC_LOGCATEGORY_GENERAL,4,2    ; @ISC_LOGCATEGORY_GENERAL
	.comm	_ISC_LOGMODULE_SOCKET,4,2       ; @ISC_LOGMODULE_SOCKET
	.comm	_ISC_LOG_ERROR,4,2              ; @ISC_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to start watching FD (%d): %s"

	.no_dead_strip	_wakeup_socket
.subsections_via_symbols
