	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __cons_write
___cons_write:                          ## @__cons_write
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorl	%eax, %eax
	cmpl	$65537, %esi                    ## imm = 0x10001
	jb	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	addq	%r14, %rdi
	movl	$65536, %esi                    ## imm = 0x10000
	callq	___cons_write_ll
	leal	65536(%rbx), %eax
	addl	$131072, %ebx                   ## imm = 0x20000
	cmpl	%r15d, %ebx
	movl	%eax, %ebx
	jb	LBB0_2
LBB0_3:
	cmpl	%r15d, %eax
	jae	LBB0_4
## %bb.5:
	movl	%eax, %ecx
	addq	%rcx, %r14
	subl	%eax, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___cons_write_ll                ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___cons_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __cons_write
___cons_write:                          ; @__cons_write
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	cmp	w1, #16, lsl #12                ; =65536
	b.ls	LBB0_5
; %bb.1:
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x20, w21, uxtw
	mov	w1, #65536
	bl	___cons_write_ll
	add	w8, w21, #16, lsl #12           ; =65536
	add	w9, w21, #32, lsl #12           ; =131072
	mov	x21, x8
	cmp	w9, w19
	b.lo	LBB0_2
; %bb.3:
	cmp	w8, w19
	b.hs	LBB0_6
LBB0_4:
	add	x0, x20, w8, uxtw
	sub	w1, w19, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	___cons_write_ll
LBB0_5:
	mov	w8, #0
	cmp	w8, w19
	b.lo	LBB0_4
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___cons_write
.subsections_via_symbols
