	.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_23
LBB0_10:
	movq	_ts@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movq	8(%r14), %rax
	leaq	(%rdx,%rdx,2), %rcx
	movq	(%rax,%rcx,8), %rdi
	cmpb	$0, (%rdi)
	jne	LBB0_13
## %bb.11:
	movq	8(%rax,%rcx,8), %rax
	cmpb	$0, (%rax)
	je	LBB0_12
LBB0_13:
	movq	_put_buf_cnt@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_BUFMAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_14
## %bb.15:
	xorl	%ebx, %ebx
	cmpl	$36, %esi
	je	LBB0_17
## %bb.16:
	testq	%rax, %rax
	je	LBB0_23
LBB0_17:
	movq	_put_buf@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movb	%sil, (%rcx,%rax)
	movq	(%r15), %rcx
	leaq	1(%rcx), %rax
	movq	%rax, (%r15)
	cmpq	$4, %rax
	jb	LBB0_23
## %bb.18:
	movq	(%r12), %rdx
	cmpb	$35, -2(%rcx,%rdx)
	jne	LBB0_23
## %bb.19:
	movb	$0, (%rdx,%rax)
	movq	(%r14), %rsi
	movq	(%r12), %rdx
	leaq	L_.str.4(%rip), %rdi
	callq	_v2printk
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:
	movq	(%r12), %rdi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movl	16(%r14), %esi
	movq	(%r14), %rdx
	movq	8(%r14), %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_22:
	incq	(%r14)
	movq	$0, (%r15)
	movq	_get_buf_cnt@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_send_ack@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_23
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_14:
	movl	16(%r14), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_eprintk
	movq	$0, (%r15)
	jmp	LBB0_23
LBB0_12:
	movl	16(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_eprintk
	jmp	LBB0_23
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_23:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_14
; %bb.2:
	str	wzr, [x8]
	mov	w0, #43
	b	LBB0_24
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_5
; %bb.4:
	mov	w9, #24
	madd	x8, x2, x9, x8
	ldr	x8, [x8, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_19
LBB0_5:
Lloh4:
	adrp	x20, _put_buf_cnt@GOTPAGE
Lloh5:
	ldr	x20, [x20, _put_buf_cnt@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _BUFMAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BUFMAX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_17
; %bb.6:
	cmp	w1, #36
	b.eq	LBB0_8
; %bb.7:
	cbz	x8, LBB0_18
LBB0_8:
Lloh9:
	adrp	x21, _put_buf@GOTPAGE
Lloh10:
	ldr	x21, [x21, _put_buf@GOTPAGEOFF]
	ldr	x9, [x21]
	strb	w1, [x9, x8]
	ldr	x10, [x20]
	add	x8, x10, #1
	str	x8, [x20]
	cmp	x8, #4
	b.lo	LBB0_18
; %bb.9:
	ldr	x9, [x21]
	add	x10, x10, x9
	ldurb	w10, [x10, #-2]
	cmp	w10, #35
	b.ne	LBB0_18
; %bb.10:
	strb	wzr, [x9, x8]
	ldr	x1, [x19]
	ldr	x2, [x21]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_v2printk
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_13
; %bb.11:
	ldr	x0, [x21]
	blr	x8
	cbz	x0, LBB0_13
; %bb.12:
	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]
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_eprintk
LBB0_13:
	mov	w0, #0
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
Lloh15:
	adrp	x8, _get_buf_cnt@GOTPAGE
Lloh16:
	ldr	x8, [x8, _get_buf_cnt@GOTPAGEOFF]
	str	xzr, [x20]
Lloh17:
	str	xzr, [x8]
Lloh18:
	adrp	x8, _send_ack@GOTPAGE
Lloh19:
	ldr	x8, [x8, _send_ack@GOTPAGEOFF]
	mov	w9, #1
Lloh20:
	str	w9, [x8]
	b	LBB0_24
LBB0_14:
Lloh21:
	adrp	x19, _get_buf_cnt@GOTPAGE
Lloh22:
	ldr	x19, [x19, _get_buf_cnt@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_21
; %bb.15:
Lloh23:
	adrp	x8, _ts@GOTPAGE
Lloh24:
	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_20
; %bb.16:
	blr	x8
	b	LBB0_21
LBB0_17:
	ldr	w1, [x19, #16]
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_eprintk
	mov	w0, #0
	str	xzr, [x20]
	b	LBB0_24
LBB0_18:
	mov	w0, #0
	b	LBB0_24
LBB0_19:
	ldr	w1, [x19, #16]
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_eprintk
	mov	w0, #0
	b	LBB0_24
LBB0_20:
	bl	_fill_get_buf
LBB0_21:
Lloh29:
	adrp	x20, _get_buf@GOTPAGE
Lloh30:
	ldr	x20, [x20, _get_buf@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	x8, [x19]
	ldrb	w9, [x9, x8]
	cbnz	w9, LBB0_23
; %bb.22:
Lloh31:
	adrp	x8, _ts@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ts@GOTPAGEOFF]
	ldr	w1, [x8, #16]
	ldr	x2, [x8]
Lloh33:
	adrp	x0, l_.str@PAGE
Lloh34:
	add	x0, x0, l_.str@PAGEOFF
	bl	_eprintk
	str	xzr, [x19]
Lloh35:
	adrp	x0, l_.str.1@PAGE
Lloh36:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fill_get_buf
	ldr	x9, [x20]
	ldr	x8, [x19]
	ldrb	w9, [x9, x8]
LBB0_23:
	sxtb	w0, w9
	add	x8, x8, #1
	str	x8, [x19]
LBB0_24:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.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
