	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fd_ctrl
_fd_ctrl:                               ## @fd_ctrl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	xorl	%eax, %eax
	addl	$-128, %esi
	cmpl	$11, %esi
	ja	LBB0_15
## %bb.1:
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_5:
	movl	(%rbx), %edi
	xorl	%esi, %esi
	movl	$1, %edx
	jmp	LBB0_4
LBB0_6:
	movq	%rbx, %rdi
	callq	_fd_free
	movl	(%r15), %eax
	movl	%eax, (%rbx)
	movl	%r14d, 4(%rbx)
	movl	$1, 8(%rbx)
	jmp	LBB0_14
LBB0_7:
	cmpl	$0, 8(%rbx)
	je	LBB0_8
## %bb.9:
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movl	(%rbx), %eax
	movl	%eax, (%r15)
LBB0_11:
	movslq	(%rbx), %rax
	jmp	LBB0_15
LBB0_13:
	movl	%r14d, 4(%rbx)
LBB0_14:
	movl	$1, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r14d, %r14d
LBB0_3:
	movl	(%rbx), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UP_lseek                       ## TAILCALL
LBB0_12:
	movslq	4(%rbx), %rax
	jmp	LBB0_15
LBB0_8:
	movq	$-1, %rax
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_15
	.long	L0_0_set_13
	.long	L0_0_set_2
	.long	L0_0_set_15
	.long	L0_0_set_5
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_fd_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fd_ctrl
_fd_ctrl:                               ; @fd_ctrl
	.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
	mov	x19, x0
	mov	x0, #0
	sub	w8, w1, #128
	cmp	w8, #11
	b.hi	LBB0_15
; %bb.1:
	mov	x21, x3
	mov	x20, x2
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w0, [x19]
	mov	x1, #0
	mov	w2, #1
	b	LBB0_12
LBB0_3:
	mov	x0, x19
	bl	_fd_free
	ldr	w8, [x21]
	stp	w8, w20, [x19]
	mov	w0, #1
	str	w0, [x19, #8]
	b	LBB0_15
LBB0_4:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_14
; %bb.5:
	cbz	x21, LBB0_7
; %bb.6:
	ldr	w8, [x19]
	str	w8, [x21]
LBB0_7:
	ldrsw	x0, [x19]
	b	LBB0_15
LBB0_8:
	str	w20, [x19, #4]
LBB0_9:
	mov	w0, #1
	b	LBB0_15
LBB0_10:
	mov	x20, #0
LBB0_11:
	ldr	w0, [x19]
	mov	x1, x20
	mov	w2, #0
LBB0_12:
	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
	b	_UP_lseek
LBB0_13:
	ldrsw	x0, [x19, #4]
	b	LBB0_15
LBB0_14:
	mov	x0, #-1
LBB0_15:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.no_dead_strip	_fd_ctrl
.subsections_via_symbols
