	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_to_sideband
_copy_to_sideband:                      ## @copy_to_sideband
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_keepalive_in_sec@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_2
## %bb.1:
	movq	_use_keepalive@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_KEEPALIVE_NEVER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_use_keepalive@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_3:
	movq	_KEEPALIVE_ALWAYS@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	sete	%r12b
	movl	%r14d, -180(%rbp)               ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_use_sideband@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$1, %edi
	movl	$2, %esi
	leaq	-176(%rbp), %rdx
	movl	%ebx, %ecx
	callq	_send_sideband
	xorl	%r13d, %r13d
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$3, %r13d
	je	LBB0_16
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, -192(%rbp)
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -188(%rbp)
	movq	_keepalive_in_sec@GOTPCREL(%rip), %rax
	imull	$1000, (%rax), %edx             ## imm = 0x3E8
	leaq	-192(%rbp), %rdi
	movl	$1, %esi
	callq	_poll
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	je	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %edi
	leaq	-176(%rbp), %rsi
	movl	$128, %edx
	callq	_xread
	testl	%eax, %eax
	jle	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ebx
	movq	_use_keepalive@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_KEEPALIVE_AFTER_NUL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	-176(%rbp), %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r15
	movl	%r15d, %r14d
	leaq	-176(%rbp), %rdx
	subl	%edx, %r14d
	movq	_use_sideband@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$1, %r12d
	movl	$2, %r13d
	movl	$1, %edi
	movl	$2, %esi
	movl	%r14d, %ecx
	callq	_send_sideband
	incq	%r15
	notl	%r14d
	addl	%r14d, %ebx
	movl	-180(%rbp), %r14d               ## 4-byte Reload
	movq	_use_sideband@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$1, %edi
	movl	$2, %esi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_send_sideband
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r13d, %r13d
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%r13b
	xorl	$3, %r13d
	movl	$1, %r12d
	jmp	LBB0_15
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	leaq	_copy_to_sideband.buf(%rip), %rsi
	movl	$5, %edx
	callq	_write_or_die
	movl	$2, %r13d
	movl	$1, %r12d
	jmp	LBB0_15
LBB0_16:
	movl	%r14d, %edi
	callq	_close
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	xorl	%eax, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_keepalive_in_sec,4,2           ## @keepalive_in_sec
	.comm	_KEEPALIVE_NEVER,8,3            ## @KEEPALIVE_NEVER
	.comm	_use_keepalive,8,3              ## @use_keepalive
	.comm	_KEEPALIVE_ALWAYS,8,3           ## @KEEPALIVE_ALWAYS
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.section	__TEXT,__const
_copy_to_sideband.buf:                  ## @copy_to_sideband.buf
	.asciz	"0005\001"

	.comm	_KEEPALIVE_AFTER_NUL,8,3        ## @KEEPALIVE_AFTER_NUL
	.comm	_use_sideband,4,2               ## @use_sideband
	.no_dead_strip	_copy_to_sideband
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_to_sideband
_copy_to_sideband:                      ; @copy_to_sideband
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x23, _keepalive_in_sec@GOTPAGE
Lloh4:
	ldr	x23, [x23, _keepalive_in_sec@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh5:
	adrp	x26, _use_keepalive@GOTPAGE
Lloh6:
	ldr	x26, [x26, _use_keepalive@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x26]
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _KEEPALIVE_NEVER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KEEPALIVE_NEVER@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x26]
LBB0_3:
Lloh10:
	adrp	x9, _KEEPALIVE_ALWAYS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _KEEPALIVE_ALWAYS@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w25, eq
Lloh13:
	adrp	x27, _POLLIN@GOTPAGE
Lloh14:
	ldr	x27, [x27, _POLLIN@GOTPAGEOFF]
	mov	w20, #1000
Lloh15:
	adrp	x28, _use_sideband@GOTPAGE
Lloh16:
	ldr	x28, [x28, _use_sideband@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w4, [x28]
	add	x2, sp, #8
	mov	w0, #1
	mov	w1, #2
	mov	x3, x21
	bl	_send_sideband
	mov	w24, #0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w24, #3
	b.eq	LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w25, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x27]
	stp	w19, w8, [sp]
	ldr	w8, [x23]
	mul	w2, w8, w20
	mov	x0, sp
	mov	w1, #1
	bl	_poll
	tbnz	w0, #31, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w0, LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #128
	bl	_xread
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	ldr	x8, [x26]
Lloh17:
	adrp	x9, _KEEPALIVE_AFTER_NUL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _KEEPALIVE_AFTER_NUL@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w25, #0, #0, eq
	b.ne	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #8
	mov	w1, #0
	mov	x2, x21
	bl	_memchr
	cbz	x0, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	mov	x20, x27
	mov	x27, x26
	mov	x26, x23
	add	x8, sp, #8
	sub	w23, w22, w8
	ldr	w4, [x28]
	mov	w25, #1
	mov	w24, #2
	add	x2, sp, #8
	mov	w0, #1
	mov	x3, x23
	mov	w1, #2
	bl	_send_sideband
	add	x2, x22, #1
	mvn	w8, w23
	mov	x23, x26
	mov	x26, x27
	mov	x27, x20
	mov	w20, #1000
	add	w3, w21, w8
	ldr	w4, [x28]
	mov	w0, #1
	mov	w1, #2
	bl	_send_sideband
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _EINTR@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EINTR@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #2
	cinc	w24, w8, ne
	mov	w25, #1
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
Lloh26:
	adrp	x1, _copy_to_sideband.buf@PAGE
Lloh27:
	add	x1, x1, _copy_to_sideband.buf@PAGEOFF
	mov	w2, #5
	bl	_write_or_die
	mov	w24, #2
	mov	w25, #1
	b	LBB0_5
LBB0_15:
	mov	x0, x19
	bl	_close
	ldur	x8, [x29, #-88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	w0, #0
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_keepalive_in_sec,4,2           ; @keepalive_in_sec
	.comm	_KEEPALIVE_NEVER,8,3            ; @KEEPALIVE_NEVER
	.comm	_use_keepalive,8,3              ; @use_keepalive
	.comm	_KEEPALIVE_ALWAYS,8,3           ; @KEEPALIVE_ALWAYS
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.section	__TEXT,__const
_copy_to_sideband.buf:                  ; @copy_to_sideband.buf
	.asciz	"0005\001"

	.comm	_KEEPALIVE_AFTER_NUL,8,3        ; @KEEPALIVE_AFTER_NUL
	.comm	_use_sideband,4,2               ; @use_sideband
	.no_dead_strip	_copy_to_sideband
.subsections_via_symbols
