	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bitmap_ctx_init                ## -- Begin function bitmap_ctx_init
	.p2align	4, 0x90
_bitmap_ctx_init:                       ## @bitmap_ctx_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %r12
	movq	16(%rdi), %r13
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	movl	$0, (%r12)
	cmpl	$1, (%rax)
	je	LBB0_19
## %bb.1:
	cmpl	$1, 4(%rax)
	je	LBB0_19
## %bb.2:
	cmpl	$1, 8(%rax)
	je	LBB0_19
## %bb.3:
	cmpl	$1, 12(%rax)
	je	LBB0_19
## %bb.4:
	cmpl	$1, 16(%rax)
	je	LBB0_19
## %bb.5:
	cmpl	$1, 20(%rax)
	je	LBB0_19
## %bb.6:
	cmpl	$1, 24(%rax)
	je	LBB0_19
## %bb.7:
	movl	$1, (%r12)
	movl	28(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	32(%rax), %r15d
	movl	$4, %ebx
	movl	%r15d, %ecx
	shll	%cl, %ebx
	movl	%ebx, %edi
	callq	_hcmalloc
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_hcmalloc
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_hcmalloc
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_hcmalloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_hcmalloc
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	%ebx, %edi
	callq	_hcmalloc
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	%ebx, %edi
	callq	_hcmalloc
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	%ebx, %edi
	callq	_hcmalloc
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	cmpl	%r15d, %ecx
	jb	LBB0_8
LBB0_12:
	cmpl	-56(%rbp), %ecx                 ## 4-byte Folded Reload
	je	LBB0_15
	jmp	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	cmpl	%ecx, -56(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %ebx
	shll	%cl, %ebx
	leal	-1(%rbx), %r15d
	movl	(%r14), %edi
	cmpl	%r15d, %edi
	jbe	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	shll	$2, %ebx
	movl	24(%r13), %esi
	movq	16(%r14), %rcx
	movl	12(%r13), %r8d
	movl	8(%r13), %r9d
	movl	(%r13), %r11d
	movl	4(%r13), %r10d
	movl	%edi, %eax
	shrl	%eax
	subq	$8, %rsp
	movl	$5, %edx
	pushq	%rax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	%rbx
	pushq	%r15
	pushq	%r11
	pushq	%r10
	callq	_generate_bitmaps
	addq	$80, %rsp
	cmpl	$1, %eax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r14), %edi
	movl	24(%r13), %esi
	movq	16(%r14), %rcx
	movl	12(%r13), %r8d
	movl	8(%r13), %r9d
	movl	(%r13), %r11d
	movl	4(%r13), %r10d
	movl	%edi, %eax
	shrl	%eax
	subq	$8, %rsp
	movl	$13, %edx
	pushq	%rax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	%rbx
	pushq	%r15
	pushq	%r11
	pushq	%r10
	callq	_generate_bitmaps
	addq	$80, %rsp
	cmpl	$1, %eax
	je	LBB0_13
## %bb.11:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_12
LBB0_14:
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
LBB0_15:
	movl	%ecx, %ebx
	movq	_EVENT_BITMAP_FINAL_OVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_EVENT_DATA
	movl	%ebx, %ecx
LBB0_16:
	movl	$1, %eax
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	leal	-1(%rax), %r15d
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	leal	(,%rax,4), %ebx
	movl	(%r14), %edi
	movl	24(%r13), %esi
	movq	16(%r14), %rcx
	movl	12(%r13), %r8d
	movl	8(%r13), %r9d
	movl	(%r13), %r11d
	movl	4(%r13), %r10d
	subq	$8, %rsp
	movl	$5, %edx
	pushq	$-1
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	%rbx
	pushq	%r15
	pushq	%r11
	pushq	%r10
	callq	_generate_bitmaps
	addq	$80, %rsp
	movl	(%r14), %edi
	movl	24(%r13), %esi
	movq	16(%r14), %rcx
	movl	12(%r13), %r8d
	movl	8(%r13), %r9d
	movl	(%r13), %eax
	movl	4(%r13), %r10d
	subq	$8, %rsp
	movl	$13, %edx
	pushq	$-1
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	pushq	%rbx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	pushq	%r15
	pushq	%rax
	pushq	%r10
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	callq	_generate_bitmaps
	addq	$80, %rsp
	cmpq	$0, 16(%r13)
	je	LBB0_18
## %bb.17:
	movq	8(%r14), %rsi
	movl	12(%r13), %edx
	movl	8(%r13), %ecx
	movl	(%r13), %r9d
	movl	4(%r13), %r8d
	subq	$8, %rsp
	movl	$5, %edi
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	%rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	pushq	%r15
	callq	_selftest_to_bitmap
	addq	$48, %rsp
	movq	8(%r14), %rsi
	movl	12(%r13), %edx
	movl	8(%r13), %ecx
	movl	(%r13), %r9d
	movl	4(%r13), %r8d
	subq	$8, %rsp
	movl	$13, %edi
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	pushq	%r15
	callq	_selftest_to_bitmap
	addq	$48, %rsp
LBB0_18:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r12)
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	%eax, 8(%r12)
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	%eax, 12(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 16(%r12)
	movabsq	$55834574853, %rax              ## imm = 0xD00000005
	movq	%rax, 20(%r12)
	movq	%rbx, 32(%r12)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%r12)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 48(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 56(%r12)
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 64(%r12)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 72(%r12)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 80(%r12)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 88(%r12)
LBB0_19:
	xorl	%eax, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVENT_BITMAP_FINAL_OVERFLOW,4,2 ## @EVENT_BITMAP_FINAL_OVERFLOW
.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 bitmap_ctx_init
lCPI0_0:
	.long	5                               ; 0x5
	.long	13                              ; 0xd
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_bitmap_ctx_init
	.p2align	2
_bitmap_ctx_init:                       ; @bitmap_ctx_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldp	x23, x28, [x0, #16]
	ldp	x8, x24, [x0]
	str	wzr, [x28]
	ldr	w9, [x8]
	cmp	w9, #1
	b.eq	LBB0_13
; %bb.1:
	ldr	w9, [x8, #4]
	cmp	w9, #1
	b.eq	LBB0_13
; %bb.2:
	ldr	w9, [x8, #8]
	cmp	w9, #1
	b.eq	LBB0_13
; %bb.3:
	ldr	w9, [x8, #12]
	cmp	w9, #1
	b.eq	LBB0_13
; %bb.4:
	ldr	w9, [x8, #16]
	cmp	w9, #1
	b.eq	LBB0_13
; %bb.5:
	ldr	w9, [x8, #20]
	cmp	w9, #1
	b.eq	LBB0_13
; %bb.6:
	ldr	w9, [x8, #24]
	cmp	w9, #1
	b.eq	LBB0_13
; %bb.7:
	mov	w9, #1
	str	w9, [x28]
	ldp	w25, w27, [x8, #28]
	mov	w8, #4
	lsl	w26, w8, w27
	mov	x0, x26
	bl	_hcmalloc
	stur	x0, [x29, #-88]                 ; 8-byte Folded Spill
	mov	x0, x26
	bl	_hcmalloc
	mov	x21, x0
	mov	x0, x26
	bl	_hcmalloc
	mov	x22, x0
	mov	x0, x26
	bl	_hcmalloc
	mov	x20, x0
	mov	x0, x26
	bl	_hcmalloc
	str	x0, [sp, #80]                   ; 8-byte Folded Spill
	mov	x0, x26
	bl	_hcmalloc
	str	x0, [sp, #72]                   ; 8-byte Folded Spill
	mov	x0, x26
	bl	_hcmalloc
	str	x0, [sp, #64]                   ; 8-byte Folded Spill
	mov	x0, x26
	bl	_hcmalloc
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	cmp	w25, w27
	b.lo	LBB0_15
LBB0_8:
	cmp	w25, w27
	mov	x27, x25
	b.ne	LBB0_10
LBB0_9:
Lloh0:
	adrp	x8, _EVENT_BITMAP_FINAL_OVERFLOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVENT_BITMAP_FINAL_OVERFLOW@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	mov	w2, #0
	bl	_EVENT_DATA
	mov	x25, x27
LBB0_10:
	mov	w8, #1
	lsl	w8, w8, w25
	sub	w27, w8, #1
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	lsl	w26, w8, #2
	ldr	w0, [x24]
	ldr	w1, [x23, #24]
	ldr	x3, [x24, #16]
	ldp	w5, w4, [x23, #8]
	ldp	w7, w6, [x23]
	mov	w19, #-1
	str	w19, [sp, #40]
	stp	x22, x20, [sp, #88]             ; 16-byte Folded Spill
	stp	x22, x20, [sp, #24]
	str	x21, [sp, #16]
	ldur	x8, [x29, #-88]                 ; 8-byte Folded Reload
	str	x8, [sp, #8]
	stp	w27, w26, [sp]
	mov	w2, #5
	bl	_generate_bitmaps
	ldr	w0, [x24]
	ldr	w1, [x23, #24]
	ldr	x3, [x24, #16]
	ldp	w5, w4, [x23, #8]
	ldp	w7, w6, [x23]
	str	w19, [sp, #40]
	ldp	x22, x8, [sp, #56]              ; 16-byte Folded Reload
	stp	x8, x22, [sp, #24]
	ldp	x19, x20, [sp, #72]             ; 16-byte Folded Reload
	stp	x20, x19, [sp, #8]
	str	w26, [sp, #48]                  ; 4-byte Folded Spill
	stp	w27, w26, [sp]
	mov	x26, x8
	mov	w2, #13
	bl	_generate_bitmaps
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	x1, [x24, #8]
	ldp	w3, w2, [x23, #8]
	ldp	w5, w4, [x23]
	ldr	x9, [sp, #96]                   ; 8-byte Folded Reload
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	stp	x8, x9, [sp, #8]
	str	x21, [sp]
	mov	w0, #5
	mov	x6, x27
	ldur	x7, [x29, #-88]                 ; 8-byte Folded Reload
	bl	_selftest_to_bitmap
	ldr	x1, [x24, #8]
	ldp	w3, w2, [x23, #8]
	ldp	w5, w4, [x23]
	stp	x26, x22, [sp, #8]
	str	x19, [sp]
	mov	w0, #13
	mov	x6, x27
	mov	x7, x20
	bl	_selftest_to_bitmap
LBB0_12:
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	stp	w25, w8, [x28, #4]
	ldr	w8, [sp, #48]                   ; 4-byte Folded Reload
	stp	w8, w27, [x28, #12]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x28, #20]
	ldur	x8, [x29, #-88]                 ; 8-byte Folded Reload
	stp	x8, x21, [x28, #32]
	ldr	x9, [sp, #88]                   ; 8-byte Folded Reload
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	stp	x9, x8, [x28, #48]
	stp	x20, x19, [x28, #64]
	stp	x26, x22, [x28, #80]
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w25, w25, #1
	cmp	w27, w25
	b.eq	LBB0_9
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	w8, #1
	lsl	w8, w8, w25
	sub	w26, w8, #1
	ldr	w0, [x24]
	cmp	w0, w26
	b.ls	LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	lsl	w19, w8, #2
	ldr	w1, [x23, #24]
	ldr	x3, [x24, #16]
	ldp	w5, w4, [x23, #8]
	lsr	w8, w0, #1
	ldp	w7, w6, [x23]
	str	w8, [sp, #40]
	stp	x22, x20, [sp, #24]
	str	x21, [sp, #16]
	ldur	x8, [x29, #-88]                 ; 8-byte Folded Reload
	str	x8, [sp, #8]
	stp	w26, w19, [sp]
	mov	w2, #5
	bl	_generate_bitmaps
	cmp	w0, #1
	b.eq	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x24]
	ldr	w1, [x23, #24]
	ldr	x3, [x24, #16]
	ldp	w5, w4, [x23, #8]
	ldp	w7, w6, [x23]
	lsr	w8, w0, #1
	str	w8, [sp, #40]
	stp	x22, x20, [sp, #24]
	str	x21, [sp, #16]
	ldur	x8, [x29, #-88]                 ; 8-byte Folded Reload
	str	x8, [sp, #8]
	stp	w26, w19, [sp]
	mov	w2, #13
	bl	_generate_bitmaps
	cmp	w0, #1
	b.eq	LBB0_14
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EVENT_BITMAP_FINAL_OVERFLOW,4,2 ; @EVENT_BITMAP_FINAL_OVERFLOW
.subsections_via_symbols
