	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channel_register_fds
_channel_register_fds:                  ## @channel_register_fds
	.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	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movq	%rsi, %r12
	movl	24(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %r13
	movq	(%r13), %rdi
	movl	%edx, %esi
	callq	_MAXIMUM
	movq	%rax, (%r13)
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_MAXIMUM
	movq	%rax, (%r13)
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_MAXIMUM
	movq	%rax, (%r13)
	cmpl	$-1, %ebx
	je	LBB0_2
## %bb.1:
	movq	_F_SETFD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FD_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_fcntl
LBB0_2:
	cmpl	$-1, %r15d
	je	LBB0_5
## %bb.3:
	cmpl	%ebx, %r15d
	je	LBB0_5
## %bb.4:
	movq	_F_SETFD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FD_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_fcntl
LBB0_5:
	cmpl	%r15d, %r14d
	je	LBB0_9
## %bb.6:
	cmpl	$-1, %r14d
	je	LBB0_9
## %bb.7:
	cmpl	%ebx, %r14d
	je	LBB0_9
## %bb.8:
	movq	_F_SETFD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FD_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_fcntl
LBB0_9:
	cmpl	%ebx, %r15d
	movl	%ebx, (%r12)
	movl	%r15d, 4(%r12)
	movl	$-1, %eax
	cmovel	%ebx, %eax
	movl	%eax, 8(%r12)
	movl	%r14d, 12(%r12)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 20(%r12)
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	28(%r12), %esi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	callq	_debug2
LBB0_11:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.12:
	cmpl	$-1, %ebx
	je	LBB0_14
## %bb.13:
	movl	%ebx, %edi
	callq	_set_nonblock
LBB0_14:
	cmpl	$-1, %r15d
	je	LBB0_16
## %bb.15:
	movl	%r15d, %edi
	callq	_set_nonblock
LBB0_16:
	cmpl	$-1, %r14d
	je	LBB0_17
## %bb.18:
	movl	%r14d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_nonblock                   ## TAILCALL
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_F_SETFD,4,2                    ## @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ## @FD_CLOEXEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"channel %d: rfd %d isatty"

	.no_dead_strip	_channel_register_fds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channel_register_fds
_channel_register_fds:                  ; @channel_register_fds
	.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	x23, x7
	mov	x22, x6
	mov	x25, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	ldr	x26, [x0]
	ldr	x0, [x26]
	mov	x1, x2
	bl	_MAXIMUM
	str	x0, [x26]
	mov	x1, x20
	bl	_MAXIMUM
	str	x0, [x26]
	mov	x1, x19
	bl	_MAXIMUM
	str	x0, [x26]
Lloh0:
	adrp	x26, _F_SETFD@GOTPAGE
Lloh1:
	ldr	x26, [x26, _F_SETFD@GOTPAGEOFF]
Lloh2:
	adrp	x27, _FD_CLOEXEC@GOTPAGE
Lloh3:
	ldr	x27, [x27, _FD_CLOEXEC@GOTPAGEOFF]
	cmn	w21, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x21
	bl	_fcntl
LBB0_2:
	cmn	w20, #1
	b.eq	LBB0_5
; %bb.3:
	cmp	w20, w21
	b.eq	LBB0_5
; %bb.4:
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x20
	bl	_fcntl
LBB0_5:
	cmp	w19, w20
	b.eq	LBB0_9
; %bb.6:
	cmn	w19, #1
	b.eq	LBB0_9
; %bb.7:
	cmp	w19, w21
	b.eq	LBB0_9
; %bb.8:
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x19
	bl	_fcntl
LBB0_9:
	stp	w21, w20, [x24]
	cmp	w20, w21
	csinv	w8, w21, wzr, eq
	stp	w8, w19, [x24, #8]
	stp	w25, w23, [x24, #16]
	cbz	w23, LBB0_11
; %bb.10:
	ldr	w1, [x24, #28]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_debug2
LBB0_11:
	cbz	w22, LBB0_18
; %bb.12:
	cmn	w21, #1
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x21
	bl	_set_nonblock
LBB0_14:
	cmn	w20, #1
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_set_nonblock
LBB0_16:
	cmn	w19, #1
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x19
	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
	b	_set_nonblock
LBB0_18:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_F_SETFD,4,2                    ; @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ; @FD_CLOEXEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"channel %d: rfd %d isatty"

	.no_dead_strip	_channel_register_fds
.subsections_via_symbols
