	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmp_iter_set_init
_bmp_iter_set_init:                     ## @bmp_iter_set_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rcx, %r8
	movl	%edx, %r9d
	movq	(%rsi), %rcx
	movq	%rcx, 8(%rdi)
	movq	$0, 16(%rdi)
	movq	_BITMAP_ELEMENT_ALL_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%r11d
	testq	%rcx, %rcx
	je	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %edx
	cmpl	%eax, %edx
	jae	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rcx), %rcx
	movq	%rcx, 8(%rdi)
	testq	%rcx, %rcx
	jne	LBB0_4
LBB0_2:
	movq	_bitmap_zero_bits@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rdi)
	movl	(%rcx), %edx
LBB0_3:
	imull	%edx, %r11d
	cmpl	%eax, %edx
	cmovel	%r9d, %r11d
	movq	_BITMAP_WORD_BITS@GOTPCREL(%rip), %r9
	movl	%r11d, %eax
	xorl	%edx, %edx
	divl	(%r9)
	movq	_BITMAP_ELEMENT_WORDS@GOTPCREL(%rip), %r10
	xorl	%edx, %edx
	divl	(%r10)
                                        ## kill: def $edx killed $edx def $rdx
	movl	%edx, (%rdi)
	movq	8(%rcx), %rax
	movl	(%rax,%rdx,4), %esi
	movl	%r11d, %eax
	xorl	%edx, %edx
	divl	(%r9)
	movl	%edx, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %esi
	movl	%esi, 4(%rdi)
	cmpl	$1, %esi
	adcl	$0, %r11d
	movl	%r11d, (%r8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bitmap_zero_bits,24,3          ## @bitmap_zero_bits
	.comm	_BITMAP_ELEMENT_ALL_BITS,4,2    ## @BITMAP_ELEMENT_ALL_BITS
	.comm	_BITMAP_WORD_BITS,4,2           ## @BITMAP_WORD_BITS
	.comm	_BITMAP_ELEMENT_WORDS,4,2       ## @BITMAP_ELEMENT_WORDS
	.no_dead_strip	_bmp_iter_set_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_set_init
_bmp_iter_set_init:                     ; @bmp_iter_set_init
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
	stp	x8, xzr, [x0, #8]
Lloh0:
	adrp	x9, _BITMAP_ELEMENT_ALL_BITS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BITMAP_ELEMENT_ALL_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	udiv	w10, w2, w9
	cbz	x8, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8]
	cmp	w11, w10
	b.hs	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x8, #16]
	str	x8, [x0, #8]
	cbnz	x8, LBB0_1
LBB0_3:
Lloh3:
	adrp	x8, _bitmap_zero_bits@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bitmap_zero_bits@GOTPAGEOFF]
	str	x8, [x0, #8]
	ldr	w11, [x8]
LBB0_4:
	mul	w9, w9, w11
	cmp	w11, w10
	csel	w9, w2, w9, eq
Lloh5:
	adrp	x10, _BITMAP_WORD_BITS@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BITMAP_WORD_BITS@GOTPAGEOFF]
	ldr	w11, [x10]
	udiv	w11, w9, w11
Lloh7:
	adrp	x12, _BITMAP_ELEMENT_WORDS@GOTPAGE
Lloh8:
	ldr	x12, [x12, _BITMAP_ELEMENT_WORDS@GOTPAGEOFF]
Lloh9:
	ldr	w12, [x12]
	udiv	w13, w11, w12
	msub	w11, w13, w12, w11
	str	w11, [x0]
	ldr	x8, [x8, #8]
	ldr	w8, [x8, w11, uxtw #2]
	ldr	w10, [x10]
	udiv	w11, w9, w10
	msub	w10, w11, w10, w9
	lsr	w8, w8, w10
	str	w8, [x0, #4]
	cmp	w8, #0
	cinc	w8, w9, eq
	str	w8, [x3]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_bitmap_zero_bits,24,3          ; @bitmap_zero_bits
	.comm	_BITMAP_ELEMENT_ALL_BITS,4,2    ; @BITMAP_ELEMENT_ALL_BITS
	.comm	_BITMAP_WORD_BITS,4,2           ; @BITMAP_WORD_BITS
	.comm	_BITMAP_ELEMENT_WORDS,4,2       ; @BITMAP_ELEMENT_WORDS
	.no_dead_strip	_bmp_iter_set_init
.subsections_via_symbols
