	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_session_set_fds                ## -- Begin function session_set_fds
	.p2align	4, 0x90
_session_set_fds:                       ## @session_set_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	(%rsi), %esi
	cmpl	$-1, %esi
	jne	LBB0_2
## %bb.1:
	movl	4(%r14), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	callq	_fatal
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	(%r14), %esi
LBB0_2:
	movl	16(%rbp), %eax
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.4:
	movq	_CHAN_EXTENDED_READ@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_CHAN_EXTENDED_IGNORE@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %r9d
	movq	_CHAN_SES_WINDOW_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	subq	$8, %rsp
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	pushq	%rbx
	pushq	%rax
	pushq	$1
	callq	_channel_set_fds
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no channel for session %d"

	.comm	_CHAN_EXTENDED_IGNORE,4,2       ## @CHAN_EXTENDED_IGNORE
	.comm	_CHAN_EXTENDED_READ,4,2         ## @CHAN_EXTENDED_READ
	.comm	_CHAN_SES_WINDOW_DEFAULT,4,2    ## @CHAN_SES_WINDOW_DEFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_session_set_fds                ; -- Begin function session_set_fds
	.p2align	2
_session_set_fds:                       ; @session_set_fds
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x6
	mov	x24, x5
	mov	x20, x4
	mov	x22, x3
	mov	x21, x2
	mov	x25, x1
	mov	x23, x0
	ldr	w1, [x1]
	cmn	w1, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x25, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
	ldr	w1, [x25]
LBB0_2:
Lloh2:
	adrp	x8, _CHAN_EXTENDED_IGNORE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CHAN_EXTENDED_IGNORE@GOTPAGEOFF]
Lloh4:
	adrp	x9, _CHAN_EXTENDED_READ@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CHAN_EXTENDED_READ@GOTPAGEOFF]
	cmp	w24, #0
	csel	x8, x9, x8, eq
	ldr	w5, [x8]
Lloh6:
	adrp	x8, _CHAN_SES_WINDOW_DEFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHAN_SES_WINDOW_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	w6, #1
	mov	x7, x19
	bl	_channel_set_fds
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no channel for session %d"

	.comm	_CHAN_EXTENDED_IGNORE,4,2       ; @CHAN_EXTENDED_IGNORE
	.comm	_CHAN_EXTENDED_READ,4,2         ; @CHAN_EXTENDED_READ
	.comm	_CHAN_SES_WINDOW_DEFAULT,4,2    ; @CHAN_SES_WINDOW_DEFAULT
.subsections_via_symbols
