	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmp_iter_and_init
_bmp_iter_and_init:                     ## @bmp_iter_and_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%ecx, %r9d
	movq	(%rsi), %rcx
	movq	%rcx, 16(%rdi)
	movq	(%rdx), %r10
	movq	%r10, 8(%rdi)
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.1:
	movq	_BITMAP_ELEMENT_ALL_BITS@GOTPCREL(%rip), %rsi
	movl	%r9d, %eax
	xorl	%edx, %edx
	divl	(%rsi)
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %esi
	cmpl	%eax, %esi
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rcx), %rcx
	movq	%rcx, 16(%rdi)
	testq	%rcx, %rcx
	jne	LBB0_2
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r10), %eax
	cmpl	%esi, %eax
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r10), %r10
	movq	%r10, 8(%rdi)
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r10, %r10
	jne	LBB0_6
LBB0_5:
	movq	_bitmap_zero_bits@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rdi)
	movq	%rcx, 16(%rdi)
	movl	(%rcx), %esi
	movq	%rcx, %r10
LBB0_9:
	movq	_BITMAP_ELEMENT_ALL_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movl	%r9d, %eax
	xorl	%edx, %edx
	divl	%r11d
	imull	%esi, %r11d
	cmpl	%eax, %esi
	cmovnel	%r11d, %r9d
	movq	_BITMAP_WORD_BITS@GOTPCREL(%rip), %r11
	movl	%r9d, %eax
	xorl	%edx, %edx
	divl	(%r11)
	movq	_BITMAP_ELEMENT_WORDS@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	divl	(%rsi)
                                        ## kill: def $edx killed $edx def $rdx
	movl	%edx, (%rdi)
	movq	8(%rcx), %rax
	movq	8(%r10), %rcx
	movl	(%rcx,%rdx,4), %esi
	andl	(%rax,%rdx,4), %esi
	movl	%r9d, %eax
	xorl	%edx, %edx
	divl	(%r11)
	movl	%edx, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %esi
	movl	%esi, 4(%rdi)
	xorl	%eax, %eax
	testl	%esi, %esi
	sete	%al
LBB0_11:
	addl	%r9d, %eax
	movl	%eax, (%r8)
	popq	%rbp
	retq
LBB0_8:
	je	LBB0_9
## %bb.10:
	movq	_BITMAP_ELEMENT_WORDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	movl	%eax, (%rdi)
	movl	$0, 4(%rdi)
	movl	$1, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_BITMAP_ELEMENT_ALL_BITS,4,2    ## @BITMAP_ELEMENT_ALL_BITS
	.comm	_bitmap_zero_bits,24,3          ## @bitmap_zero_bits
	.comm	_BITMAP_WORD_BITS,4,2           ## @BITMAP_WORD_BITS
	.comm	_BITMAP_ELEMENT_WORDS,4,2       ## @BITMAP_ELEMENT_WORDS
	.no_dead_strip	_bmp_iter_and_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmp_iter_and_init
_bmp_iter_and_init:                     ; @bmp_iter_and_init
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
	ldr	x9, [x2]
	stp	x9, x8, [x0, #8]
Lloh0:
	adrp	x10, _BITMAP_ELEMENT_ALL_BITS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BITMAP_ELEMENT_ALL_BITS@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	w11, [x10]
	udiv	w12, w3, w11
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8]
	cmp	w11, w12
	b.hs	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x8, #16]
	str	x8, [x0, #16]
	cbnz	x8, LBB0_2
	b	LBB0_7
LBB0_4:
	cbz	x9, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9]
	cmp	w12, w11
	b.hs	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x9, #16]
	str	x9, [x0, #8]
	cbnz	x9, LBB0_5
LBB0_7:
Lloh2:
	adrp	x8, _bitmap_zero_bits@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bitmap_zero_bits@GOTPAGEOFF]
	stp	x8, x8, [x0, #8]
	ldr	w11, [x8]
	mov	x9, x8
LBB0_8:
	ldr	w10, [x10]
	udiv	w12, w3, w10
	mul	w10, w10, w11
	cmp	w11, w12
	csel	w3, w3, w10, eq
Lloh4:
	adrp	x10, _BITMAP_WORD_BITS@GOTPAGE
Lloh5:
	ldr	x10, [x10, _BITMAP_WORD_BITS@GOTPAGEOFF]
	ldr	w11, [x10]
	udiv	w11, w3, w11
Lloh6:
	adrp	x12, _BITMAP_ELEMENT_WORDS@GOTPAGE
Lloh7:
	ldr	x12, [x12, _BITMAP_ELEMENT_WORDS@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	udiv	w13, w11, w12
	msub	w11, w13, w12, w11
	str	w11, [x0]
	ldr	x8, [x8, #8]
	lsl	x11, x11, #2
	ldr	w8, [x8, x11]
	ldr	x9, [x9, #8]
	ldr	w9, [x9, x11]
	and	w8, w9, w8
	ldr	w9, [x10]
	udiv	w10, w3, w9
	msub	w9, w10, w9, w3
	asr	w8, w8, w9
	str	w8, [x0, #4]
	cmp	w8, #0
	cset	w8, eq
LBB0_9:
	add	w8, w3, w8
	str	w8, [x4]
	ret
LBB0_10:
	cmp	w11, w12
	b.eq	LBB0_8
; %bb.11:
Lloh9:
	adrp	x8, _BITMAP_ELEMENT_WORDS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BITMAP_ELEMENT_WORDS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	sub	w8, w8, #1
	stp	w8, wzr, [x0]
	mov	w8, #1
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BITMAP_ELEMENT_ALL_BITS,4,2    ; @BITMAP_ELEMENT_ALL_BITS
	.comm	_bitmap_zero_bits,24,3          ; @bitmap_zero_bits
	.comm	_BITMAP_WORD_BITS,4,2           ; @BITMAP_WORD_BITS
	.comm	_BITMAP_ELEMENT_WORDS,4,2       ; @BITMAP_ELEMENT_WORDS
	.no_dead_strip	_bmp_iter_and_init
.subsections_via_symbols
