	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmp_iter_and
_bmp_iter_and:                          ## @bmp_iter_and
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	je	LBB0_1
LBB0_6:
	movl	$1, %eax
	testb	$1, %cl
	jne	LBB0_22
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	sarl	%ecx
	movl	%ecx, (%rdi)
	incl	(%rsi)
	movl	(%rdi), %ecx
	testb	$1, %cl
	je	LBB0_8
	jmp	LBB0_22
LBB0_1:
	movl	(%rsi), %eax
	movq	_BITMAP_WORD_BITS@GOTPCREL(%rip), %r8
	movl	(%r8), %ebx
	leal	(%rax,%rbx), %ecx
	decl	%ecx
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%ebx
	subl	%edx, %ecx
	movl	%ecx, (%rsi)
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rax
	incq	%rdx
	movq	_BITMAP_ELEMENT_WORDS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	movq	_BITMAP_ELEMENT_ALL_BITS@GOTPCREL(%rip), %r9
	cmpq	%r10, %rdx
	je	LBB0_10
LBB0_3:
	movq	(%rax), %r11
	movq	24(%rdi), %rcx
	movq	(%rcx), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rdx,4), %ecx
	andl	(%r11,%rdx,4), %ecx
	movl	%ecx, (%rdi)
	jne	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r8), %ecx
	addl	%ecx, (%rsi)
	incq	%rdx
	cmpq	%rdx, %r10
	jne	LBB0_4
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##       Child Loop BB0_14 Depth 3
	movq	%r10, 8(%rdi)
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=2
	cmpl	%ebx, %edx
	je	LBB0_18
LBB0_11:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_14 Depth 3
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	8(%rax), %edx
	movq	24(%rdi), %rcx
	movl	8(%rcx), %ebx
	cmpl	%ebx, %edx
	jb	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%rax, 16(%rdi)
	jbe	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_10 Depth=1
                                        ##     Parent Loop BB0_11 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=3
	movl	8(%rcx), %ebx
	cmpl	%edx, %ebx
	jb	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%rcx, 24(%rdi)
	jmp	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	imull	(%r9), %edx
	movl	%edx, (%rsi)
	xorl	%edx, %edx
	cmpq	%r10, %rdx
	jne	LBB0_3
	jmp	LBB0_10
LBB0_20:
	movq	%rcx, 24(%rdi)
	jmp	LBB0_21
LBB0_5:
	movq	%rdx, 8(%rdi)
	jmp	LBB0_6
LBB0_19:
	movq	$0, 16(%rdi)
LBB0_21:
	xorl	%eax, %eax
LBB0_22:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITMAP_WORD_BITS,4,2           ## @BITMAP_WORD_BITS
	.comm	_BITMAP_ELEMENT_WORDS,8,3       ## @BITMAP_ELEMENT_WORDS
	.comm	_BITMAP_ELEMENT_ALL_BITS,4,2    ## @BITMAP_ELEMENT_ALL_BITS
	.no_dead_strip	_bmp_iter_and
.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
_bmp_iter_and:                          ; @bmp_iter_and
	.cfi_startproc
; %bb.0:
	ldr	w15, [x0]
	cbz	w15, LBB0_4
; %bb.1:
	tbnz	w15, #0, LBB0_19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	asr	w8, w15, #1
	str	w8, [x0]
	ldr	w8, [x1]
	add	w8, w8, #1
	str	w8, [x1]
	ldr	w15, [x0]
	tbz	w15, #0, LBB0_2
; %bb.3:
	mov	w0, #1
	ret
LBB0_4:
	ldr	w9, [x1]
Lloh0:
	adrp	x8, _BITMAP_WORD_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BITMAP_WORD_BITS@GOTPAGEOFF]
	ldr	w10, [x8]
	add	w9, w9, w10
	sub	w9, w9, #1
	udiv	w9, w9, w10
	mul	w9, w9, w10
	str	w9, [x1]
	ldp	x10, x9, [x0, #8]
	add	x12, x10, #1
Lloh2:
	adrp	x10, _BITMAP_ELEMENT_WORDS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _BITMAP_ELEMENT_WORDS@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
Lloh5:
	adrp	x11, _BITMAP_ELEMENT_ALL_BITS@GOTPAGE
Lloh6:
	ldr	x11, [x11, _BITMAP_ELEMENT_ALL_BITS@GOTPAGEOFF]
	cmp	x12, x10
	b.eq	LBB0_8
LBB0_5:
	ldr	x13, [x9]
	ldr	x14, [x0, #24]
	ldr	x14, [x14]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x15, x12, #2
	ldr	w16, [x13, x15]
	ldr	w15, [x14, x15]
	ands	w15, w15, w16
	str	w15, [x0]
	b.ne	LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w15, [x8]
	ldr	w16, [x1]
	add	w15, w16, w15
	str	w15, [x1]
	add	x12, x12, #1
	cmp	x10, x12
	b.ne	LBB0_6
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
	str	x10, [x0, #8]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	cmp	w13, w14
	b.eq	LBB0_16
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w13, [x9, #8]
	ldr	x12, [x0, #24]
	ldr	w14, [x12, #8]
	cmp	w13, w14
	b.lo	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	str	x9, [x0, #16]
	cmp	w14, w13
	b.hs	LBB0_9
LBB0_13:                                ;   Parent Loop BB0_8 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x12, [x12, #16]
	cbz	x12, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	ldr	w14, [x12, #8]
	cmp	w14, w13
	b.lo	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=2
	str	x12, [x0, #24]
	b	LBB0_9
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x12, #0
	ldr	w14, [x11]
	mul	w13, w14, w13
	str	w13, [x1]
	cmp	x12, x10
	b.ne	LBB0_5
	b	LBB0_8
LBB0_17:
	str	x12, [x0, #24]
	mov	w0, #0
	ret
LBB0_18:
	str	x12, [x0, #8]
	tbz	w15, #0, LBB0_2
LBB0_19:
	mov	w0, #1
	ret
LBB0_20:
	str	xzr, [x0, #16]
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BITMAP_WORD_BITS,4,2           ; @BITMAP_WORD_BITS
	.comm	_BITMAP_ELEMENT_WORDS,8,3       ; @BITMAP_ELEMENT_WORDS
	.comm	_BITMAP_ELEMENT_ALL_BITS,4,2    ; @BITMAP_ELEMENT_ALL_BITS
	.no_dead_strip	_bmp_iter_and
.subsections_via_symbols
