	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dn_wait_run
_dn_wait_run:                           ## @dn_wait_run
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_DN_SK
	movq	%rax, %r14
	movq	_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEFINE_WAIT
	movq	(%r14), %rax
	movq	_DN_RUN@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_1
LBB0_17:
	movq	_SS_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_1:
	cmpq	$0, (%r15)
	je	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %edi
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_prepare_to_wait
	movq	%r12, %rdi
	callq	_release_sock
	movq	(%r14), %rax
	movq	_DN_CI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_DN_CC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rdi
	callq	_schedule_timeout
	movq	%rax, (%r15)
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_lock_sock
	movq	(%r14), %rax
	cmpq	(%r13), %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_sock_error
	testl	%eax, %eax
	jne	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rdi
	callq	_sock_intr_errno
	movl	%eax, %ebx
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r15)
	jne	LBB0_3
## %bb.15:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	8(%r12), %edi
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_finish_wait
	testl	%ebx, %ebx
	jne	LBB0_10
	jmp	LBB0_17
LBB0_2:
	movq	_EALREADY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_7:
	movl	8(%r12), %edi
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_finish_wait
	jmp	LBB0_17
LBB0_9:
	movl	%eax, %ebx
	movl	8(%r12), %edi
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_finish_wait
LBB0_10:
	movq	(%r14), %rax
	movq	_DN_CI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.11:
	movq	_DN_CC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.12:
	movq	_SS_UNCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_DN_RUN,8,3                     ## @DN_RUN
	.comm	_EALREADY,4,2                   ## @EALREADY
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_DN_CI,8,3                      ## @DN_CI
	.comm	_DN_CC,8,3                      ## @DN_CC
	.comm	_current,4,2                    ## @current
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_SS_CONNECTED,4,2               ## @SS_CONNECTED
	.comm	_SS_UNCONNECTED,4,2             ## @SS_UNCONNECTED
	.no_dead_strip	_dn_wait_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dn_wait_run
_dn_wait_run:                           ; @dn_wait_run
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	bl	_DN_SK
	mov	x20, x0
Lloh0:
	adrp	x8, _wait@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wait@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_DEFINE_WAIT
	ldr	x8, [x20]
Lloh3:
	adrp	x26, _DN_RUN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _DN_RUN@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_1:
	mov	w22, #0
Lloh5:
	adrp	x8, _SS_CONNECTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SS_CONNECTED@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
	b	LBB0_17
LBB0_3:
	ldr	x8, [x21]
	cbz	x8, LBB0_13
; %bb.4:
Lloh7:
	adrp	x27, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh9:
	adrp	x23, _wait@GOTPAGE
Lloh10:
	ldr	x23, [x23, _wait@GOTPAGEOFF]
Lloh11:
	adrp	x24, _DN_CI@GOTPAGE
Lloh12:
	ldr	x24, [x24, _DN_CI@GOTPAGEOFF]
Lloh13:
	adrp	x25, _DN_CC@GOTPAGE
Lloh14:
	ldr	x25, [x25, _DN_CC@GOTPAGEOFF]
Lloh15:
	adrp	x28, _current@GOTPAGE
Lloh16:
	ldr	x28, [x28, _current@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	ldr	w2, [x27]
	mov	x1, x23
	bl	_prepare_to_wait
	mov	x0, x19
	bl	_release_sock
	ldr	x8, [x20]
	ldr	x9, [x24]
	ldr	x10, [x25]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x21]
	bl	_schedule_timeout
	str	x0, [x21]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_lock_sock
	ldr	x8, [x20]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_sock_error
	cbnz	w0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x21]
	bl	_sock_intr_errno
	mov	x22, x0
	ldr	w0, [x28]
	bl	_signal_pending
	cbnz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	cbnz	x8, LBB0_5
; %bb.11:
Lloh17:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	ldr	w0, [x19, #8]
Lloh20:
	adrp	x1, _wait@GOTPAGE
Lloh21:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_finish_wait
	cbnz	w22, LBB0_16
	b	LBB0_1
LBB0_13:
Lloh22:
	adrp	x8, _EALREADY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_17
LBB0_14:
	ldr	w0, [x19, #8]
Lloh25:
	adrp	x1, _wait@GOTPAGE
Lloh26:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_finish_wait
	b	LBB0_1
LBB0_15:
	mov	x22, x0
	ldr	w0, [x19, #8]
Lloh27:
	adrp	x1, _wait@GOTPAGE
Lloh28:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_finish_wait
LBB0_16:
	ldr	x8, [x20]
	ldr	x9, [x24]
	ldr	x10, [x25]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_18
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh29:
	adrp	x8, _SS_UNCONNECTED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SS_UNCONNECTED@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_DN_RUN,8,3                     ; @DN_RUN
	.comm	_EALREADY,4,2                   ; @EALREADY
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_DN_CI,8,3                      ; @DN_CI
	.comm	_DN_CC,8,3                      ; @DN_CC
	.comm	_current,4,2                    ; @current
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_SS_CONNECTED,4,2               ; @SS_CONNECTED
	.comm	_SS_UNCONNECTED,4,2             ; @SS_UNCONNECTED
	.no_dead_strip	_dn_wait_run
.subsections_via_symbols
