	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extended_event
_extended_event:                        ## @extended_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rax
	movzbl	2(%rdi), %edi
	movq	_max_synthdev@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jle	LBB0_1
## %bb.2:
	movq	_synth_open_mask@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%edi, %ecx
	jae	LBB0_1
## %bb.3:
	movb	1(%rax), %cl
	addb	$-128, %cl
	cmpb	$6, %cl
	ja	LBB0_16
## %bb.4:
	movzbl	%cl, %ecx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_14:
	movq	_synth_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rdi,8), %rcx
	movq	(%rcx), %rcx
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.15:
	movzbl	3(%rax), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	*%rcx
	jmp	LBB0_18
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_17:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_10:
	movq	_synth_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rdi,8), %rcx
	movzbl	3(%rax), %esi
	movzbl	4(%rax), %edx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	*32(%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_6:
	movb	4(%rax), %cl
	xorl	%ebx, %ebx
	cmpb	$-1, %cl
	jl	LBB0_18
## %bb.7:
	movb	5(%rax), %r9b
	movq	_synth_devs@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%rdi,8), %r8
	testb	%r9b, %r9b
	je	LBB0_8
## %bb.9:
	movzbl	3(%rax), %esi
	movzbl	%cl, %edx
	movzbl	%r9b, %ecx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	*40(%r8)
	jmp	LBB0_18
LBB0_5:
	movq	_synth_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%edi, %edx
	movq	(%rcx,%rdx,8), %rbx
	movzbl	3(%rax), %esi
	movzbl	4(%rax), %edx
	movzbl	5(%rax), %ecx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	*48(%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_13:
	movq	_synth_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rdi,8), %rbx
	movzbl	3(%rax), %esi
	movzbl	4(%rax), %edx
	movswl	5(%rax), %ecx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	*8(%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_12:
	movq	_synth_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rdi,8), %rcx
	movzbl	3(%rax), %esi
	movsbl	4(%rax), %edx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	*16(%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_11:
	movq	_synth_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rdi,8), %rcx
	movzbl	3(%rax), %esi
	movzbl	4(%rax), %edx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	*24(%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_8:
	movzbl	3(%rax), %esi
	movzbl	%cl, %edx
	xorl	%ebx, %ebx
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%ecx, %ecx
	callq	*48(%r8)
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_max_synthdev,4,2               ## @max_synthdev
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_synth_open_mask,4,2            ## @synth_open_mask
	.comm	_synth_devs,8,3                 ## @synth_devs
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_extended_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extended_event
_extended_event:                        ; @extended_event
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
	ldrb	w0, [x0, #2]
Lloh0:
	adrp	x9, _max_synthdev@GOTPAGE
Lloh1:
	ldr	x9, [x9, _max_synthdev@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w0
	b.le	LBB0_6
; %bb.1:
Lloh3:
	adrp	x9, _synth_open_mask@GOTPAGE
Lloh4:
	ldr	x9, [x9, _synth_open_mask@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsr	w9, w9, w0
	tbz	w9, #0, LBB0_6
; %bb.2:
	ldrb	w9, [x8, #1]
	sub	w9, w9, #128
	cmp	w9, #6
	b.hi	LBB0_8
; %bb.3:
Lloh6:
	adrp	x10, lJTI0_0@PAGE
Lloh7:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
Lloh8:
	adrp	x9, _synth_devs@GOTPAGE
Lloh9:
	ldr	x9, [x9, _synth_devs@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x9, [x9, x0, lsl #3]
	ldr	x9, [x9]
	cbz	x9, LBB0_20
; %bb.5:
	ldrb	w1, [x8, #3]
                                        ; kill: def $w0 killed $w0 killed $x0
	blr	x9
	b	LBB0_20
LBB0_6:
Lloh11:
	adrp	x8, _ENXIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_9:
Lloh15:
	adrp	x9, _synth_devs@GOTPAGE
Lloh16:
	ldr	x9, [x9, _synth_devs@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	x9, [x9, x0, lsl #3]
	ldr	x9, [x9, #32]
	b	LBB0_18
LBB0_10:
	ldrsb	w9, [x8, #4]
	cmn	w9, #1
	b.lt	LBB0_20
; %bb.11:
	ldrb	w3, [x8, #5]
Lloh18:
	adrp	x10, _synth_devs@GOTPAGE
Lloh19:
	ldr	x10, [x10, _synth_devs@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	ldr	x10, [x10, x0, lsl #3]
	cbz	w3, LBB0_21
; %bb.12:
	ldr	x10, [x10, #40]
	b	LBB0_22
LBB0_13:
Lloh21:
	adrp	x9, _synth_devs@GOTPAGE
Lloh22:
	ldr	x9, [x9, _synth_devs@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	ldr	x9, [x9, w0, uxtw #3]
	ldr	x9, [x9, #48]
	ldrb	w1, [x8, #3]
	ldrb	w2, [x8, #4]
	ldrb	w3, [x8, #5]
	b	LBB0_15
LBB0_14:
Lloh24:
	adrp	x9, _synth_devs@GOTPAGE
Lloh25:
	ldr	x9, [x9, _synth_devs@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	ldr	x9, [x9, x0, lsl #3]
	ldr	x9, [x9, #8]
	ldrb	w1, [x8, #3]
	ldrb	w2, [x8, #4]
	ldursh	w3, [x8, #5]
LBB0_15:
                                        ; kill: def $w0 killed $w0 killed $x0
	blr	x9
	b	LBB0_20
LBB0_16:
Lloh27:
	adrp	x9, _synth_devs@GOTPAGE
Lloh28:
	ldr	x9, [x9, _synth_devs@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	ldr	x9, [x9, x0, lsl #3]
	ldr	x9, [x9, #16]
	ldrb	w1, [x8, #3]
	ldrsb	w2, [x8, #4]
	b	LBB0_19
LBB0_17:
Lloh30:
	adrp	x9, _synth_devs@GOTPAGE
Lloh31:
	ldr	x9, [x9, _synth_devs@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	ldr	x9, [x9, x0, lsl #3]
	ldr	x9, [x9, #24]
LBB0_18:
	ldrb	w1, [x8, #3]
	ldrb	w2, [x8, #4]
LBB0_19:
                                        ; kill: def $w0 killed $w0 killed $x0
	blr	x9
LBB0_20:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_21:
	ldr	x10, [x10, #48]
LBB0_22:
	ldrb	w1, [x8, #3]
	and	w2, w9, #0xff
                                        ; kill: def $w0 killed $w0 killed $x0
	blr	x10
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_17-LBB0_4)>>2
                                        ; -- End function
	.comm	_max_synthdev,4,2               ; @max_synthdev
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_synth_open_mask,4,2            ; @synth_open_mask
	.comm	_synth_devs,8,3                 ; @synth_devs
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_extended_event
.subsections_via_symbols
