	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_simple_test
_run_simple_test:                       ## @run_simple_test
	.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
	testl	%edi, %edi
	je	LBB0_10
## %bb.1:
	movq	_send_ack@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movl	$0, (%rax)
	movl	$43, %ebx
	jmp	LBB0_27
LBB0_10:
	movq	_ts@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	8(%r15), %rax
	leaq	(%rdx,%rdx,2), %rcx
	movq	(%rax,%rcx,8), %rdi
	cmpb	$0, (%rdi)
	jne	LBB0_14
## %bb.11:
	movq	8(%rax,%rcx,8), %rdi
	cmpb	$0, (%rdi)
	jne	LBB0_14
## %bb.12:
	cmpq	$0, 16(%rax,%rcx,8)
	je	LBB0_13
LBB0_14:
	movq	_put_buf_cnt@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	_BUFMAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jae	LBB0_15
## %bb.17:
	xorl	%ebx, %ebx
	cmpl	$36, %esi
	je	LBB0_19
## %bb.18:
	testq	%rcx, %rcx
	je	LBB0_27
LBB0_19:
	movq	_put_buf@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movb	%sil, (%rdx,%rcx)
	movq	(%r14), %rsi
	leaq	1(%rsi), %rcx
	movq	%rcx, (%r14)
	cmpq	$4, %rcx
	jb	LBB0_27
## %bb.20:
	movq	(%r12), %rdx
	cmpb	$35, -2(%rsi,%rdx)
	jne	LBB0_27
## %bb.21:
	cmpq	(%rax), %rcx
	jae	LBB0_22
## %bb.23:
	movb	$0, (%rdx,%rcx)
	movq	(%r15), %rsi
	movq	(%r12), %rdx
	leaq	L_.str.4(%rip), %rdi
	callq	_v2printk
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:
	movq	(%r12), %rdi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movl	16(%r15), %esi
	movq	(%r15), %rdx
	movq	8(%r15), %rax
	leaq	(%rdx,%rdx,2), %rcx
	movq	8(%rax,%rcx,8), %rcx
	movq	(%r12), %r8
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintk
LBB0_26:
	incq	(%r15)
	movq	$0, (%r14)
	movq	_get_buf_cnt@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_send_ack@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_27
LBB0_3:
	movq	_get_buf_cnt@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	jne	LBB0_7
## %bb.4:
	movq	_ts@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	leaq	(%rcx,%rcx,2), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	16(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	callq	*%rax
	jmp	LBB0_7
LBB0_15:
	movl	16(%r15), %esi
LBB0_16:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_eprintk
	movq	$0, (%r14)
	jmp	LBB0_27
LBB0_6:
	callq	_fill_get_buf
LBB0_7:
	movq	_get_buf@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	(%r14), %rax
	movb	(%rcx,%rax), %cl
	testb	%cl, %cl
	jne	LBB0_9
## %bb.8:
	movq	_ts@GOTPCREL(%rip), %rax
	movl	16(%rax), %esi
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintk
	movq	$0, (%r14)
	leaq	L_.str.1(%rip), %rdi
	callq	_fill_get_buf
	movq	(%rbx), %rcx
	movq	(%r14), %rax
	movb	(%rcx,%rax), %cl
LBB0_9:
	movsbl	%cl, %ebx
	incq	%rax
	movq	%rax, (%r14)
LBB0_27:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	16(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_eprintk
	jmp	LBB0_27
LBB0_22:
	movl	16(%r15), %esi
	movq	(%r15), %rdx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_send_ack,4,2                   ## @send_ack
	.comm	_get_buf_cnt,8,3                ## @get_buf_cnt
	.comm	_ts,32,3                        ## @ts
	.comm	_get_buf,8,3                    ## @get_buf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kgdbts: ERROR GET: EOB on '%s' at %i\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"kgdbts: ERROR: beyond end of test on '%s' line %i\n"

	.comm	_put_buf_cnt,8,3                ## @put_buf_cnt
	.comm	_BUFMAX,8,3                     ## @BUFMAX
L_.str.3:                               ## @.str.3
	.asciz	"kgdbts: ERROR: put buffer overflow on '%s' line %i\n"

	.comm	_put_buf,8,3                    ## @put_buf
L_.str.4:                               ## @.str.4
	.asciz	"put%i: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"kgdbts: ERROR PUT: end of test buffer on '%s' line %i expected %s got %s\n"

	.no_dead_strip	_run_simple_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_simple_test
_run_simple_test:                       ; @run_simple_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _send_ack@GOTPAGE
Lloh1:
	ldr	x8, [x8, _send_ack@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_16
; %bb.2:
	str	wzr, [x8]
	mov	w0, #43
	b	LBB0_26
LBB0_3:
Lloh2:
	adrp	x19, _ts@GOTPAGE
Lloh3:
	ldr	x19, [x19, _ts@GOTPAGEOFF]
	ldp	x2, x8, [x19]
	mov	w9, #24
	mul	x9, x2, x9
	ldr	x9, [x8, x9]
	ldrb	w9, [x9]
	cbnz	w9, LBB0_6
; %bb.4:
	mov	w9, #24
	madd	x9, x2, x9, x8
	ldr	x9, [x9, #8]
	ldrb	w9, [x9]
	cbnz	w9, LBB0_6
; %bb.5:
	mov	w9, #24
	madd	x8, x2, x9, x8
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_27
LBB0_6:
Lloh4:
	adrp	x20, _put_buf_cnt@GOTPAGE
Lloh5:
	ldr	x20, [x20, _put_buf_cnt@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh6:
	adrp	x8, _BUFMAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BUFMAX@GOTPAGEOFF]
	ldr	x10, [x8]
	cmp	x9, x10
	b.hs	LBB0_19
; %bb.7:
	cmp	w1, #36
	b.eq	LBB0_9
; %bb.8:
	cbz	x9, LBB0_21
LBB0_9:
Lloh8:
	adrp	x21, _put_buf@GOTPAGE
Lloh9:
	ldr	x21, [x21, _put_buf@GOTPAGEOFF]
	ldr	x10, [x21]
	strb	w1, [x10, x9]
	ldr	x11, [x20]
	add	x9, x11, #1
	str	x9, [x20]
	cmp	x9, #4
	b.lo	LBB0_21
; %bb.10:
	ldr	x10, [x21]
	add	x11, x11, x10
	ldurb	w11, [x11, #-2]
	cmp	w11, #35
	b.ne	LBB0_21
; %bb.11:
	ldr	x8, [x8]
	cmp	x9, x8
	b.hs	LBB0_28
; %bb.12:
	strb	wzr, [x10, x9]
	ldr	x1, [x19]
	ldr	x2, [x21]
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_v2printk
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_15
; %bb.13:
	ldr	x0, [x21]
	blr	x8
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w1, [x19, #16]
	ldp	x2, x8, [x19]
	mov	w9, #24
	madd	x8, x2, x9, x8
	ldr	x8, [x8, #8]
	ldr	x9, [x21]
	stp	x8, x9, [sp]
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_eprintk
LBB0_15:
	mov	w0, #0
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
Lloh14:
	adrp	x8, _get_buf_cnt@GOTPAGE
Lloh15:
	ldr	x8, [x8, _get_buf_cnt@GOTPAGEOFF]
	str	xzr, [x20]
Lloh16:
	str	xzr, [x8]
Lloh17:
	adrp	x8, _send_ack@GOTPAGE
Lloh18:
	ldr	x8, [x8, _send_ack@GOTPAGEOFF]
	mov	w9, #1
Lloh19:
	str	w9, [x8]
	b	LBB0_26
LBB0_16:
Lloh20:
	adrp	x19, _get_buf_cnt@GOTPAGE
Lloh21:
	ldr	x19, [x19, _get_buf_cnt@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_23
; %bb.17:
Lloh22:
	adrp	x8, _ts@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ts@GOTPAGEOFF]
	ldp	x8, x9, [x8]
	mov	w10, #24
	madd	x9, x8, x10, x9
	ldr	x8, [x9, #16]
	ldr	x0, [x9]
	cbz	x8, LBB0_22
; %bb.18:
	blr	x8
	b	LBB0_23
LBB0_19:
	ldr	w1, [x19, #16]
LBB0_20:
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_eprintk
	mov	w0, #0
	str	xzr, [x20]
	b	LBB0_26
LBB0_21:
	mov	w0, #0
	b	LBB0_26
LBB0_22:
	bl	_fill_get_buf
LBB0_23:
Lloh26:
	adrp	x20, _get_buf@GOTPAGE
Lloh27:
	ldr	x20, [x20, _get_buf@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	x8, [x19]
	ldrb	w9, [x9, x8]
	cbnz	w9, LBB0_25
; %bb.24:
Lloh28:
	adrp	x8, _ts@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ts@GOTPAGEOFF]
	ldr	w1, [x8, #16]
	ldr	x2, [x8]
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	bl	_eprintk
	str	xzr, [x19]
Lloh32:
	adrp	x0, l_.str.1@PAGE
Lloh33:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fill_get_buf
	ldr	x9, [x20]
	ldr	x8, [x19]
	ldrb	w9, [x9, x8]
LBB0_25:
	sxtb	w0, w9
	add	x8, x8, #1
	str	x8, [x19]
LBB0_26:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_27:
	ldr	w1, [x19, #16]
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_eprintk
	mov	w0, #0
	b	LBB0_26
LBB0_28:
	ldr	w1, [x19, #16]
	ldr	x2, [x19]
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_send_ack,4,2                   ; @send_ack
	.comm	_get_buf_cnt,8,3                ; @get_buf_cnt
	.comm	_ts,32,3                        ; @ts
	.comm	_get_buf,8,3                    ; @get_buf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kgdbts: ERROR GET: EOB on '%s' at %i\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"kgdbts: ERROR: beyond end of test on '%s' line %i\n"

	.comm	_put_buf_cnt,8,3                ; @put_buf_cnt
	.comm	_BUFMAX,8,3                     ; @BUFMAX
l_.str.3:                               ; @.str.3
	.asciz	"kgdbts: ERROR: put buffer overflow on '%s' line %i\n"

	.comm	_put_buf,8,3                    ; @put_buf
l_.str.4:                               ; @.str.4
	.asciz	"put%i: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"kgdbts: ERROR PUT: end of test buffer on '%s' line %i expected %s got %s\n"

	.no_dead_strip	_run_simple_test
.subsections_via_symbols
