	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bit_depth
_bit_depth:                             ## @bit_depth
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	notl	%edx
	andl	%esi, %edx
	testl	%r8d, %r8d
	je	LBB0_6
## %bb.1:
	movl	%edx, %esi
	andl	$1, %esi
	jne	LBB0_6
## %bb.2:
	movl	%edx, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r8d, %edi
	leal	-1(%rdi), %r8d
	sarl	%eax
	cmpl	$1, %edi
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	andl	$2, %edx
	movl	%eax, %edx
	je	LBB0_3
	jmp	LBB0_7
LBB0_6:
	movl	%edx, %eax
LBB0_7:
	movl	%r8d, (%rcx)
	movq	$0, 8(%rcx)
	testl	%r8d, %r8d
	je	LBB0_13
## %bb.8:
	cmpl	$1, %r8d
	jne	LBB0_14
## %bb.9:
	xorl	%r9d, %r9d
LBB0_10:
	testb	$1, %r8b
	je	LBB0_13
## %bb.11:
	andl	$1, %eax
	je	LBB0_13
## %bb.12:
	incq	%r9
	movq	%r9, 8(%rcx)
LBB0_13:
	popq	%rbp
	retq
LBB0_14:
	movl	%r8d, %r10d
	andl	$-2, %r10d
	xorl	%r9d, %r9d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	sarl	$2, %eax
	addl	$-2, %r10d
	je	LBB0_10
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edi
	andl	$1, %edi
	leaq	1(%r9), %rdx
	testl	%edi, %edi
	cmoveq	%r9, %rdx
	movl	%eax, %esi
	andl	$2, %esi
	leaq	1(%rdx), %r9
	testl	%esi, %esi
	cmoveq	%rdx, %r9
	orl	%edi, %esi
	je	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r9, 8(%rcx)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bit_depth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bit_depth
_bit_depth:                             ; @bit_depth
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	bic	w9, w1, w2
	and	w10, w9, #0x1
	cmp	w8, #0
	ccmp	w10, #0, #0, ne
	b.ne	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x10, x9
	asr	w9, w9, #1
	subs	w8, w8, #1
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	tbz	w10, #1, LBB0_1
LBB0_3:
	str	w8, [x3]
	str	xzr, [x3, #8]
	cbz	w8, LBB0_8
; %bb.4:
	mov	x10, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	asr	w9, w9, #1
	subs	w8, w8, #1
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w9, #0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x10, x10, #1
	str	x10, [x3, #8]
	b	LBB0_5
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bit_depth
.subsections_via_symbols
