	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_mask
_get_mask:                              ## @get_mask
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r15
	leaq	-128(%rbp), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_sprintf
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_open
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%r13), %eax
	addl	$4, %ebx
	cmpl	$11, %r13d
	movl	%eax, %r13d
	jb	LBB0_1
LBB0_3:
	xorl	%ebx, %ebx
	leaq	-128(%rbp), %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_sprintf
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_open
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%r15), %eax
	addl	$2, %ebx
	cmpl	$2, %r15d
	movl	%eax, %r15d
	jb	LBB0_4
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-128(%rbp), %r13
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	callq	_sprintf
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_open
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leal	1(%r15), %eax
	addl	$4, %ebx
	cmpl	$2, %r15d
	movl	%eax, %r15d
	jb	LBB0_7
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	leaq	-128(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_sprintf
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_open
	movl	%eax, %r15d
	movl	%r12d, %eax
	andl	%r14d, %eax
	andl	%r13d, %eax
	testl	%r15d, %eax
	js	LBB0_29
## %bb.10:
	testl	%r14d, %r14d
	js	LBB0_16
## %bb.11:
	movq	_SERIAL_GETREGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mask@GOTPCREL(%rip), %rdx
	movl	%r14d, %edi
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_12
## %bb.15:
	movl	%r14d, %edi
	callq	_close
LBB0_16:
	testl	%r12d, %r12d
	js	LBB0_20
## %bb.17:
	movq	_SERIAL_GETREGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mask@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	subq	$-128, %rdx
	movl	%r12d, %edi
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_18
## %bb.19:
	movl	%r12d, %edi
	callq	_close
LBB0_20:
	testl	%r13d, %r13d
	js	LBB0_24
## %bb.21:
	movq	_SERIAL_GETREGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mask@GOTPCREL(%rip), %rax
	movl	$256, %edx                      ## imm = 0x100
	addq	(%rax), %rdx
	movl	%r13d, %edi
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_22
## %bb.23:
	movl	%r13d, %edi
	callq	_close
LBB0_24:
	testl	%r15d, %r15d
	js	LBB0_13
## %bb.25:
	movq	_SERIAL_GETREGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_mask@GOTPCREL(%rip), %rax
	movl	$384, %edx                      ## imm = 0x180
	addq	(%rax), %rdx
	movl	%r15d, %edi
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_26
## %bb.27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.30:
	movl	%r15d, %edi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close                          ## TAILCALL
LBB0_12:
	callq	_get_mask.cold.1
	jmp	LBB0_13
LBB0_18:
	callq	_get_mask.cold.2
	jmp	LBB0_13
LBB0_22:
	callq	_get_mask.cold.3
	jmp	LBB0_13
LBB0_26:
	callq	_get_mask.cold.4
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.14:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_fprintf
	movl	$-1, %edi
	callq	_exit
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function get_mask.cold.1
_get_mask.cold.1:                       ## @get_mask.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.5(%rip), %rdi
	callq	_perror
	pushq	$-1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function get_mask.cold.2
_get_mask.cold.2:                       ## @get_mask.cold.2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.5(%rip), %rdi
	callq	_perror
	pushq	$-1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function get_mask.cold.3
_get_mask.cold.3:                       ## @get_mask.cold.3
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.5(%rip), %rdi
	callq	_perror
	pushq	$-1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function get_mask.cold.4
_get_mask.cold.4:                       ## @get_mask.cold.4
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.5(%rip), %rdi
	callq	_perror
	pushq	$-1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/cx%d"

L_.str.1:                               ## @.str.1
	.asciz	"/dev/ct%d"

L_.str.2:                               ## @.str.2
	.asciz	"/dev/cp%d"

L_.str.3:                               ## @.str.3
	.asciz	"/dev/ce%d"

	.comm	_stderr,4,2                     ## @stderr
L_.str.4:                               ## @.str.4
	.asciz	"No Cronyx adapters installed\n"

	.comm	_SERIAL_GETREGISTERED,4,2       ## @SERIAL_GETREGISTERED
	.comm	_mask,8,3                       ## @mask
L_.str.5:                               ## @.str.5
	.asciz	"getting list of channels"

	.no_dead_strip	_get_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_mask
_get_mask:                              ; @get_mask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	w20, #0
	mov	w22, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x20
	bl	_sprintf
	add	x0, sp, #8
	mov	w1, #0
	bl	_open
	mov	x19, x0
	tbz	w0, #31, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w22, #1
	add	w20, w20, #4
	cmp	w22, #11
	mov	x22, x8
	b.lo	LBB0_1
LBB0_3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w2, #0
	bl	_sprintf
	add	x0, sp, #8
	mov	w1, #0
	bl	_open
	mov	x20, x0
	tbz	w0, #31, LBB0_6
; %bb.4:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w2, #2
	bl	_sprintf
	add	x0, sp, #8
	mov	w1, #0
	bl	_open
	mov	x20, x0
	tbz	w0, #31, LBB0_6
; %bb.5:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w2, #4
	bl	_sprintf
	add	x0, sp, #8
	mov	w1, #0
	bl	_open
	mov	x20, x0
LBB0_6:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	w2, #0
	bl	_sprintf
	add	x0, sp, #8
	mov	w1, #0
	bl	_open
	mov	x21, x0
	tbz	w0, #31, LBB0_9
; %bb.7:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	w2, #4
	bl	_sprintf
	add	x0, sp, #8
	mov	w1, #0
	bl	_open
	mov	x21, x0
	tbz	w0, #31, LBB0_9
; %bb.8:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	w2, #8
	bl	_sprintf
	add	x0, sp, #8
	mov	w1, #0
	bl	_open
	mov	x21, x0
LBB0_9:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	mov	w2, #0
	bl	_sprintf
	add	x0, sp, #8
	mov	w1, #0
	bl	_open
	and	w8, w20, w19
	and	w8, w8, w21
	tst	w8, w0
	b.lt	LBB0_25
; %bb.10:
	mov	x22, x0
Lloh19:
	adrp	x23, _SERIAL_GETREGISTERED@GOTPAGE
Lloh20:
	ldr	x23, [x23, _SERIAL_GETREGISTERED@GOTPAGEOFF]
	tbnz	w19, #31, LBB0_13
; %bb.11:
	ldr	w1, [x23]
Lloh21:
	adrp	x2, _mask@GOTPAGE
Lloh22:
	ldr	x2, [x2, _mask@GOTPAGEOFF]
	mov	x0, x19
	bl	_ioctl
	tbnz	x0, #63, LBB0_27
; %bb.12:
	mov	x0, x19
	bl	_close
LBB0_13:
Lloh23:
	adrp	x19, _mask@GOTPAGE
Lloh24:
	ldr	x19, [x19, _mask@GOTPAGEOFF]
	tbnz	w20, #31, LBB0_16
; %bb.14:
	ldr	w1, [x23]
	ldr	x8, [x19]
	add	x2, x8, #128
	mov	x0, x20
	bl	_ioctl
	tbnz	x0, #63, LBB0_28
; %bb.15:
	mov	x0, x20
	bl	_close
LBB0_16:
	tbnz	w21, #31, LBB0_19
; %bb.17:
	ldr	w1, [x23]
	ldr	x8, [x19]
	add	x2, x8, #256
	mov	x0, x21
	bl	_ioctl
	tbnz	x0, #63, LBB0_29
; %bb.18:
	mov	x0, x21
	bl	_close
LBB0_19:
	tbnz	w22, #31, LBB0_23
; %bb.20:
	ldr	w1, [x23]
	ldr	x8, [x19]
	add	x2, x8, #384
	mov	x0, x22
	bl	_ioctl
	tbnz	x0, #63, LBB0_30
; %bb.21:
	ldur	x8, [x29, #-56]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.22:
	mov	x0, x22
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_close
LBB0_23:
	ldur	x8, [x29, #-56]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.24:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_25:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	mov	w0, #-1
	bl	_exit
LBB0_26:
	bl	___stack_chk_fail
LBB0_27:
	bl	_get_mask.cold.1
LBB0_28:
	bl	_get_mask.cold.2
LBB0_29:
	bl	_get_mask.cold.3
LBB0_30:
	bl	_get_mask.cold.4
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function get_mask.cold.1
_get_mask.cold.1:                       ; @get_mask.cold.1
	.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
Lloh36:
	adrp	x0, l_.str.5@PAGE
Lloh37:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_perror
	bl	_OUTLINED_FUNCTION_0
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function get_mask.cold.2
_get_mask.cold.2:                       ; @get_mask.cold.2
	.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
Lloh38:
	adrp	x0, l_.str.5@PAGE
Lloh39:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_perror
	bl	_OUTLINED_FUNCTION_0
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function get_mask.cold.3
_get_mask.cold.3:                       ; @get_mask.cold.3
	.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
Lloh40:
	adrp	x0, l_.str.5@PAGE
Lloh41:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_perror
	bl	_OUTLINED_FUNCTION_0
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function get_mask.cold.4
_get_mask.cold.4:                       ; @get_mask.cold.4
	.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
Lloh42:
	adrp	x0, l_.str.5@PAGE
Lloh43:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_perror
	bl	_OUTLINED_FUNCTION_0
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function OUTLINED_FUNCTION_0
_OUTLINED_FUNCTION_0:                   ; @OUTLINED_FUNCTION_0 Thunk
	.cfi_startproc
; %bb.0:
	mov	w0, #-1
	b	_exit
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/cx%d"

l_.str.1:                               ; @.str.1
	.asciz	"/dev/ct%d"

l_.str.2:                               ; @.str.2
	.asciz	"/dev/cp%d"

l_.str.3:                               ; @.str.3
	.asciz	"/dev/ce%d"

	.comm	_stderr,4,2                     ; @stderr
l_.str.4:                               ; @.str.4
	.asciz	"No Cronyx adapters installed\n"

	.comm	_SERIAL_GETREGISTERED,4,2       ; @SERIAL_GETREGISTERED
	.comm	_mask,8,3                       ; @mask
l_.str.5:                               ; @.str.5
	.asciz	"getting list of channels"

	.no_dead_strip	_get_mask
.subsections_via_symbols
