	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_in_register                    ## -- Begin function in_register
	.p2align	4, 0x90
_in_register:                           ## @in_register
	.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	$312, %rsp                      ## imm = 0x138
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -312(%rbp)                ## 4-byte Spill
	movq	%r8, -336(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movl	%esi, -316(%rbp)                ## 4-byte Spill
	movq	%rdi, %rsi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$256, %edx                      ## imm = 0x100
	callq	_strncpy
	movb	$0, -60(%rbp)
	movq	%rbx, %rdi
	callq	_strlen
	movq	_in_dev_count@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	jle	LBB0_1
## %bb.2:
	movl	%r13d, -308(%rbp)               ## 4-byte Spill
	movq	%r12, -328(%rbp)                ## 8-byte Spill
	cltq
	addq	%rbp, %rax
	addq	$-304, %rax                     ## imm = 0xFED0
	movq	%rax, -344(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	_in_devices@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdx
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movslq	(%rdx), %rax
	addq	$64, %r14
	cmpq	%rax, %r15
	jge	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdx, %r13
	leaq	-304(%rbp), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	cmpl	$0, 8(%rax,%r14)
	je	LBB0_23
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movq	-344(%rbp), %rdi                ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_sprintf
	jmp	LBB0_7
LBB0_9:
	movq	-328(%rbp), %r12                ## 8-byte Reload
	movl	-308(%rbp), %r13d               ## 4-byte Reload
	jmp	LBB0_10
LBB0_1:
	xorl	%r15d, %r15d
LBB0_10:
	movq	_IN_MAX_DEVS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r15d
	jl	LBB0_17
## %bb.11:
	testl	%eax, %eax
	jle	LBB0_15
## %bb.12:
	movq	_in_devices@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 8(%rdi)
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	addq	$64, %rdi
	cmpq	%r15, %rax
	jne	LBB0_13
LBB0_15:
	leaq	L_.str.1(%rip), %rdi
	leaq	-304(%rbp), %rsi
	xorl	%eax, %eax
	callq	_lprintf
	jmp	LBB0_27
LBB0_16:
	movq	%rdx, %rbx
	callq	_in_free
	movq	%rbx, %rdx
LBB0_17:
	movq	%rdx, %r14
	leaq	-304(%rbp), %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_27
## %bb.18:
	movq	%rax, %rbx
	movq	_in_probe_dev_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_in_alloc_binds
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movq	_in_devices@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rcx
	movl	%r15d, %edx
	shlq	$6, %rdx
	movq	%rbx, (%rcx,%rdx)
	movq	%rsi, %rbx
	movq	(%rsi), %rcx
	movq	%rax, 16(%rcx,%rdx)
	movq	(%rsi), %rax
	movl	%r13d, 24(%rax,%rdx)
	cmpl	(%r14), %r15d
	jl	LBB0_22
## %bb.21:
	leal	1(%r15), %eax
	movl	%eax, (%r14)
LBB0_22:
	leaq	L_.str.2(%rip), %rdi
	leaq	-304(%rbp), %rdx
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_lprintf
	movq	(%rbx), %rax
	jmp	LBB0_24
LBB0_19:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_27
LBB0_23:
	movq	-328(%rbp), %r12                ## 8-byte Reload
	movl	-308(%rbp), %r13d               ## 4-byte Reload
LBB0_24:
	movslq	%r15d, %rbx
	shlq	$6, %rbx
	movl	$1, 8(%rax,%rbx)
	movl	-312(%rbp), %ecx                ## 4-byte Reload
	movl	%ecx, 28(%rax,%rbx)
	movq	_in_probe_dev_id@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, 56(%rax,%rbx)
	movl	-316(%rbp), %edx                ## 4-byte Reload
	movl	%edx, 32(%rax,%rbx)
	movq	-336(%rbp), %rdx                ## 8-byte Reload
	movq	%rdx, 40(%rax,%rbx)
	movq	_in_devices@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%r12, 48(%rax,%rbx)
	movq	(%r14), %rax
	cmpq	$0, 16(%rax,%rbx)
	je	LBB0_27
## %bb.25:
	movl	(%rcx), %edi
	callq	_DRV
	movq	(%r14), %rcx
	movq	16(%rcx,%rbx), %rsi
	movq	_IN_BINDTYPE_COUNT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	%r13d, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx,4), %rdx
	movq	%r12, %rdi
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_27
## %bb.26:
	movq	(%r14), %rax
	movq	16(%rax,%rbx), %rdi
	callq	_free
	movq	(%r14), %rax
	movq	$0, 16(%rax,%rbx)
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	addq	$312, %rsp                      ## imm = 0x138
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_in_dev_count,4,2               ## @in_dev_count
	.comm	_in_devices,8,3                 ## @in_devices
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" [%d]"

	.comm	_IN_MAX_DEVS,4,2                ## @IN_MAX_DEVS
L_.str.1:                               ## @.str.1
	.asciz	"input: too many devices, can't add %s\n"

	.comm	_in_probe_dev_id,4,2            ## @in_probe_dev_id
L_.str.2:                               ## @.str.2
	.asciz	"input: new device #%d \"%s\"\n"

	.comm	_IN_BINDTYPE_COUNT,4,2          ## @IN_BINDTYPE_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_in_register                    ; -- Begin function in_register
	.p2align	2
_in_register:                           ; @in_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #400
	.cfi_def_cfa_offset 400
	stp	x28, x27, [sp, #304]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #320]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #336]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #352]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #368]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #384]            ; 16-byte Folded Spill
	add	x29, sp, #384
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x28, x5
	mov	x26, x4
	mov	x20, x3
	mov	x19, x2
	mov	x23, x1
	mov	x1, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	add	x22, sp, #32
	add	x0, sp, #32
	mov	w2, #256
	bl	_strncpy
	strb	wzr, [sp, #276]
	add	x0, sp, #32
	bl	_strlen
Lloh3:
	adrp	x27, _in_dev_count@GOTPAGE
Lloh4:
	ldr	x27, [x27, _in_dev_count@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	stp	w28, w20, [sp, #24]             ; 8-byte Folded Spill
	mov	x20, x19
	mov	x19, x23
	mov	x23, x26
	mov	x21, #0
	mov	x28, #0
	mov	w24, #0
	add	x25, x22, w0, sxtw
Lloh5:
	adrp	x22, _in_devices@GOTPAGE
Lloh6:
	ldr	x22, [x22, _in_devices@GOTPAGEOFF]
Lloh7:
	adrp	x26, l_.str@PAGE
Lloh8:
	add	x26, x26, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x27]
	add	x21, x21, #64
	cmp	x28, x8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x0, [x8, x21]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #32
	bl	_strcmp
	cbnz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	add	x9, x8, x21
	ldr	w9, [x9, #8]
	cbz	w9, LBB0_22
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	mov	x0, x25
	mov	x1, x26
	mov	x2, x24
	bl	_sprintf
	b	LBB0_2
LBB0_7:
	mov	x25, x28
	mov	x26, x23
	mov	x23, x19
	mov	x19, x20
	ldp	w28, w20, [sp, #24]             ; 8-byte Folded Reload
	b	LBB0_9
LBB0_8:
	mov	w25, #0
LBB0_9:
Lloh9:
	adrp	x8, _IN_MAX_DEVS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IN_MAX_DEVS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w25, w8
	b.lt	LBB0_16
; %bb.10:
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.11:
	mov	x25, #0
Lloh12:
	adrp	x9, _in_devices@GOTPAGE
Lloh13:
	ldr	x9, [x9, _in_devices@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x9]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x0, #8]
	cbz	w9, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x25, x25, #1
	add	x0, x0, #64
	cmp	x8, x25
	b.ne	LBB0_12
LBB0_14:
	add	x8, sp, #32
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_lprintf
	b	LBB0_26
LBB0_15:
	bl	_in_free
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
LBB0_16:
	add	x0, sp, #32
	bl	_strdup
	cbz	x0, LBB0_26
; %bb.17:
	mov	x24, x0
Lloh17:
	adrp	x8, _in_probe_dev_id@GOTPAGE
Lloh18:
	ldr	x8, [x8, _in_probe_dev_id@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_in_alloc_binds
	cbz	x0, LBB0_21
; %bb.18:
Lloh20:
	adrp	x21, _in_devices@GOTPAGE
Lloh21:
	ldr	x21, [x21, _in_devices@GOTPAGEOFF]
	ldr	x8, [x21]
	mov	w9, w25
	lsl	x9, x9, #6
	str	x24, [x8, x9]
	ldr	x8, [x21]
	add	x8, x8, x9
	str	x0, [x8, #16]
	ldr	x8, [x21]
	add	x8, x8, x9
	str	w20, [x8, #24]
	ldr	w8, [x27]
	cmp	w25, w8
	b.lt	LBB0_20
; %bb.19:
	add	w8, w25, #1
	str	w8, [x27]
LBB0_20:
	add	x8, sp, #32
	mov	x9, x25
	stp	x9, x8, [sp]
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_lprintf
	ldr	x8, [x21]
	b	LBB0_23
LBB0_21:
	mov	x0, x24
	bl	_free
	b	LBB0_26
LBB0_22:
	mov	x25, x28
	mov	x26, x23
	mov	x23, x19
	mov	x19, x20
	ldp	w28, w20, [sp, #24]             ; 8-byte Folded Reload
LBB0_23:
	sbfiz	x9, x25, #6, #32
	add	x10, x8, x9
	mov	w8, #1
	str	w8, [x10, #8]
	str	w28, [x10, #28]
Lloh24:
	adrp	x8, _in_probe_dev_id@GOTPAGE
Lloh25:
	ldr	x8, [x8, _in_probe_dev_id@GOTPAGEOFF]
	ldr	w11, [x8]
	str	w11, [x10, #56]
	str	w23, [x10, #32]
	str	x26, [x10, #40]
Lloh26:
	adrp	x21, _in_devices@GOTPAGE
Lloh27:
	ldr	x21, [x21, _in_devices@GOTPAGEOFF]
	ldr	x10, [x21]
	add	x10, x10, x9
	str	x19, [x10, #48]
	ldr	x10, [x21]
	add	x9, x10, x9
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_26
; %bb.24:
	sxtw	x22, w25
	ldr	w0, [x8]
	bl	_DRV
	mov	x8, x0
	ldr	x9, [x21]
	add	x9, x9, x22, lsl #6
	ldr	x1, [x9, #16]
Lloh28:
	adrp	x9, _IN_BINDTYPE_COUNT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IN_BINDTYPE_COUNT@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	mul	w9, w9, w20
	add	x2, x1, w9, sxtw #2
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_26
; %bb.25:
	ldr	x8, [x21]
	lsl	x19, x22, #6
	add	x8, x8, x19
	ldr	x0, [x8, #16]
	bl	_free
	ldr	x8, [x21]
	add	x8, x8, x19
	str	xzr, [x8, #16]
LBB0_26:
	ldur	x8, [x29, #-96]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	ldp	x29, x30, [sp, #384]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #368]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #352]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #336]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #320]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #400
	ret
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_in_dev_count,4,2               ; @in_dev_count
	.comm	_in_devices,8,3                 ; @in_devices
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" [%d]"

	.comm	_IN_MAX_DEVS,4,2                ; @IN_MAX_DEVS
l_.str.1:                               ; @.str.1
	.asciz	"input: too many devices, can't add %s\n"

	.comm	_in_probe_dev_id,4,2            ; @in_probe_dev_id
l_.str.2:                               ; @.str.2
	.asciz	"input: new device #%d \"%s\"\n"

	.comm	_IN_BINDTYPE_COUNT,4,2          ; @IN_BINDTYPE_COUNT
.subsections_via_symbols
