	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bwrite_interpolative_encode_value ## -- Begin function bwrite_interpolative_encode_value
	.p2align	4, 0x90
_bwrite_interpolative_encode_value:     ## @bwrite_interpolative_encode_value
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$144, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	subl	%esi, %ecx
	jle	LBB0_1
## %bb.2:
	leal	(%rcx,%rcx), %esi
	decl	%esi
	jmp	LBB0_3
LBB0_1:
	subl	%eax, %esi
	addl	%esi, %esi
LBB0_3:
	addl	%edx, %esi
	cmpl	$2, %esi
	jl	LBB0_13
## %bb.4:
	xorl	%ebx, %ebx
	movl	%esi, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, %ecx
	andl	$1, %ecx
	movl	%ecx, -160(%rbp,%rbx,4)
	incq	%rbx
	shrl	%eax
	cmpl	$3, %esi
	movl	%eax, %esi
	ja	LBB0_5
## %bb.6:
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.7:
	incq	%rbx
	movl	(%r14), %eax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	sarl	%eax
	movl	%eax, (%r14)
	decq	%rbx
	cmpq	$1, %rbx
	jbe	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$0, -168(%rbp,%rbx,4)
	jne	LBB0_11
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bwrite_append
	movl	$128, (%r14)
	movl	$128, %eax
	cmpl	$0, -168(%rbp,%rbx,4)
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r14), %rcx
	addl	%eax, (%rcx)
	movl	(%r14), %eax
	jmp	LBB0_12
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$144, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bwrite_interpolative_encode_value ; -- Begin function bwrite_interpolative_encode_value
	.p2align	2
_bwrite_interpolative_encode_value:     ; @bwrite_interpolative_encode_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	asr	w8, w2, #1
	sub	w9, w8, w1
	lsl	w9, w9, #1
	sub	w9, w9, #1
	sub	w10, w1, w8
	lsl	w10, w10, #1
	cmp	w8, w1
	csel	w8, w9, w10, gt
	add	w8, w8, w2
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.1:
	mov	x19, x0
	mov	x9, #0
	add	x10, sp, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	w11, w8, #0x1
	str	w11, [x10, x9, lsl #2]
	add	x9, x9, #1
	lsr	w11, w8, #1
	cmp	w8, #3
	mov	x8, x11
	b.hi	LBB0_2
; %bb.3:
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.4:
	sub	x20, x9, #1
	ldr	w8, [x19]
	add	x21, sp, #8
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	asr	w8, w8, #1
	str	w8, [x19]
	add	x9, x20, #1
	sub	x20, x20, #1
	cmp	x9, #1
	b.ls	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x21, x20, lsl #2]
	cbnz	w9, LBB0_9
	b	LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_bwrite_append
	mov	w8, #128
	str	w8, [x19]
	ldr	w9, [x21, x20, lsl #2]
	cbz	w9, LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x19, #8]
	ldr	w10, [x9]
	add	w8, w10, w8
	str	w8, [x9]
	ldr	w8, [x19]
	b	LBB0_5
LBB0_10:
	ldur	x8, [x29, #-40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
