	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serio_raw_disconnect
_serio_raw_disconnect:                  ## @serio_raw_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_serio_get_drvdata
	movq	%rax, %rbx
	leaq	12(%rax), %rdi
	callq	_misc_deregister
	movq	_serio_raw_mutex@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	$1, (%rbx)
	leaq	8(%rbx), %rdi
	callq	_list_del_init
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_serio_raw_hangup
	movq	%r14, %rdi
	callq	_serio_close
	addq	$4, %rbx
	movq	_serio_raw_free@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kref_put
	movq	%r14, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_serio_set_drvdata              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_serio_raw_mutex,4,2            ## @serio_raw_mutex
	.comm	_serio_raw_free,4,2             ## @serio_raw_free
	.no_dead_strip	_serio_raw_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serio_raw_disconnect
_serio_raw_disconnect:                  ; @serio_raw_disconnect
	.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, x0
	bl	_serio_get_drvdata
	mov	x20, x0
	add	x0, x0, #12
	bl	_misc_deregister
Lloh0:
	adrp	x21, _serio_raw_mutex@GOTPAGE
Lloh1:
	ldr	x21, [x21, _serio_raw_mutex@GOTPAGEOFF]
	mov	x0, x21
	bl	_mutex_lock
	mov	w8, #1
	mov	x22, x20
	str	w8, [x22], #4
	add	x0, x20, #8
	bl	_list_del_init
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x20
	bl	_serio_raw_hangup
	mov	x0, x19
	bl	_serio_close
Lloh2:
	adrp	x8, _serio_raw_free@GOTPAGE
Lloh3:
	ldr	x8, [x8, _serio_raw_free@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_kref_put
	mov	x0, x19
	mov	x1, #0
	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
	b	_serio_set_drvdata
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_serio_raw_mutex,4,2            ; @serio_raw_mutex
	.comm	_serio_raw_free,4,2             ; @serio_raw_free
	.no_dead_strip	_serio_raw_disconnect
.subsections_via_symbols
