	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_one_int
_test_one_int:                          ## @test_one_int
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -28(%rbp)
	callq	__heim_len_int
	movq	%rax, %rbx
	leaq	2(%rax), %rdi
	callq	_emalloc
	movq	%rax, %r14
	movb	$-1, (%rax)
	movb	$-1, 1(%rbx,%rax)
	leaq	1(%rax), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_memset
	leaq	(%r14,%rbx), %rdi
	incq	%rdi
	decq	%rdi
	leaq	-28(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rsi
	callq	_der_put_integer
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	-28(%rbp), %esi
	leaq	L_.str(%rip), %rdi
LBB0_2:
	movl	%eax, %edx
LBB0_3:
	xorl	%eax, %eax
	callq	_printf
LBB0_4:
	movl	$1, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-40(%rbp), %r8
	cmpq	%r8, %rbx
	jne	LBB0_9
## %bb.7:
	leaq	-44(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_der_get_integer
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	-28(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_9:
	movl	-28(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_4
LBB0_10:
	movq	-40(%rbp), %rcx
	movl	-28(%rbp), %esi
	cmpq	%rcx, %rbx
	jne	LBB0_14
## %bb.11:
	movl	-44(%rbp), %edx
	cmpl	%edx, %esi
	jne	LBB0_15
## %bb.12:
	cmpb	$-1, (%r14)
	je	LBB0_16
## %bb.13:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_18
LBB0_14:
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_4
LBB0_15:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_3
LBB0_16:
	cmpb	$-1, 1(%r14,%rbx)
	je	LBB0_19
## %bb.17:
	leaq	L_.str.6(%rip), %rdi
LBB0_18:
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_4
LBB0_19:
	movq	%r14, %rdi
	callq	_free
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"integer %d encode failed %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"integer %d encode fail with %d len %lu, result len %lu\n"

L_.str.2:                               ## @.str.2
	.asciz	"integer %d decode failed %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"integer %d decoded diffrent len %lu != %lu"

L_.str.4:                               ## @.str.4
	.asciz	"decode decoded to diffrent value %d != %d"

L_.str.5:                               ## @.str.5
	.asciz	"precanary dead %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"postecanary dead %d\n"

	.no_dead_strip	_test_one_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_one_int
_test_one_int:                          ; @test_one_int
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	stur	w0, [x29, #-36]
	bl	__heim_len_int
	mov	x20, x0
	add	x0, x0, #2
	bl	_emalloc
	mov	x19, x0
	mov	w8, #255
	strb	w8, [x0]
	add	x22, x20, #1
	strb	w8, [x0, x22]
	add	x21, x0, #1
	mov	x0, x21
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	add	x8, x21, x20
	sub	x0, x8, #1
	sub	x2, x29, #36
	add	x3, sp, #32
	mov	x1, x20
	bl	_der_put_integer
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_2
; %bb.1:
	ldur	w1, [x29, #-36]
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	ldr	x8, [sp, #32]
	cmp	x20, x8
	b.ne	LBB0_5
; %bb.3:
	add	x2, sp, #40
	add	x3, sp, #32
	mov	x0, x21
	mov	x1, x20
	bl	_der_get_integer
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_8
; %bb.4:
	ldur	w1, [x29, #-36]
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldur	w1, [x29, #-36]
	stp	x20, x8, [sp, #8]
	str	xzr, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_printf
	mov	w0, #1
LBB0_7:
	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
	add	sp, sp, #96
	ret
LBB0_8:
	ldr	x8, [sp, #32]
	ldur	w1, [x29, #-36]
	cmp	x20, x8
	b.ne	LBB0_12
; %bb.9:
	ldr	w8, [sp, #40]
	cmp	w1, w8
	b.ne	LBB0_13
; %bb.10:
	ldrb	w8, [x19]
	cmp	w8, #255
	b.eq	LBB0_14
; %bb.11:
Lloh6:
	adrp	x0, l_.str.5@PAGE
Lloh7:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_6
LBB0_12:
	stp	x20, x8, [sp]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_13:
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_14:
	ldrb	w8, [x19, x22]
	cmp	w8, #255
	b.eq	LBB0_16
; %bb.15:
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_6
LBB0_16:
	mov	x0, x19
	bl	_free
	mov	w0, #0
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"integer %d encode failed %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"integer %d encode fail with %d len %lu, result len %lu\n"

l_.str.2:                               ; @.str.2
	.asciz	"integer %d decode failed %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"integer %d decoded diffrent len %lu != %lu"

l_.str.4:                               ; @.str.4
	.asciz	"decode decoded to diffrent value %d != %d"

l_.str.5:                               ; @.str.5
	.asciz	"precanary dead %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"postecanary dead %d\n"

	.no_dead_strip	_test_one_int
.subsections_via_symbols
