	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function putbits24
_putbits24:                             ## @putbits24
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	%rcx, %rax
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, %ebx
	movslq	(%rcx), %rsi
	leal	-16(%rdx), %ecx
	cmpl	%ecx, (%r8)
	jge	LBB0_1
## %bb.3:
	leal	3(%rsi), %ecx
	movl	%ecx, (%rax)
	movl	(%r8), %ecx
	subl	%edx, %ecx
	addl	$24, %ecx
	movl	%ecx, (%r8)
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movl	%ebx, %eax
	shrl	$24, %eax
	orl	%eax, (%rdi,%rsi,4)
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, 4(%rdi,%rsi,4)
	movzbl	%bh, %eax
	movl	%eax, 8(%rdi,%rsi,4)
	movzbl	%bl, %eax
	jmp	LBB0_4
LBB0_1:
	leal	2(%rsi), %ecx
	movl	%ecx, (%rax)
	movl	(%r8), %ecx
	subl	%edx, %ecx
	addl	$16, %ecx
	movl	%ecx, (%r8)
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movl	%ebx, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	orl	%ecx, (%rdi,%rsi,4)
	movzbl	%bh, %ecx
	movl	%ecx, 4(%rdi,%rsi,4)
	movzbl	%bl, %ecx
	movl	%ecx, 8(%rdi,%rsi,4)
	cmpl	$0, (%r8)
	jne	LBB0_5
## %bb.2:
	movl	$8, (%r8)
	incl	(%rax)
	xorl	%eax, %eax
LBB0_4:
	movl	%eax, 12(%rdi,%rsi,4)
LBB0_5:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_putbits24
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function putbits24
lCPI0_0:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_putbits24:                             ; @putbits24
	.cfi_startproc
; %bb.0:
	ldrsw	x9, [x3]
	add	x8, x0, x9, lsl #2
	ldr	w10, [x4]
	sub	w11, w2, #16
	cmp	w10, w11
	b.ge	LBB0_2
; %bb.1:
	add	w9, w9, #3
	str	w9, [x3]
	ldr	w9, [x4]
	sub	w9, w9, w2
	add	w9, w9, #24
	str	w9, [x4]
	lsl	w9, w1, w9
	ldr	w10, [x8]
	orr	w10, w10, w9, lsr #24
	str	w10, [x8]
	dup.2s	v0, w9
Lloh0:
	adrp	x10, lCPI0_0@PAGE
Lloh1:
	ldr	d1, [x10, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [x8, #4]
	and	w9, w9, #0xff
	b	LBB0_5
LBB0_2:
	add	w9, w9, #2
	str	w9, [x3]
	ldr	w9, [x4]
	sub	w9, w9, w2
	add	w9, w9, #16
	str	w9, [x4]
	lsl	w9, w1, w9
	ldr	w10, [x8]
	ubfx	w11, w9, #16, #8
	orr	w10, w11, w10
	ubfx	w11, w9, #8, #8
	stp	w10, w11, [x8]
	and	w9, w9, #0xff
	str	w9, [x8, #8]
	ldr	w9, [x4]
	cbz	w9, LBB0_4
; %bb.3:
	ret
LBB0_4:
	mov	w10, #8
	str	w10, [x4]
	ldr	w10, [x3]
	add	w10, w10, #1
	str	w10, [x3]
LBB0_5:
	str	w9, [x8, #12]
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_putbits24
.subsections_via_symbols
