	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cbor_append
_cbor_append:                           ## @cbor_append
	.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	%r9, %r13
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	leal	2(%r14), %esi
	movq	%rdx, %rdi
	callq	_xo_buf_has_room
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_xo_buf_offset
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movl	%r15d, (%rax)
	movq	_CBOR_ULIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_cbor_encode_uint
	testq	%r13, %r13
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_xo_buf_append
LBB0_3:
	movq	%r12, %rdi
	callq	_xo_get_flags
	movq	_XOF_PRETTY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.5:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	callq	_xo_buf_data
	movq	(%rbx), %rcx
	subq	8(%rbx), %rcx
	sarq	$2, %rcx
	movl	%r15d, %edx
	subq	%rdx, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %r9d
	addl	%r9d, %r9d
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %r8
	movl	%r14d, %edi
	movl	%eax, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cbor_memdump                   ## TAILCALL
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CBOR_ULIMIT,4,2                ## @CBOR_ULIMIT
	.comm	_XOF_PRETTY,4,2                 ## @XOF_PRETTY
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"append"

L_.str.1:                               ## @.str.1
	.space	1

	.no_dead_strip	_cbor_append
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cbor_append
_cbor_append:                           ; @cbor_append
	.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
	mov	x24, x5
	mov	x23, x4
	mov	x25, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	add	w1, w4, #2
	mov	x0, x2
	bl	_xo_buf_has_room
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_xo_buf_offset
	mov	x21, x0
	ldr	x8, [x20]
	str	w25, [x8]
Lloh0:
	adrp	x8, _CBOR_ULIMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CBOR_ULIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x23
	bl	_cbor_encode_uint
	cbz	x24, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	bl	_xo_buf_append
LBB0_3:
	mov	x0, x22
	bl	_xo_get_flags
Lloh3:
	adrp	x8, _XOF_PRETTY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XOF_PRETTY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _stdout@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_xo_buf_data
	mov	x2, x0
	ldp	x8, x9, [x20]
	sub	x8, x8, x9
	asr	x8, x8, #2
	sub	x3, x8, w21, uxtw
	ldr	w8, [x19]
	lsl	w5, w8, #1
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
Lloh11:
	adrp	x4, l_.str.1@PAGE
Lloh12:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x22
	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
	b	_cbor_memdump
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CBOR_ULIMIT,4,2                ; @CBOR_ULIMIT
	.comm	_XOF_PRETTY,4,2                 ; @XOF_PRETTY
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"append"

l_.str.1:                               ; @.str.1
	.space	1

	.no_dead_strip	_cbor_append
.subsections_via_symbols
