	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drvctl_store
_drvctl_store:                          ## @drvctl_store
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_to_serio_port
	movq	%rax, %r15
	movq	_serio_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock_interruptible
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	movq	_serio_bus@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_driver_find
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_serio_disconnect_port
	movq	%rbx, %rdi
	callq	_to_serio_driver
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_serio_bind_driver
	movl	%eax, %ebx
	movq	_SERIO_RESCAN_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_serio_remove_duplicate_events
	jmp	LBB0_11
LBB0_2:
	movq	%r15, %rdi
	callq	_serio_disconnect_port
	jmp	LBB0_7
LBB0_4:
	movq	%r15, %rdi
	callq	_serio_reconnect_subtree
	jmp	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	callq	_serio_disconnect_port
	movq	%r15, %rdi
	callq	_serio_find_driver
	movq	_SERIO_RESCAN_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_serio_remove_duplicate_events
LBB0_7:
	movq	_serio_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_13:
	movl	%r14d, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	_serio_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.12:
	movl	%ebx, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_serio_mutex,4,2                ## @serio_mutex
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"none"

L_.str.1:                               ## @.str.1
	.asciz	"reconnect"

L_.str.2:                               ## @.str.2
	.asciz	"rescan"

	.comm	_SERIO_RESCAN_PORT,4,2          ## @SERIO_RESCAN_PORT
	.comm	_serio_bus,4,2                  ## @serio_bus
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_drvctl_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drvctl_store
_drvctl_store:                          ; @drvctl_store
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x21, x2
	bl	_to_serio_port
	mov	x20, x0
Lloh0:
	adrp	x0, _serio_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _serio_mutex@GOTPAGEOFF]
	bl	_mutex_lock_interruptible
	cbnz	w0, LBB0_11
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_strncmp
	cbz	w0, LBB0_6
; %bb.2:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_strncmp
	cbz	w0, LBB0_7
; %bb.3:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_strncmp
	cbz	w0, LBB0_8
; %bb.4:
Lloh8:
	adrp	x1, _serio_bus@GOTPAGE
Lloh9:
	ldr	x1, [x1, _serio_bus@GOTPAGEOFF]
	mov	x0, x21
	bl	_driver_find
	cbz	x0, LBB0_12
; %bb.5:
	mov	x21, x0
	mov	x0, x20
	bl	_serio_disconnect_port
	mov	x0, x21
	bl	_to_serio_driver
	mov	x1, x0
	mov	x0, x20
	bl	_serio_bind_driver
	mov	x21, x0
Lloh10:
	adrp	x8, _SERIO_RESCAN_PORT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SERIO_RESCAN_PORT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_serio_remove_duplicate_events
	b	LBB0_13
LBB0_6:
	mov	x0, x20
	bl	_serio_disconnect_port
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_serio_reconnect_subtree
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_serio_disconnect_port
	mov	x0, x20
	bl	_serio_find_driver
Lloh13:
	adrp	x8, _SERIO_RESCAN_PORT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SERIO_RESCAN_PORT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_serio_remove_duplicate_events
LBB0_9:
Lloh16:
	adrp	x0, _serio_mutex@GOTPAGE
Lloh17:
	ldr	x0, [x0, _serio_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_10:
	mov	x0, x19
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
Lloh21:
	adrp	x0, _serio_mutex@GOTPAGE
Lloh22:
	ldr	x0, [x0, _serio_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	cbz	w21, LBB0_10
; %bb.14:
	mov	w19, w21
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_serio_mutex,4,2                ; @serio_mutex
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"none"

l_.str.1:                               ; @.str.1
	.asciz	"reconnect"

l_.str.2:                               ; @.str.2
	.asciz	"rescan"

	.comm	_SERIO_RESCAN_PORT,4,2          ; @SERIO_RESCAN_PORT
	.comm	_serio_bus,4,2                  ; @serio_bus
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_drvctl_store
.subsections_via_symbols
