	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_one_chan
_open_one_chan:                         ## @open_one_chan
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	cmpl	$0, (%rdi)
	jne	LBB0_7
## %bb.1:
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	36(%r15), %edi
	movl	32(%r15), %esi
	movl	8(%r15), %ecx
	movl	28(%r15), %edx
	leaq	24(%r15), %r8
	callq	*%rax
	movl	%eax, %r14d
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
	jmp	LBB0_7
LBB0_2:
	xorl	%r14d, %r14d
LBB0_4:
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_os_set_fd_block
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	movq	16(%r15), %rax
	movl	8(%r15), %esi
	movl	%r14d, %edi
	callq	*8(%rax)
	movl	%r12d, %ebx
	jmp	LBB0_7
LBB0_6:
	movl	%r14d, 4(%r15)
	movl	$1, (%r15)
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_open_one_chan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_one_chan
_open_one_chan:                         ; @open_one_chan
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_2
LBB0_1:
	mov	w20, #0
	b	LBB0_7
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	ldp	w1, w0, [x19, #32]
	ldr	w2, [x19, #28]
	add	x4, x19, #24
	ldr	w3, [x19, #8]
	blr	x8
	mov	x20, x0
	tbz	w0, #31, LBB0_5
	b	LBB0_7
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	mov	w1, #0
	bl	_os_set_fd_block
	cbz	w0, LBB0_8
; %bb.6:
	mov	x21, x0
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	w1, [x19, #8]
	mov	x0, x20
	blr	x8
	mov	x20, x21
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w8, #1
	stp	w8, w20, [x19]
	b	LBB0_1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_open_one_chan
.subsections_via_symbols
