	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cbor_encode_uint
_cbor_encode_uint:                      ## @cbor_encode_uint
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	cmpq	%rcx, %rsi
	jbe	LBB0_2
## %bb.1:
	movl	$56, %r8d
	movq	_CBOR_LEN64@GOTPCREL(%rip), %rcx
	xorl	%r9d, %r9d
	jmp	LBB0_8
LBB0_2:
	cmpq	$65536, %rsi                    ## imm = 0x10000
	jbe	LBB0_4
## %bb.3:
	movl	$24, %r8d
	movq	_CBOR_LEN32@GOTPCREL(%rip), %rcx
	xorl	%r9d, %r9d
	jmp	LBB0_8
LBB0_4:
	xorl	%r8d, %r8d
	cmpq	$256, %rsi                      ## imm = 0x100
	jbe	LBB0_6
## %bb.5:
	movl	$8, %r8d
	movq	_CBOR_LEN16@GOTPCREL(%rip), %rcx
	xorl	%r9d, %r9d
	jmp	LBB0_8
LBB0_6:
	movl	%edx, %ecx
	cmpq	%rsi, %rcx
	jae	LBB0_24
## %bb.7:
	movb	$1, %r9b
	movq	_CBOR_LEN8@GOTPCREL(%rip), %rcx
LBB0_8:
	movb	(%rcx), %cl
	orb	%cl, (%rax)
	movq	%rsi, %rdx
	movl	%r8d, %ecx
	shrq	%cl, %rdx
	movb	%dl, 1(%rax)
	testb	%r9b, %r9b
	je	LBB0_10
## %bb.9:
	addq	$2, %rax
	jmp	LBB0_23
LBB0_10:
	leal	-8(%r8), %ecx
	movq	%rsi, %rdx
	shrq	%cl, %rdx
	movb	%dl, 2(%rax)
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.12:
	leal	-16(%r8), %ecx
	movq	%rsi, %rdx
	shrq	%cl, %rdx
	movb	%dl, 3(%rax)
	testl	%ecx, %ecx
	je	LBB0_13
## %bb.14:
	leal	-24(%r8), %ecx
	movq	%rsi, %rdx
	shrq	%cl, %rdx
	movb	%dl, 4(%rax)
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.16:
	leal	-32(%r8), %ecx
	movq	%rsi, %rdx
	shrq	%cl, %rdx
	movb	%dl, 5(%rax)
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.18:
	leal	-40(%r8), %ecx
	movq	%rsi, %rdx
	shrq	%cl, %rdx
	movb	%dl, 6(%rax)
	testl	%ecx, %ecx
	je	LBB0_19
## %bb.20:
	leal	-48(%r8), %ecx
	movq	%rsi, %rdx
	shrq	%cl, %rdx
	movb	%dl, 7(%rax)
	testl	%ecx, %ecx
	je	LBB0_21
## %bb.22:
	addb	$-56, %r8b
	movl	%r8d, %ecx
	shrq	%cl, %rsi
	movb	%sil, 8(%rax)
	addq	$9, %rax
	jmp	LBB0_23
LBB0_11:
	addq	$3, %rax
	jmp	LBB0_23
LBB0_13:
	addq	$4, %rax
	jmp	LBB0_23
LBB0_15:
	addq	$5, %rax
	jmp	LBB0_23
LBB0_24:
	movq	_CBOR_MINOR_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	orb	%sil, (%rax)
	incq	%rax
	jmp	LBB0_23
LBB0_17:
	addq	$6, %rax
	jmp	LBB0_23
LBB0_19:
	addq	$7, %rax
	jmp	LBB0_23
LBB0_21:
	addq	$8, %rax
LBB0_23:
	movq	%rax, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CBOR_LEN64,4,2                 ## @CBOR_LEN64
	.comm	_CBOR_LEN32,4,2                 ## @CBOR_LEN32
	.comm	_CBOR_LEN16,4,2                 ## @CBOR_LEN16
	.comm	_CBOR_LEN8,4,2                  ## @CBOR_LEN8
	.comm	_CBOR_MINOR_MASK,8,3            ## @CBOR_MINOR_MASK
	.no_dead_strip	_cbor_encode_uint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cbor_encode_uint
_cbor_encode_uint:                      ; @cbor_encode_uint
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	mov	x9, #4294967296
	cmp	x1, x9
	b.ls	LBB0_2
; %bb.1:
	mov	w10, #0
	mov	w9, #56
Lloh0:
	adrp	x11, _CBOR_LEN64@GOTPAGE
Lloh1:
	ldr	x11, [x11, _CBOR_LEN64@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	cmp	x1, #16, lsl #12                ; =65536
	b.ls	LBB0_4
; %bb.3:
	mov	w10, #0
	mov	w9, #24
Lloh2:
	adrp	x11, _CBOR_LEN32@GOTPAGE
Lloh3:
	ldr	x11, [x11, _CBOR_LEN32@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	cmp	x1, #256
	b.ls	LBB0_6
; %bb.5:
	mov	w10, #0
	mov	w9, #8
Lloh4:
	adrp	x11, _CBOR_LEN16@GOTPAGE
Lloh5:
	ldr	x11, [x11, _CBOR_LEN16@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	w9, w2
	cmp	x9, x1
	b.hs	LBB0_20
; %bb.7:
	mov	w9, #0
	mov	w10, #1
Lloh6:
	adrp	x11, _CBOR_LEN8@GOTPAGE
Lloh7:
	ldr	x11, [x11, _CBOR_LEN8@GOTPAGEOFF]
LBB0_8:
	ldrb	w11, [x11]
	ldrb	w12, [x8]
	orr	w11, w12, w11
	strb	w11, [x8]
	lsr	x11, x1, x9
	strb	w11, [x8, #1]
	tbz	w10, #0, LBB0_10
; %bb.9:
	add	x8, x8, #2
	str	x8, [x0]
	ret
LBB0_10:
	subs	w10, w9, #8
	lsr	x10, x1, x10
	strb	w10, [x8, #2]
	b.eq	LBB0_17
; %bb.11:
	subs	w10, w9, #16
	lsr	x10, x1, x10
	strb	w10, [x8, #3]
	b.eq	LBB0_18
; %bb.12:
	subs	w10, w9, #24
	lsr	x10, x1, x10
	strb	w10, [x8, #4]
	b.eq	LBB0_19
; %bb.13:
	subs	w10, w9, #32
	lsr	x10, x1, x10
	strb	w10, [x8, #5]
	b.eq	LBB0_21
; %bb.14:
	subs	w10, w9, #40
	lsr	x10, x1, x10
	strb	w10, [x8, #6]
	b.eq	LBB0_22
; %bb.15:
	subs	w10, w9, #48
	lsr	x10, x1, x10
	strb	w10, [x8, #7]
	b.eq	LBB0_23
; %bb.16:
	sub	w9, w9, #56
	lsr	x9, x1, x9
	strb	w9, [x8, #8]
	add	x8, x8, #9
	str	x8, [x0]
	ret
LBB0_17:
	add	x8, x8, #3
	str	x8, [x0]
	ret
LBB0_18:
	add	x8, x8, #4
	str	x8, [x0]
	ret
LBB0_19:
	add	x8, x8, #5
	str	x8, [x0]
	ret
LBB0_20:
Lloh8:
	adrp	x9, _CBOR_MINOR_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CBOR_MINOR_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w9, w9, w1
	ldrb	w10, [x8]
	orr	w9, w10, w9
	strb	w9, [x8], #1
	str	x8, [x0]
	ret
LBB0_21:
	add	x8, x8, #6
	str	x8, [x0]
	ret
LBB0_22:
	add	x8, x8, #7
	str	x8, [x0]
	ret
LBB0_23:
	add	x8, x8, #8
	str	x8, [x0]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CBOR_LEN64,4,2                 ; @CBOR_LEN64
	.comm	_CBOR_LEN32,4,2                 ; @CBOR_LEN32
	.comm	_CBOR_LEN16,4,2                 ; @CBOR_LEN16
	.comm	_CBOR_LEN8,4,2                  ; @CBOR_LEN8
	.comm	_CBOR_MINOR_MASK,8,3            ; @CBOR_MINOR_MASK
	.no_dead_strip	_cbor_encode_uint
.subsections_via_symbols
