	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bitmap_set_bit                 ## -- Begin function bitmap_set_bit
	.p2align	4, 0x90
_bitmap_set_bit:                        ## @bitmap_set_bit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movl	%edi, %r14d
	callq	_bitmap_find_bit
	movq	%rax, %rsi
	movq	_BITMAP_WORD_BITS@GOTPCREL(%rip), %rcx
	movl	%r12d, %eax
	cltd
	idivl	(%rcx)
	movl	%edx, %ecx
	movq	_BITMAP_ELEMENT_WORDS@GOTPCREL(%rip), %rdi
	cltd
	idivl	(%rdi)
	movl	%edx, %r15d
	movl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	8(%rsi), %rax
	movl	%r15d, %ecx
	orl	%ebx, (%rax,%rcx,4)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%r14d, %edi
	callq	_bitmap_element_allocate
	movq	%rax, %rsi
	movq	_BITMAP_ELEMENT_ALL_BITS@GOTPCREL(%rip), %rcx
	movl	%r12d, %eax
	cltd
	idivl	(%rcx)
	movl	%eax, (%rsi)
	movq	8(%rsi), %rax
	movl	%r15d, %ecx
	movl	%ebx, (%rax,%rcx,4)
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bitmap_element_link            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BITMAP_WORD_BITS,4,2           ## @BITMAP_WORD_BITS
	.comm	_BITMAP_ELEMENT_WORDS,4,2       ## @BITMAP_ELEMENT_WORDS
	.comm	_BITMAP_ELEMENT_ALL_BITS,4,2    ## @BITMAP_ELEMENT_ALL_BITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bitmap_set_bit                 ; -- Begin function bitmap_set_bit
	.p2align	2
_bitmap_set_bit:                        ; @bitmap_set_bit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	bl	_bitmap_find_bit
Lloh0:
	adrp	x8, _BITMAP_WORD_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BITMAP_WORD_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w9, w20, w8
Lloh3:
	adrp	x10, _BITMAP_ELEMENT_WORDS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BITMAP_ELEMENT_WORDS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	sdiv	w11, w9, w10
	msub	w21, w11, w10, w9
	msub	w8, w9, w8, w20
	mov	w9, #1
	lsl	w22, w9, w8
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0, #8]
	lsl	x9, x21, #2
	ldr	w10, [x8, x9]
	orr	w10, w10, w22
	str	w10, [x8, x9]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x19
	bl	_bitmap_element_allocate
	mov	x1, x0
Lloh6:
	adrp	x8, _BITMAP_ELEMENT_ALL_BITS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BITMAP_ELEMENT_ALL_BITS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	sdiv	w8, w20, w8
	str	w8, [x0]
	ldr	x8, [x0, #8]
	str	w22, [x8, w21, uxtw #2]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_bitmap_element_link
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BITMAP_WORD_BITS,4,2           ; @BITMAP_WORD_BITS
	.comm	_BITMAP_ELEMENT_WORDS,4,2       ; @BITMAP_ELEMENT_WORDS
	.comm	_BITMAP_ELEMENT_ALL_BITS,4,2    ; @BITMAP_ELEMENT_ALL_BITS
.subsections_via_symbols
