	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmp_iter_and_compl_init
_bmp_iter_and_compl_init:               ## @bmp_iter_and_compl_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%ecx, %r9d
	movq	(%rsi), %rsi
	movq	%rsi, 16(%rdi)
	movq	(%rdx), %rcx
	movq	%rcx, 8(%rdi)
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	_BITMAP_ELEMENT_ALL_BITS@GOTPCREL(%rip), %rbx
	movl	%r9d, %eax
	xorl	%edx, %edx
	divl	(%rbx)
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rsi)
	jae	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rsi), %rsi
	movq	%rsi, 16(%rdi)
	testq	%rsi, %rsi
	jne	LBB0_2
LBB0_4:
	movq	_bitmap_zero_bits@GOTPCREL(%rip), %rsi
	movq	%rsi, 16(%rdi)
LBB0_5:
	movl	(%rsi), %r11d
	testq	%rcx, %rcx
	je	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r11d, (%rcx)
	setb	%bl
	jae	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%rcx), %rcx
	movq	%rcx, 8(%rdi)
	testq	%rcx, %rcx
	jne	LBB0_7
## %bb.9:
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_6:
	xorl	%ecx, %ecx
	movb	$1, %bl
LBB0_10:
	movq	_BITMAP_ELEMENT_ALL_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	%r9d, %eax
	xorl	%edx, %edx
	divl	%r10d
	imull	%r11d, %r10d
	cmpl	%eax, %r11d
	cmovel	%r9d, %r10d
	movq	_BITMAP_WORD_BITS@GOTPCREL(%rip), %r9
	movl	%r10d, %eax
	xorl	%edx, %edx
	divl	(%r9)
	movq	_BITMAP_ELEMENT_WORDS@GOTPCREL(%rip), %r14
	xorl	%edx, %edx
	divl	(%r14)
                                        ## kill: def $edx killed $edx def $rdx
	movl	%edx, (%rdi)
	movq	8(%rsi), %rax
	movl	(%rax,%rdx,4), %esi
	movl	%esi, 4(%rdi)
	testb	%bl, %bl
	jne	LBB0_13
## %bb.11:
	cmpl	(%rcx), %r11d
	jne	LBB0_13
## %bb.12:
	movq	8(%rcx), %rax
	movl	(%rax,%rdx,4), %eax
	notl	%eax
	andl	%eax, %esi
LBB0_13:
	movl	%r10d, %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, %r10d
	movl	%r10d, (%r8)
	popq	%rbx
	popq	%r14
	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_and_compl_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_compl_init
_bmp_iter_and_compl_init:               ; @bmp_iter_and_compl_init
	.cfi_startproc
; %bb.0:
	ldr	x9, [x1]
	ldr	x8, [x2]
	stp	x8, x9, [x0, #8]
Lloh0:
	adrp	x10, _BITMAP_ELEMENT_ALL_BITS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BITMAP_ELEMENT_ALL_BITS@GOTPAGEOFF]
	cbz	x9, LBB0_4
; %bb.1:
	ldr	w11, [x10]
	udiv	w11, w3, w11
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9]
	cmp	w12, w11
	b.hs	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x9, #16]
	str	x9, [x0, #16]
	cbnz	x9, LBB0_2
LBB0_4:
Lloh2:
	adrp	x9, _bitmap_zero_bits@GOTPAGE
Lloh3:
	ldr	x9, [x9, _bitmap_zero_bits@GOTPAGEOFF]
	str	x9, [x0, #16]
LBB0_5:
	ldr	w11, [x9]
	cbz	x8, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x8]
	cmp	w12, w11
	cset	w12, lo
	b.hs	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x8, #16]
	str	x8, [x0, #8]
	cbnz	x8, LBB0_6
	b	LBB0_9
LBB0_8:
	mov	w12, #1
LBB0_9:
	ldr	w10, [x10]
	udiv	w13, w3, w10
	mul	w10, w10, w11
	cmp	w11, w13
	csel	w10, w3, w10, eq
Lloh4:
	adrp	x13, _BITMAP_WORD_BITS@GOTPAGE
Lloh5:
	ldr	x13, [x13, _BITMAP_WORD_BITS@GOTPAGEOFF]
	ldr	w14, [x13]
	udiv	w14, w10, w14
Lloh6:
	adrp	x15, _BITMAP_ELEMENT_WORDS@GOTPAGE
Lloh7:
	ldr	x15, [x15, _BITMAP_ELEMENT_WORDS@GOTPAGEOFF]
Lloh8:
	ldr	w15, [x15]
	udiv	w16, w14, w15
	msub	w14, w16, w15, w14
	str	w14, [x0]
	ldr	x9, [x9, #8]
	ldr	w9, [x9, w14, uxtw #2]
	str	w9, [x0, #4]
	tbnz	w12, #0, LBB0_12
; %bb.10:
	ldr	w12, [x8]
	cmp	w11, w12
	b.ne	LBB0_12
; %bb.11:
	ldr	x8, [x8, #8]
	ldr	w8, [x8, x14, lsl #2]
	bic	w9, w9, w8
LBB0_12:
	ldr	w8, [x13]
	udiv	w11, w10, w8
	msub	w8, w11, w8, w10
	lsr	w8, w9, w8
	str	w8, [x0, #4]
	cmp	w8, #0
	cinc	w8, w10, eq
	str	w8, [x4]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.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_and_compl_init
.subsections_via_symbols
