	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmp_iter_set
_bmp_iter_set:                          ## @bmp_iter_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %edx
	testl	%edx, %edx
	jne	LBB0_6
## %bb.1:
	movl	(%rsi), %eax
	movq	_BITMAP_WORD_BITS@GOTPCREL(%rip), %r9
	movl	(%r9), %ecx
	leal	(%rax,%rcx), %r8d
	decl	%r8d
	movl	%r8d, %eax
	xorl	%edx, %edx
	divl	%ecx
	subl	%edx, %r8d
	movl	%r8d, (%rsi)
	movq	8(%rdi), %rcx
	movq	16(%rdi), %r10
	incq	%rcx
	movq	_BITMAP_ELEMENT_WORDS@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	_BITMAP_ELEMENT_ALL_BITS@GOTPCREL(%rip), %r8
	cmpq	%r11, %rcx
	je	LBB0_10
LBB0_3:
	movq	(%r10), %rax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %edx
	movl	%edx, (%rdi)
	testl	%edx, %edx
	jne	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r9), %edx
	addl	%edx, (%rsi)
	incq	%rcx
	cmpq	%rcx, %r11
	jne	LBB0_4
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r11, 8(%rdi)
	movq	16(%r10), %r10
	movq	%r10, 16(%rdi)
	testq	%r10, %r10
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r8), %eax
	imull	8(%r10), %eax
	movl	%eax, (%rsi)
	xorl	%ecx, %ecx
	cmpq	%r11, %rcx
	jne	LBB0_3
	jmp	LBB0_10
LBB0_5:
	movq	%rcx, 8(%rdi)
LBB0_6:
	movl	$1, %eax
	testb	$1, %dl
	jne	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	sarl	%edx
	movl	%edx, (%rdi)
	incl	(%rsi)
	movl	(%rdi), %edx
	testb	$1, %dl
	je	LBB0_8
LBB0_12:
	popq	%rbp
	retq
LBB0_11:
	xorl	%eax, %eax
	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_set
.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
_bmp_iter_set:                          ; @bmp_iter_set
	.cfi_startproc
; %bb.0:
	ldr	w13, [x0]
	cbz	w13, LBB0_4
; %bb.1:
	tbnz	w13, #0, LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	asr	w8, w13, #1
	str	w8, [x0]
	ldr	w8, [x1]
	add	w8, w8, #1
	str	w8, [x1]
	ldr	w13, [x0]
	tbz	w13, #0, LBB0_2
LBB0_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	x14, [x9]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x14, x12, lsl #2]
	str	w13, [x0]
	cbnz	w13, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w13, [x8]
	ldr	w15, [x1]
	add	w13, w15, w13
	str	w13, [x1]
	add	x12, x12, #1
	cmp	x10, x12
	b.ne	LBB0_6
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x9, #16]
	stp	x10, x9, [x0, #8]
	cbz	x9, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x12, #0
	ldr	w13, [x9, #8]
	ldr	w14, [x11]
	mul	w13, w14, w13
	str	w13, [x1]
	cmp	x12, x10
	b.ne	LBB0_5
	b	LBB0_8
LBB0_10:
	str	x12, [x0, #8]
	tbnz	w13, #0, LBB0_3
	b	LBB0_2
LBB0_11:
	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_set
.subsections_via_symbols
