	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_reserve
	movl	%eax, %esi
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	_BITMAP_BITS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	cmpq	(%r14), %rax
	jbe	LBB0_6
LBB0_5:
	movq	%rax, (%r14)
LBB0_6:
	movq	_BITMAP_WMASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movl	$1, %edx
	movl	%ebx, %ecx
	shlq	%cl, %rdx
	movq	8(%r14), %rcx
	orq	%rdx, (%rcx,%rax,8)
LBB0_7:
	movl	%esi, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	cmpq	(%r14), %rax
	ja	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_BITMAP_BITS,8,3                ## @BITMAP_BITS
	.comm	_BITMAP_WMASK,8,3               ## @BITMAP_WMASK
.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_reserve
	cbnz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _BITMAP_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BITMAP_BITS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	udiv	x8, x20, x8
	ldr	x9, [x19]
	cmp	x8, x9
	b.ls	LBB0_3
; %bb.2:
	str	x8, [x19]
LBB0_3:
Lloh3:
	adrp	x9, _BITMAP_WMASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BITMAP_WMASK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	and	x9, x9, x20
	mov	w10, #1
	lsl	x9, x10, x9
	ldr	x10, [x19, #8]
	lsl	x8, x8, #3
	ldr	x11, [x10, x8]
	orr	x9, x11, x9
	str	x9, [x10, x8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BITMAP_BITS,8,3                ; @BITMAP_BITS
	.comm	_BITMAP_WMASK,8,3               ; @BITMAP_WMASK
.subsections_via_symbols
