	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function block_til_ready
_block_til_ready:                       ## @block_til_ready
	.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
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DECLARE_WAITQUEUE
	leaq	4(%r14), %r13
	movq	8(%rbx), %rax
	movslq	(%rax), %rdi
	callq	_DBGINFO
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %eax
	movq	_TTY_IO_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_4
LBB0_2:
	movq	_ASYNC_NORMAL_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	16(%rbx), %rax
	movq	_CLOCAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	andl	(%rax), %r15d
	leaq	16(%r14), %rdi
	movq	_wait@GOTPCREL(%rip), %rsi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_add_wait_queue
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r12, %rdi
	callq	_tty_hung_up_p
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	decl	12(%r14)
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	incl	8(%r14)
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	_CBAUD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	_tty_port_raise_dtr_rts
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	%r12, %rdi
	callq	_tty_hung_up_p
	movl	(%r13), %ecx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_ASYNC_INITIALIZED@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	callq	_tty_port_carrier_raised
	movq	_ASYNC_CLOSING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%r15d, %eax
	setne	%al
	testl	%ecx, (%r13)
	jne	LBB0_24
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	testb	%al, %al
	jne	LBB0_17
LBB0_24:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rax
	movslq	(%rax), %rdi
	callq	_DBGINFO
	xorl	%eax, %eax
	callq	_schedule
	jmp	LBB0_7
LBB0_11:
	movq	_ASYNC_HUP_NOTIFY@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_12
## %bb.13:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_17:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_25:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_12:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_14:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	_wait@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_remove_wait_queue
	testq	%r12, %r12
	jne	LBB0_21
## %bb.20:
	incl	12(%r14)
LBB0_21:
	decl	8(%r14)
	testl	%ebx, %ebx
	jne	LBB0_23
## %bb.22:
	movq	_ASYNC_NORMAL_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
LBB0_23:
	movslq	%ebx, %rdi
	callq	_DBGINFO
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_current,4,2                    ## @current
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_TTY_IO_ERROR,4,2               ## @TTY_IO_ERROR
	.comm	_ASYNC_NORMAL_ACTIVE,4,2        ## @ASYNC_NORMAL_ACTIVE
	.comm	_CLOCAL,4,2                     ## @CLOCAL
	.comm	_CBAUD,4,2                      ## @CBAUD
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_ASYNC_INITIALIZED,4,2          ## @ASYNC_INITIALIZED
	.comm	_ASYNC_HUP_NOTIFY,4,2           ## @ASYNC_HUP_NOTIFY
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_ASYNC_CLOSING,4,2              ## @ASYNC_CLOSING
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.no_dead_strip	_block_til_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function block_til_ready
_block_til_ready:                       ; @block_til_ready
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _wait@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wait@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x25, _current@GOTPAGE
Lloh4:
	ldr	x25, [x25, _current@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_DECLARE_WAITQUEUE
	add	x19, x20, #4
	ldr	x8, [x22, #8]
	ldrsw	x0, [x8]
	bl	_DBGINFO
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x22]
Lloh8:
	adrp	x9, _TTY_IO_ERROR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TTY_IO_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_4
LBB0_2:
	mov	w21, #0
Lloh11:
	adrp	x8, _ASYNC_NORMAL_ACTIVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ASYNC_NORMAL_ACTIVE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	ldr	x8, [x22, #16]
	ldr	w23, [x8]
Lloh14:
	adrp	x8, _CLOCAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CLOCAL@GOTPAGEOFF]
Lloh16:
	ldr	w24, [x8]
	add	x0, x20, #16
Lloh17:
	adrp	x1, _wait@GOTPAGE
Lloh18:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_add_wait_queue
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x21
	bl	_tty_hung_up_p
	str	x0, [sp]                        ; 8-byte Folded Spill
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	w8, [x20, #12]
	sub	w8, w8, #1
	str	w8, [x20, #12]
LBB0_6:
	and	w26, w24, w23
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
Lloh19:
	adrp	x27, _CBAUD@GOTPAGE
Lloh20:
	ldr	x27, [x27, _CBAUD@GOTPAGEOFF]
Lloh21:
	adrp	x28, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh22:
	ldr	x28, [x28, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh23:
	adrp	x23, _ASYNC_INITIALIZED@GOTPAGE
Lloh24:
	ldr	x23, [x23, _ASYNC_INITIALIZED@GOTPAGEOFF]
Lloh25:
	adrp	x24, _ASYNC_CLOSING@GOTPAGE
Lloh26:
	ldr	x24, [x24, _ASYNC_CLOSING@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	ldr	w8, [x8]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_tty_port_raise_dtr_rts
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x28]
	bl	_set_current_state
	mov	x0, x21
	bl	_tty_hung_up_p
	ldr	w8, [x19]
	cbnz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_tty_port_carrier_raised
	orr	w8, w26, w0
	ldr	w9, [x19]
	ldr	w10, [x24]
	cmp	w8, #0
	cset	w8, ne
	and	w9, w10, w9
	cbnz	w9, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	tbnz	w8, #0, LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x25]
	bl	_signal_pending
	cbnz	x0, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22, #8]
	ldrsw	x0, [x8]
	bl	_DBGINFO
	bl	_schedule
	b	LBB0_7
LBB0_15:
Lloh27:
	adrp	x9, _ASYNC_HUP_NOTIFY@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ASYNC_HUP_NOTIFY@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _EAGAIN@GOTPAGE
Lloh31:
	ldr	x10, [x10, _EAGAIN@GOTPAGEOFF]
Lloh32:
	adrp	x11, _ERESTARTSYS@GOTPAGE
Lloh33:
	ldr	x11, [x11, _ERESTARTSYS@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	b	LBB0_18
LBB0_16:
	mov	w21, #0
	b	LBB0_19
LBB0_17:
Lloh34:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_19:
Lloh36:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_set_current_state
Lloh39:
	adrp	x1, _wait@GOTPAGE
Lloh40:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_remove_wait_queue
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cbnz	x8, LBB0_21
; %bb.20:
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
LBB0_21:
	ldr	w8, [x20, #8]
	sub	w8, w8, #1
	str	w8, [x20, #8]
	cbnz	w21, LBB0_23
; %bb.22:
Lloh41:
	adrp	x8, _ASYNC_NORMAL_ACTIVE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ASYNC_NORMAL_ACTIVE@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_23:
	sxtw	x0, w21
	bl	_DBGINFO
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_current,4,2                    ; @current
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_TTY_IO_ERROR,4,2               ; @TTY_IO_ERROR
	.comm	_ASYNC_NORMAL_ACTIVE,4,2        ; @ASYNC_NORMAL_ACTIVE
	.comm	_CLOCAL,4,2                     ; @CLOCAL
	.comm	_CBAUD,4,2                      ; @CBAUD
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_ASYNC_INITIALIZED,4,2          ; @ASYNC_INITIALIZED
	.comm	_ASYNC_HUP_NOTIFY,4,2           ; @ASYNC_HUP_NOTIFY
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_ASYNC_CLOSING,4,2              ; @ASYNC_CLOSING
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.no_dead_strip	_block_til_ready
.subsections_via_symbols
