	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_core_exit                   ## -- Begin function st_core_exit
	.p2align	4, 0x90
_st_core_exit:                          ## @st_core_exit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_st_ll_deinit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_pr_err
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.3:
	leaq	12(%rbx), %rdi
	callq	_skb_queue_purge
	leaq	8(%rbx), %rdi
	callq	_skb_queue_purge
	movl	4(%rbx), %edi
	callq	_kfree_skb
	movl	(%rbx), %edi
	callq	_kfree_skb
	movq	_N_TI_WL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tty_unregister_ldisc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_pr_err
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error during deinit of ST LL %ld"

	.comm	_N_TI_WL,4,2                    ## @N_TI_WL
L_.str.1:                               ## @.str.1
	.asciz	"unable to un-register ldisc %ld"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_core_exit                   ; -- Begin function st_core_exit
	.p2align	2
_st_core_exit:                          ; @st_core_exit
	.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
	bl	_st_ll_deinit
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_2:
	cbz	x19, LBB0_6
; %bb.3:
	add	x0, x19, #12
	bl	_skb_queue_purge
	add	x0, x19, #8
	bl	_skb_queue_purge
	ldr	w0, [x19, #4]
	bl	_kfree_skb
	ldr	w0, [x19]
	bl	_kfree_skb
Lloh2:
	adrp	x8, _N_TI_WL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _N_TI_WL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_tty_unregister_ldisc
	cbz	x0, LBB0_5
; %bb.4:
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error during deinit of ST LL %ld"

	.comm	_N_TI_WL,4,2                    ; @N_TI_WL
l_.str.1:                               ; @.str.1
	.asciz	"unable to un-register ldisc %ld"

.subsections_via_symbols
