	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_linux_ipc                      ## -- Begin function linux_ipc
	.p2align	4, 0x90
_linux_ipc:                             ## @linux_ipc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rsi), %eax
	leal	-128(%rax), %ecx
	cmpw	$10, %cx
	ja	LBB0_20
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movzwl	%cx, %ecx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_18:
	movl	12(%rbx), %eax
	movl	%eax, -40(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -44(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_linux_shmget
	jmp	LBB0_21
LBB0_17:
	movl	4(%rbx), %edi
	callq	_PTRIN
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_linux_shmdt
	jmp	LBB0_21
LBB0_19:
	movl	12(%rbx), %eax
	movl	%eax, -36(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -40(%rbp)
	movl	4(%rbx), %edi
	callq	_PTRIN
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_linux_shmctl
	jmp	LBB0_21
LBB0_15:
	movl	12(%rbx), %eax
	movl	%eax, -32(%rbp)
	movl	4(%rbx), %edi
	callq	_PTRIN
	movq	%rax, -40(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_linux_shmat
	testl	%eax, %eax
	jne	LBB0_21
## %bb.16:
	movq	(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	16(%rbx), %edi
	callq	_PTRIN
	leaq	-56(%rbp), %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_copyout
	movq	(%r14), %rcx
	movl	$0, (%rcx)
	jmp	LBB0_21
LBB0_2:
	movl	12(%rbx), %eax
	movl	%eax, -32(%rbp)
	movl	4(%rbx), %edi
	callq	_PTRIN
	movq	%rax, -40(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_linux_semop
	jmp	LBB0_21
LBB0_3:
	movl	12(%rbx), %eax
	movl	%eax, -40(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -44(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_linux_semget
	jmp	LBB0_21
LBB0_4:
	movl	12(%rbx), %eax
	movl	%eax, -32(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -36(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -40(%rbp)
	movl	4(%rbx), %edi
	callq	_PTRIN
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	movl	$8, %edx
	callq	_copyin
	testl	%eax, %eax
	jne	LBB0_21
## %bb.5:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_linux_semctl
	jmp	LBB0_21
LBB0_6:
	movl	12(%rbx), %eax
	movl	%eax, -32(%rbp)
	movl	4(%rbx), %edi
	callq	_PTRIN
	movq	%rax, -40(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -44(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_linux_msgsnd
	jmp	LBB0_21
LBB0_7:
	movl	12(%rbx), %ecx
	movl	%ecx, -24(%rbp)
	movl	8(%rbx), %ecx
	movl	%ecx, -28(%rbp)
	movl	16(%rbx), %ecx
	movl	%ecx, -32(%rbp)
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	ja	LBB0_11
## %bb.8:
	movl	4(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_20
## %bb.9:
	callq	_PTRIN
	leaq	-56(%rbp), %rsi
	movq	%rax, %rdi
	movl	$8, %edx
	callq	_copyin
	testl	%eax, %eax
	jne	LBB0_21
## %bb.10:
	movl	-52(%rbp), %edi
	callq	_PTRIN
	movq	%rax, -40(%rbp)
	movl	-56(%rbp), %eax
	jmp	LBB0_12
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_21
LBB0_13:
	movl	12(%rbx), %eax
	movl	%eax, -44(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_linux_msgget
	jmp	LBB0_21
LBB0_14:
	movl	12(%rbx), %eax
	movl	%eax, -36(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -40(%rbp)
	movl	4(%rbx), %edi
	callq	_PTRIN
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_linux_msgctl
	jmp	LBB0_21
LBB0_11:
	movl	4(%rbx), %edi
	callq	_PTRIN
	movq	%rax, -40(%rbp)
	movl	20(%rbx), %eax
LBB0_12:
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_linux_msgrcv
LBB0_21:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_17
	.long	L0_0_set_19
	.long	L0_0_set_15
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_13
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_linux_ipc                      ; -- Begin function linux_ipc
	.p2align	2
_linux_ipc:                             ; @linux_ipc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x1]
	and	w9, w8, #0xffff
	sub	w9, w9, #128
	cmp	w9, #10
	b.hi	LBB0_16
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	ldr	d0, [x20, #8]
	stur	d0, [sp, #20]
	ldr	w8, [x20, #16]
	str	w8, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	bl	_linux_shmget
	b	LBB0_21
LBB0_3:
	ldr	w0, [x20, #4]
	bl	_PTRIN
	str	x0, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	bl	_linux_shmdt
	b	LBB0_21
LBB0_4:
	ldr	d0, [x20, #8]
	str	d0, [sp, #24]
	ldr	w0, [x20, #4]
	bl	_PTRIN
	str	x0, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	bl	_linux_shmctl
	b	LBB0_21
LBB0_5:
	ldr	w8, [x20, #12]
	str	w8, [sp, #32]
	ldr	w0, [x20, #4]
	bl	_PTRIN
	str	x0, [sp, #24]
	ldr	w8, [x20, #8]
	str	w8, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	bl	_linux_shmat
	cbnz	w0, LBB0_21
; %bb.6:
	ldr	x8, [x19]
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x20, #16]
	bl	_PTRIN
	mov	x1, x0
	add	x0, sp, #8
	mov	w2, #4
	bl	_copyout
	ldr	x8, [x19]
	str	wzr, [x8]
	b	LBB0_21
LBB0_7:
	ldr	w8, [x20, #12]
	str	w8, [sp, #32]
	ldr	w0, [x20, #4]
	bl	_PTRIN
	str	x0, [sp, #24]
	ldr	w8, [x20, #8]
	str	w8, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	bl	_linux_semop
	b	LBB0_21
LBB0_8:
	ldr	d0, [x20, #8]
	stur	d0, [sp, #20]
	ldr	w8, [x20, #16]
	str	w8, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	bl	_linux_semget
	b	LBB0_21
LBB0_9:
	ldr	d0, [x20, #8]
	stur	d0, [sp, #28]
	ldr	w8, [x20, #16]
	str	w8, [sp, #24]
	ldr	w0, [x20, #4]
	bl	_PTRIN
	add	x1, sp, #16
	mov	w2, #8
	bl	_copyin
	cbnz	w0, LBB0_21
; %bb.10:
	add	x1, sp, #16
	mov	x0, x19
	bl	_linux_semctl
	b	LBB0_21
LBB0_11:
	ldr	w8, [x20, #12]
	str	w8, [sp, #32]
	ldr	w0, [x20, #4]
	bl	_PTRIN
	str	x0, [sp, #24]
	ldr	w8, [x20, #8]
	ldr	w9, [x20, #16]
	stp	w9, w8, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	bl	_linux_msgsnd
	b	LBB0_21
LBB0_12:
	ldr	d0, [x20, #8]
	stur	d0, [sp, #36]
	ldr	w9, [x20, #16]
	str	w9, [sp, #32]
	lsr	w8, w8, #16
	cbnz	w8, LBB0_19
; %bb.13:
	ldr	w0, [x20, #4]
	cbz	w0, LBB0_16
; %bb.14:
	bl	_PTRIN
	add	x1, sp, #8
	mov	w2, #8
	bl	_copyin
	cbnz	w0, LBB0_21
; %bb.15:
	ldr	w0, [sp, #12]
	bl	_PTRIN
	str	x0, [sp, #24]
	ldr	w8, [sp, #8]
	b	LBB0_20
LBB0_16:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_21
LBB0_17:
	ldr	d0, [x20, #8]
	str	d0, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	bl	_linux_msgget
	b	LBB0_21
LBB0_18:
	ldr	d0, [x20, #8]
	str	d0, [sp, #24]
	ldr	w0, [x20, #4]
	bl	_PTRIN
	str	x0, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	bl	_linux_msgctl
	b	LBB0_21
LBB0_19:
	ldr	w0, [x20, #4]
	bl	_PTRIN
	str	x0, [sp, #24]
	ldr	w8, [x20, #20]
LBB0_20:
	str	w8, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	bl	_linux_msgrcv
LBB0_21:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
