	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_autoconfigure_disconnect ## -- Begin function input_autoconfigure_disconnect
	.p2align	4, 0x90
_input_autoconfigure_disconnect:        ## @input_autoconfigure_disconnect
	.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	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_task_init
	movq	%rax, %r14
	movl	$1, %edi
	movl	$32, %esi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movb	$0, -304(%rbp)
	movl	%r12d, (%rbx)
	movq	_MSG_DEVICE_DISCONNECTED_FROM_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	leaq	L_.str(%rip), %rdx
	leaq	-304(%rbp), %r13
	movq	%r13, %rdi
	movl	$255, %esi
	movq	%rax, %rcx
	movl	%r12d, %r8d
	movq	%r15, %r9
	callq	_snprintf
	movq	%r13, %rdi
	callq	_strdup
	movq	%rax, 8(%rbx)
	movl	(%rbx), %edi
	callq	_input_config_clear_device_name
	movl	(%rbx), %edi
	callq	_input_config_clear_device_display_name
	movl	(%rbx), %edi
	callq	_input_config_clear_device_config_name
	movl	(%rbx), %edi
	callq	_input_config_clear_device_config_path
	movq	%rbx, 24(%r14)
	movq	_input_autoconfigure_disconnect_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r14, %rdi
	callq	_task_queue_push
	movl	$1, %ebx
	jmp	LBB0_9
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.4:
	movq	8(%rbx), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	8(%rbx), %rdi
	callq	_free
LBB0_6:
	movq	%rbx, %rdi
	callq	_free
LBB0_7:
	xorl	%ebx, %ebx
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_free
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s #%u (%s)."

	.comm	_MSG_DEVICE_DISCONNECTED_FROM_PORT,4,2 ## @MSG_DEVICE_DISCONNECTED_FROM_PORT
	.comm	_input_autoconfigure_disconnect_handler,4,2 ## @input_autoconfigure_disconnect_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_autoconfigure_disconnect ; -- Begin function input_autoconfigure_disconnect
	.p2align	2
_input_autoconfigure_disconnect:        ; @input_autoconfigure_disconnect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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 w27, -56
	.cfi_offset w28, -64
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_task_init
	mov	x19, x0
	mov	w0, #1
	mov	w1, #32
	bl	_calloc
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	cbz	x19, LBB0_3
; %bb.2:
	strb	wzr, [sp, #9]
	str	w22, [x20]
Lloh3:
	adrp	x8, _MSG_DEVICE_DISCONNECTED_FROM_PORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEVICE_DISCONNECTED_FROM_PORT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x3, x0
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #9
	mov	w1, #255
	mov	x4, x22
	mov	x5, x21
	bl	_snprintf
	add	x0, sp, #9
	bl	_strdup
	str	x0, [x20, #8]
	ldr	w0, [x20]
	bl	_input_config_clear_device_name
	ldr	w0, [x20]
	bl	_input_config_clear_device_display_name
	ldr	w0, [x20]
	bl	_input_config_clear_device_config_name
	ldr	w0, [x20]
	bl	_input_config_clear_device_config_path
	str	x20, [x19, #24]
Lloh8:
	adrp	x8, _input_autoconfigure_disconnect_handler@GOTPAGE
Lloh9:
	ldr	x8, [x8, _input_autoconfigure_disconnect_handler@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_task_queue_push
	mov	w0, #1
	b	LBB0_10
LBB0_3:
	cbz	x20, LBB0_7
; %bb.4:
	ldr	x0, [x20, #8]
	bl	_string_is_empty
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	x0, [x20, #8]
	bl	_free
LBB0_6:
	mov	x0, x20
	bl	_free
LBB0_7:
	cbz	x19, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_free
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s #%u (%s)."

	.comm	_MSG_DEVICE_DISCONNECTED_FROM_PORT,4,2 ; @MSG_DEVICE_DISCONNECTED_FROM_PORT
	.comm	_input_autoconfigure_disconnect_handler,4,2 ; @input_autoconfigure_disconnect_handler
.subsections_via_symbols
