	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kstack_cleanup
_kstack_cleanup:                        ## @kstack_cleanup
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_17
## %bb.1:
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	_TS_FRAMENUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	incq	%rbx
	movabsq	$8800387990528, %r13            ## imm = 0x80100000400
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r12d
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_17
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %ecx
	cmpl	$43, %ecx
	ja	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	btq	%rcx, %r13
	jae	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %edi
	callq	_kstack_nextstate
	movq	_TS_OFF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	$32, (%r15)
	incq	%r15
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$2, %r14d
	jl	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_TS_FUNC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	$43, (%r15)
	incq	%r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_TS_FUNC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$2, %r14d
	jl	LBB0_4
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_TS_OFF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	jne	LBB0_4
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	%al, (%r15)
	incq	%r15
	jmp	LBB0_4
LBB0_17:
	movb	$0, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TS_FRAMENUM,4,2                ## @TS_FRAMENUM
	.comm	_TS_OFF,4,2                     ## @TS_OFF
	.comm	_TS_FUNC,4,2                    ## @TS_FUNC
	.no_dead_strip	_kstack_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kstack_cleanup
_kstack_cleanup:                        ; @kstack_cleanup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldrb	w8, [x0]
	cbz	w8, LBB0_15
; %bb.1:
	mov	x20, x2
Lloh0:
	adrp	x9, _TS_FRAMENUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TS_FRAMENUM@GOTPAGEOFF]
Lloh2:
	adrp	x22, _TS_FUNC@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TS_FUNC@GOTPAGEOFF]
Lloh4:
	adrp	x23, _TS_OFF@GOTPAGE
Lloh5:
	ldr	x23, [x23, _TS_OFF@GOTPAGEOFF]
	add	x24, x0, #1
Lloh6:
	ldr	w21, [x9]
	mov	w25, #1
	mov	x26, #1024
	movk	x26, #2049, lsl #32
	mov	w27, #32
	mov	w28, #43
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x24], #1
	cbz	w8, LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w9, w8
	cmp	w9, #43
	b.hi	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	x9, x25, x9
	tst	x9, x26
	b.eq	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_kstack_nextstate
	ldr	w8, [x23]
	cmp	w21, w8
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	w27, [x19], #1
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w20, #2
	b.lt	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	cmp	w21, w8
	b.ne	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	strb	w28, [x19], #1
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x22]
	cmp	w21, w9
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w20, #2
	b.lt	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x23]
	cmp	w21, w9
	b.ne	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	w8, [x19], #1
	b	LBB0_3
LBB0_15:
	strb	wzr, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_TS_FRAMENUM,4,2                ; @TS_FRAMENUM
	.comm	_TS_OFF,4,2                     ; @TS_OFF
	.comm	_TS_FUNC,4,2                    ; @TS_FUNC
	.no_dead_strip	_kstack_cleanup
.subsections_via_symbols
