	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unplug_port
_unplug_port:                           ## @unplug_port
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rdi
	callq	_spin_lock_irq
	leaq	56(%rbx), %rdi
	callq	_list_del
	movq	32(%rbx), %rdi
	callq	_spin_unlock_irq
	leaq	48(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_send_sigio_to_port
	movq	$0, (%rbx)
	leaq	52(%rbx), %rdi
	callq	_wake_up_interruptible
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movq	%rbx, %rdi
	callq	_is_console_port
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_pdrvdata_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	leaq	44(%rbx), %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movl	40(%rbx), %edi
	callq	_hvc_remove
LBB0_4:
	movq	%rbx, %rdi
	callq	_remove_port_data
	movq	$0, 32(%rbx)
	movq	24(%rbx), %rdi
	addq	$4, %rdi
	movq	_port_attribute_group@GOTPCREL(%rip), %rsi
	callq	_sysfs_remove_group
	movq	_pdrvdata@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	callq	_device_destroy
	movl	20(%rbx), %edi
	callq	_cdev_del
	movl	16(%rbx), %edi
	callq	_debugfs_remove
	movl	12(%rbx), %edi
	callq	_kfree
	addq	$8, %rbx
	movq	_remove_port@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kref_put                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pdrvdata_lock,4,2              ## @pdrvdata_lock
	.comm	_port_attribute_group,4,2       ## @port_attribute_group
	.comm	_pdrvdata,4,2                   ## @pdrvdata
	.comm	_remove_port,4,2                ## @remove_port
	.no_dead_strip	_unplug_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unplug_port
_unplug_port:                           ; @unplug_port
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #32]
	bl	_spin_lock_irq
	add	x0, x19, #56
	bl	_list_del
	ldr	x0, [x19, #32]
	bl	_spin_unlock_irq
	add	x20, x19, #48
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_send_sigio_to_port
	str	xzr, [x19]
	add	x0, x19, #52
	bl	_wake_up_interruptible
LBB0_2:
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_is_console_port
	cbz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x20, _pdrvdata_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pdrvdata_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock_irq
	add	x0, x19, #44
	bl	_list_del
	mov	x0, x20
	bl	_spin_unlock_irq
	ldr	w0, [x19, #40]
	bl	_hvc_remove
LBB0_4:
	mov	x0, x19
	bl	_remove_port_data
	str	xzr, [x19, #32]
	ldr	x8, [x19, #24]
	add	x0, x8, #4
Lloh2:
	adrp	x1, _port_attribute_group@GOTPAGE
Lloh3:
	ldr	x1, [x1, _port_attribute_group@GOTPAGEOFF]
	bl	_sysfs_remove_group
Lloh4:
	adrp	x8, _pdrvdata@GOTPAGE
Lloh5:
	ldr	x8, [x8, _pdrvdata@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
	bl	_device_destroy
	ldr	w0, [x19, #20]
	bl	_cdev_del
	ldr	w0, [x19, #16]
	bl	_debugfs_remove
	ldr	w0, [x19, #12]
	bl	_kfree
	add	x0, x19, #8
Lloh7:
	adrp	x8, _remove_port@GOTPAGE
Lloh8:
	ldr	x8, [x8, _remove_port@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kref_put
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_pdrvdata_lock,4,2              ; @pdrvdata_lock
	.comm	_port_attribute_group,4,2       ; @port_attribute_group
	.comm	_pdrvdata,4,2                   ; @pdrvdata
	.comm	_remove_port,4,2                ; @remove_port
	.no_dead_strip	_unplug_port
.subsections_via_symbols
