	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_checkptr                       ## -- Begin function checkptr
	.p2align	4, 0x90
_checkptr:                              ## @checkptr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LINESIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	_g_testdesc@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r14), %esi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movq	_g_total@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%r14, %rbx
	movl	(%r14), %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	cmpq	%r15, %r14
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_snprintf
	movl	%eax, %r12d
	movq	_g_pass@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_snprintf
	movl	%eax, %r12d
	movq	_g_errbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_snprintf
	movq	_g_fail@GOTPCREL(%rip), %rax
LBB0_3:
	incl	(%rax)
	movslq	%r12d, %rax
	movq	%r13, %rdi
	addq	%rax, %rdi
	movl	(%rbx), %esi
	subl	%eax, %esi
	movq	_g_total@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_g_funcname@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_g_testdesc@GOTPCREL(%rip), %r12
	movq	(%r12), %r9
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movq	%r13, %rdi
	callq	_printf
	cmpq	%r15, %r14
	je	LBB0_5
## %bb.4:
	movq	_g_errbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_printf
LBB0_5:
	movl	$10, %edi
	callq	_putchar
	xorl	%edi, %edi
	callq	_fflush
	movq	_g_errbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%rbx), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	(%r12), %rdi
	movl	(%rbx), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LINESIZE,4,2                   ## @LINESIZE
	.comm	_g_testdesc,8,3                 ## @g_testdesc
	.comm	_g_total,4,2                    ## @g_total
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ok"

	.comm	_g_pass,4,2                     ## @g_pass
L_.str.1:                               ## @.str.1
	.asciz	"not ok"

	.comm	_g_errbuf,8,3                   ## @g_errbuf
L_.str.2:                               ## @.str.2
	.asciz	" : Expected %#x, but got %#x"

	.comm	_g_fail,4,2                     ## @g_fail
L_.str.3:                               ## @.str.3
	.asciz	" %d - %s (%s)"

	.comm	_g_funcname,8,3                 ## @g_funcname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_checkptr                       ; -- Begin function checkptr
	.p2align	2
_checkptr:                              ; @checkptr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x23, _LINESIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _LINESIZE@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x9, x2
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	mov	x0, x21
	mov	w1, #0
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memset
Lloh7:
	adrp	x24, _g_testdesc@GOTPAGE
Lloh8:
	ldr	x24, [x24, _g_testdesc@GOTPAGEOFF]
	ldr	x0, [x24]
	ldr	w1, [x23]
	mov	x2, x22
	bl	_snprintf
Lloh9:
	adrp	x26, _g_total@GOTPAGE
Lloh10:
	ldr	x26, [x26, _g_total@GOTPAGEOFF]
	ldr	w8, [x26]
	add	w8, w8, #1
	str	w8, [x26]
	ldr	w1, [x23]
Lloh11:
	adrp	x25, _g_errbuf@GOTPAGE
Lloh12:
	ldr	x25, [x25, _g_errbuf@GOTPAGEOFF]
	cmp	x19, x20
	b.ne	LBB0_2
; %bb.1:
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_snprintf
	mov	x22, x0
Lloh15:
	adrp	x8, _g_pass@GOTPAGE
Lloh16:
	ldr	x8, [x8, _g_pass@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_snprintf
	mov	x22, x0
	ldr	x0, [x25]
	ldr	w1, [x23]
	stp	x20, x19, [sp, #-16]!
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_snprintf
	add	sp, sp, #16
Lloh21:
	adrp	x8, _g_fail@GOTPAGE
Lloh22:
	ldr	x8, [x8, _g_fail@GOTPAGEOFF]
LBB0_3:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	add	x0, x21, w22, sxtw
	ldr	w8, [x23]
	sub	w1, w8, w22
Lloh23:
	adrp	x8, _g_funcname@GOTPAGE
Lloh24:
	ldr	x8, [x8, _g_funcname@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	x9, [x24]
	ldr	w10, [x26]
	sub	sp, sp, #32
	stp	x8, x9, [sp, #8]
	str	x10, [sp]
Lloh26:
	adrp	x2, l_.str.3@PAGE
Lloh27:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_snprintf
	add	sp, sp, #32
	mov	x0, x21
	bl	_printf
	cmp	x19, x20
	b.eq	LBB0_5
; %bb.4:
	ldr	x0, [x25]
	bl	_printf
LBB0_5:
	mov	w0, #10
	bl	_putchar
	mov	x0, #0
	bl	_fflush
	ldr	x0, [x25]
	ldr	w2, [x23]
	mov	w1, #0
	bl	_memset
	ldr	x0, [x24]
	ldr	w2, [x23]
	mov	w1, #0
	bl	_memset
	ldur	x8, [x29, #-72]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_LINESIZE,4,2                   ; @LINESIZE
	.comm	_g_testdesc,8,3                 ; @g_testdesc
	.comm	_g_total,4,2                    ; @g_total
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ok"

	.comm	_g_pass,4,2                     ; @g_pass
l_.str.1:                               ; @.str.1
	.asciz	"not ok"

	.comm	_g_errbuf,8,3                   ; @g_errbuf
l_.str.2:                               ; @.str.2
	.asciz	" : Expected %#x, but got %#x"

	.comm	_g_fail,4,2                     ; @g_fail
l_.str.3:                               ; @.str.3
	.asciz	" %d - %s (%s)"

	.comm	_g_funcname,8,3                 ; @g_funcname
.subsections_via_symbols
