	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function get_bitmap
LCPI0_0:
	.long	24                              ## 0x18
	.long	16                              ## 0x10
	.long	8                               ## 0x8
	.long	0                               ## 0x0
LCPI0_1:
	.long	4294967264                      ## 0xffffffe0
	.long	4294967264                      ## 0xffffffe0
	.long	4294967264                      ## 0xffffffe0
	.long	4294967264                      ## 0xffffffe0
LCPI0_2:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_3:
	.long	4294967232                      ## 0xffffffc0
	.long	4294967232                      ## 0xffffffc0
	.long	4294967232                      ## 0xffffffc0
	.long	4294967232                      ## 0xffffffc0
LCPI0_4:
	.long	4294967200                      ## 0xffffffa0
	.long	4294967200                      ## 0xffffffa0
	.long	4294967200                      ## 0xffffffa0
	.long	4294967200                      ## 0xffffffa0
LCPI0_5:
	.long	4294967168                      ## 0xffffff80
	.long	4294967168                      ## 0xffffff80
	.long	4294967168                      ## 0xffffff80
	.long	4294967168                      ## 0xffffff80
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_get_bitmap:                            ## @get_bitmap
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r10d
	movl	(%rdi), %r8d
	leal	(%r8,%r10), %r9d
	cmpl	$7, %r9d
	ja	LBB0_4
## %bb.3:
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	addb	$24, %r8b
	movl	%r8d, %ecx
	shll	%cl, %eax
	jmp	LBB0_22
LBB0_1:
	xorl	%eax, %eax
	retq
LBB0_4:
	cmpl	$8, %r9d
	jne	LBB0_6
## %bb.5:
	movq	8(%rdi), %rax
	leaq	4(%rax), %rcx
	movq	%rcx, 8(%rdi)
	movl	(%rax), %eax
	addb	$24, %r8b
	movl	%r8d, %ecx
	shll	%cl, %eax
	xorl	%r9d, %r9d
	jmp	LBB0_22
LBB0_6:
	movl	%r9d, %esi
	shrl	$3, %esi
	movq	8(%rdi), %rdx
	leal	-1(%rsi), %r14d
	cmpl	$7, %r14d
	jae	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	movl	$24, %ecx
	jmp	LBB0_16
LBB0_8:
	incq	%r14
	movq	%r14, %r11
	andq	$-8, %r11
	leaq	-8(%r11), %rax
	movq	%rax, %rcx
	shrq	$3, %rcx
	incq	%rcx
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rcx, %rax
	andq	$-2, %rax
	pxor	%xmm0, %xmm0
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [24,16,8,0]
	xorl	%ebx, %ebx
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4294967264,4294967264,4294967264,4294967264]
	movdqa	LCPI0_2(%rip), %xmm4            ## xmm4 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [4294967232,4294967232,4294967232,4294967232]
	movdqa	LCPI0_4(%rip), %xmm10           ## xmm10 = [4294967200,4294967200,4294967200,4294967200]
	movdqa	LCPI0_5(%rip), %xmm11           ## xmm11 = [4294967168,4294967168,4294967168,4294967168]
	pxor	%xmm2, %xmm2
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm5, %xmm1
	paddd	%xmm8, %xmm1
	movdqa	%xmm5, %xmm3
	pslld	$23, %xmm3
	paddd	%xmm4, %xmm3
	cvttps2dq	%xmm3, %xmm3
	movdqu	(%rdx,%rbx,4), %xmm6
	pmulld	%xmm3, %xmm6
	por	%xmm0, %xmm6
	movdqu	16(%rdx,%rbx,4), %xmm0
	movdqu	32(%rdx,%rbx,4), %xmm3
	movdqu	48(%rdx,%rbx,4), %xmm7
	pslld	$23, %xmm1
	paddd	%xmm4, %xmm1
	cvttps2dq	%xmm1, %xmm1
	pmulld	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movdqa	%xmm5, %xmm0
	paddd	%xmm9, %xmm0
	movdqa	%xmm5, %xmm2
	paddd	%xmm10, %xmm2
	pslld	$23, %xmm0
	paddd	%xmm4, %xmm0
	cvttps2dq	%xmm0, %xmm0
	pmulld	%xmm3, %xmm0
	por	%xmm6, %xmm0
	pslld	$23, %xmm2
	paddd	%xmm4, %xmm2
	cvttps2dq	%xmm2, %xmm2
	pmulld	%xmm7, %xmm2
	por	%xmm1, %xmm2
	addq	$16, %rbx
	paddd	%xmm11, %xmm5
	addq	$-2, %rax
	jne	LBB0_11
## %bb.12:
	testb	$1, %cl
	je	LBB0_14
LBB0_13:
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [4294967264,4294967264,4294967264,4294967264]
	paddd	%xmm5, %xmm1
	movdqu	(%rdx,%rbx,4), %xmm3
	movdqu	16(%rdx,%rbx,4), %xmm4
	pslld	$23, %xmm5
	movdqa	LCPI0_2(%rip), %xmm6            ## xmm6 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm6, %xmm5
	cvttps2dq	%xmm5, %xmm5
	pmulld	%xmm3, %xmm5
	por	%xmm5, %xmm0
	pslld	$23, %xmm1
	paddd	%xmm6, %xmm1
	cvttps2dq	%xmm1, %xmm1
	pmulld	%xmm4, %xmm1
	por	%xmm1, %xmm2
LBB0_14:
	por	%xmm2, %xmm0
	leaq	(%rdx,%r11,4), %rdx
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpq	%r11, %r14
	je	LBB0_17
## %bb.15:
	leal	(,%r11,8), %ebx
	movl	$24, %ecx
	subl	%ebx, %ecx
	subl	%r11d, %esi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %ebx
	shll	%cl, %ebx
	addq	$4, %rdx
	orl	%ebx, %eax
	addl	$-8, %ecx
	decl	%esi
	jne	LBB0_16
LBB0_17:
	movq	%rdx, 8(%rdi)
	cmpl	$31, %r9d
	ja	LBB0_19
## %bb.18:
	movl	%r9d, %esi
	andl	$-8, %esi
	movl	(%rdx), %edx
	movb	$24, %cl
	subb	%sil, %cl
	shll	%cl, %edx
	orl	%eax, %edx
	movl	%r8d, %ecx
	shll	%cl, %edx
	movl	%edx, %eax
	jmp	LBB0_21
LBB0_19:
	cmpl	$32, %r9d
	je	LBB0_21
## %bb.20:
	movl	%r8d, %ecx
	shll	%cl, %eax
	movl	(%rdx), %edx
	movb	$8, %cl
	subb	%r8b, %cl
	sarl	%cl, %edx
	orl	%edx, %eax
LBB0_21:
	andl	$7, %r9d
LBB0_22:
	negb	%r10b
	movl	%r10d, %ecx
	shrl	%cl, %eax
	movl	%r9d, (%rdi)
	shll	%cl, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	pxor	%xmm0, %xmm0
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [24,16,8,0]
	xorl	%ebx, %ebx
	pxor	%xmm2, %xmm2
	testb	$1, %cl
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_bitmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function get_bitmap
lCPI0_0:
	.long	24                              ; 0x18
	.long	16                              ; 0x10
	.long	8                               ; 0x8
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_get_bitmap:                            ; @get_bitmap
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_3
; %bb.1:
	ldr	w9, [x0]
	add	w8, w9, w1
	cmp	w8, #7
	b.hi	LBB0_4
; %bb.2:
	ldr	x10, [x0, #8]
	ldr	w10, [x10]
	add	w9, w9, #24
	lsl	w15, w10, w9
	b	LBB0_17
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	cmp	w8, #8
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #0
	ldr	x10, [x0, #8]
	ldr	w11, [x10], #4
	str	x10, [x0, #8]
	add	w9, w9, #24
	lsl	w15, w11, w9
	b	LBB0_17
LBB0_6:
	lsr	w11, w8, #3
	ldr	x10, [x0, #8]
	sub	w14, w11, #1
	add	x12, x14, #1
	mov	w13, #24
	cmp	w14, #15
	b.hs	LBB0_8
; %bb.7:
	mov	w15, #0
	mov	x14, x10
	b	LBB0_11
LBB0_8:
	and	x16, x12, #0x1fffffff0
	add	x14, x10, x16, lsl #2
	sub	w11, w11, w16
	movi.2d	v0, #0000000000000000
	mvni.4s	v1, #31
Lloh0:
	adrp	x15, lCPI0_0@PAGE
Lloh1:
	ldr	q2, [x15, lCPI0_0@PAGEOFF]
	add	x15, x10, #32
	mvni.4s	v3, #63
	mvni.4s	v4, #95
	mvni.4s	v5, #127
	mov	x17, x16
	sub	w13, w13, w16, lsl #3
	movi.2d	v6, #0000000000000000
	movi.2d	v7, #0000000000000000
	movi.2d	v16, #0000000000000000
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v17, v2, v1
	add.4s	v18, v2, v3
	add.4s	v19, v2, v4
	ldp	q20, q21, [x15, #-32]
	ldp	q22, q23, [x15], #64
	ushl.4s	v20, v20, v2
	ushl.4s	v17, v21, v17
	ushl.4s	v18, v22, v18
	ushl.4s	v19, v23, v19
	orr.16b	v0, v20, v0
	orr.16b	v6, v17, v6
	orr.16b	v7, v18, v7
	orr.16b	v16, v19, v16
	add.4s	v2, v2, v5
	subs	x17, x17, #16
	b.ne	LBB0_9
; %bb.10:
	orr.16b	v0, v6, v0
	orr.16b	v0, v7, v0
	orr.16b	v0, v16, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w15, s0
	mov.s	w17, v0[1]
	orr	w15, w15, w17
	cmp	x12, x16
	b.eq	LBB0_12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w16, [x14], #4
	lsl	w16, w16, w13
	orr	w15, w16, w15
	sub	w13, w13, #8
	sub	w11, w11, #1
	cbnz	w11, LBB0_11
LBB0_12:
	add	x10, x10, x12, lsl #2
	str	x10, [x0, #8]
	cmp	w8, #31
	b.hi	LBB0_14
; %bb.13:
	and	w11, w8, #0xfffffff8
	mov	w12, #24
	sub	w11, w12, w11
	ldr	w10, [x10]
	lsl	w10, w10, w11
	orr	w10, w10, w15
	lsl	w15, w10, w9
	b	LBB0_16
LBB0_14:
	cmp	w8, #32
	b.eq	LBB0_16
; %bb.15:
	lsl	w11, w15, w9
	ldr	w10, [x10]
	mov	w12, #8
	sub	w9, w12, w9
	asr	w9, w10, w9
	orr	w15, w9, w11
LBB0_16:
	and	w8, w8, #0x7
LBB0_17:
	str	w8, [x0]
	neg	w8, w1
	mov	w9, #-1
	lsl	w8, w9, w8
	and	w0, w15, w8
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_bitmap
.subsections_via_symbols
