	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_kim_stop                    ## -- Begin function st_kim_stop
	.p2align	4, 0x90
_st_kim_stop:                           ## @st_kim_stop
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	24(%rdi), %rcx
	movq	8(%rax), %r12
	movq	(%rcx), %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_reinit_completion
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_tty_ldisc_flush
	movq	%rbx, %rdi
	callq	_tty_driver_flush_buffer
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	$0, 16(%r15)
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rdx
	xorl	%esi, %esi
	callq	_sysfs_notify
	movq	_LDISC_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_interruptible_timeout
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
LBB0_4:
	movl	(%r15), %edi
	movq	_GPIO_LOW@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_gpio_set_value_cansleep
	movl	$1, %edi
	callq	_mdelay
	movl	(%r15), %edi
	movq	_GPIO_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_gpio_set_value_cansleep
	movl	$1, %edi
	callq	_mdelay
	movl	(%r15), %edi
	movl	(%rbx), %esi
	callq	_gpio_set_value_cansleep
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	*%rax
LBB0_6:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ldisc_install = 0"

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

	.comm	_LDISC_TIME,4,2                 ## @LDISC_TIME
L_.str.2:                               ## @.str.2
	.asciz	" timed out waiting for ldisc to be un-installed"

	.comm	_ETIMEDOUT,8,3                  ## @ETIMEDOUT
	.comm	_GPIO_LOW,4,2                   ## @GPIO_LOW
	.comm	_GPIO_HIGH,4,2                  ## @GPIO_HIGH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_kim_stop                    ; -- Begin function st_kim_stop
	.p2align	2
_st_kim_stop:                           ; @st_kim_stop
	.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
	ldr	x8, [x0, #8]
	ldr	x22, [x8, #8]
	ldr	x8, [x0, #24]
	ldr	x21, [x8]
	add	x20, x0, #4
	mov	x0, x20
	bl	_reinit_completion
	cbz	x21, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_tty_ldisc_flush
	mov	x0, x21
	bl	_tty_driver_flush_buffer
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	str	xzr, [x19, #16]
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, #0
	bl	_sysfs_notify
Lloh4:
	adrp	x8, _LDISC_TIME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LDISC_TIME@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x20
	bl	_wait_for_completion_interruptible_timeout
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
Lloh9:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	neg	x20, x8
LBB0_4:
	ldr	w0, [x19]
Lloh12:
	adrp	x21, _GPIO_LOW@GOTPAGE
Lloh13:
	ldr	x21, [x21, _GPIO_LOW@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_gpio_set_value_cansleep
	mov	w0, #1
	bl	_mdelay
	ldr	w0, [x19]
Lloh14:
	adrp	x8, _GPIO_HIGH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GPIO_HIGH@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_gpio_set_value_cansleep
	mov	w0, #1
	bl	_mdelay
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_gpio_set_value_cansleep
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	blr	x8
LBB0_6:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ldisc_install = 0"

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

	.comm	_LDISC_TIME,4,2                 ; @LDISC_TIME
l_.str.2:                               ; @.str.2
	.asciz	" timed out waiting for ldisc to be un-installed"

	.comm	_ETIMEDOUT,8,3                  ; @ETIMEDOUT
	.comm	_GPIO_LOW,4,2                   ; @GPIO_LOW
	.comm	_GPIO_HIGH,4,2                  ; @GPIO_HIGH
.subsections_via_symbols
