	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ebitmap_set_bit                ## -- Begin function ebitmap_set_bit
	.p2align	4, 0x90
_ebitmap_set_bit:                       ## @ebitmap_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	addq	$8, %rdi
	movq	8(%r15), %rsi
	xorl	%r14d, %r14d
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	_EBITMAP_SIZE@GOTPCREL(%rip), %r8
	movq	(%r8), %rax
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rcx
	cmpq	%r12, %rcx
	ja	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, %rbx
	leaq	(%rax,%rcx), %rsi
	cmpq	%r12, %rsi
	ja	LBB0_6
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rsi
	movq	%rbx, %r13
	testq	%rsi, %rsi
	jne	LBB0_3
	jmp	LBB0_17
LBB0_1:
	movb	$1, %al
	xorl	%ebx, %ebx
	testl	%edx, %edx
	jne	LBB0_19
	jmp	LBB0_29
LBB0_4:
	movq	%r13, %rbx
LBB0_17:
	cmpq	%r12, %rcx
	setbe	%al
	testl	%edx, %edx
	je	LBB0_29
LBB0_19:
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	%rax, %r13
	movq	_EBITMAP_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_22
## %bb.23:
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_24
LBB0_6:
	testl	%edx, %edx
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ebitmap_node_set_bit
	xorl	%r14d, %r14d
	jmp	LBB0_29
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_29
LBB0_22:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_24:
	movq	%r12, %rax
	subq	%rdx, %rax
	movq	%rax, (%r13)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ebitmap_node_set_bit
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_26
## %bb.25:
	movq	_EBITMAP_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%r13), %rax
	movq	%rax, (%r15)
LBB0_26:
	testq	%rbx, %rbx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_28
## %bb.27:
	movq	8(%rbx), %rax
	movq	%rax, 8(%r13)
	movq	%r13, 8(%rbx)
	jmp	LBB0_29
LBB0_28:
	movq	(%rcx), %rax
	movq	%rax, 8(%r13)
	movq	%r13, (%rcx)
	jmp	LBB0_29
LBB0_8:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r8, %r14
	callq	_ebitmap_node_clr_bit
	movl	16(%rbx), %edi
	movq	(%r14), %rsi
	callq	_find_first_bit
	movl	%eax, %eax
	movq	(%r14), %rcx
	xorl	%r14d, %r14d
	cmpq	%rax, %rcx
	ja	LBB0_29
## %bb.9:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.13:
	testq	%r13, %r13
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_14
	jmp	LBB0_15
LBB0_10:
	testq	%r13, %r13
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_12
## %bb.11:
	addq	(%r13), %rcx
	movq	%rcx, (%r15)
LBB0_14:
	addq	$8, %r13
	movq	%r13, %rdx
LBB0_15:
	movq	%rax, (%rdx)
	movq	%rbx, %rdi
	callq	_kfree
LBB0_29:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	$0, (%r15)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EBITMAP_SIZE,8,3               ## @EBITMAP_SIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ebitmap_set_bit                ; -- Begin function ebitmap_set_bit
	.p2align	2
_ebitmap_set_bit:                       ; @ebitmap_set_bit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x20, x0
	mov	x23, x0
	ldr	x10, [x23, #8]!
	cbz	x10, LBB0_5
; %bb.1:
	mov	x22, #0
Lloh0:
	adrp	x24, _EBITMAP_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EBITMAP_SIZE@GOTPAGEOFF]
	ldr	x8, [x24]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x10]
	cmp	x9, x21
	b.hi	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x19, x10
	add	x10, x8, x9
	cmp	x10, x21
	b.hi	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x10, [x19, #8]
	mov	x22, x19
	cbnz	x10, LBB0_2
	b	LBB0_7
LBB0_5:
	mov	x19, #0
	mov	w24, #1
	cbnz	w2, LBB0_8
	b	LBB0_24
LBB0_6:
	mov	x19, x22
LBB0_7:
	cmp	x9, x21
	cset	w24, ls
	cbz	w2, LBB0_24
LBB0_8:
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_15
; %bb.9:
	mov	x22, x0
Lloh5:
	adrp	x25, _EBITMAP_SIZE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _EBITMAP_SIZE@GOTPAGEOFF]
	ldr	x8, [x25]
	udiv	x9, x21, x8
	mul	x8, x9, x8
	str	x8, [x0]
	mov	x1, x21
	bl	_ebitmap_node_set_bit
	cbz	w24, LBB0_11
; %bb.10:
	ldr	x8, [x22]
	ldr	x9, [x25]
	add	x8, x9, x8
	str	x8, [x20]
LBB0_11:
	mov	w0, #0
	cbz	x19, LBB0_16
; %bb.12:
	ldr	x8, [x19, #8]
	str	x8, [x22, #8]
	str	x22, [x19, #8]
	b	LBB0_25
LBB0_13:
	cbz	w2, LBB0_17
; %bb.14:
	mov	x0, x19
	mov	x1, x21
	bl	_ebitmap_node_set_bit
	b	LBB0_24
LBB0_15:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_25
LBB0_16:
	ldr	x8, [x23]
	str	x8, [x22, #8]
	str	x22, [x23]
	b	LBB0_25
LBB0_17:
	mov	x0, x19
	mov	x1, x21
	bl	_ebitmap_node_clr_bit
	ldr	w0, [x19, #16]
	ldr	x1, [x24]
	bl	_find_first_bit
	ldr	x9, [x24]
	cmp	x9, w0, uxtw
	b.hi	LBB0_24
; %bb.18:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_20
; %bb.19:
	cbnz	x22, LBB0_22
	b	LBB0_23
LBB0_20:
	cbz	x22, LBB0_26
; %bb.21:
	ldr	x10, [x22]
	add	x9, x10, x9
	str	x9, [x20]
LBB0_22:
	add	x23, x22, #8
LBB0_23:
	str	x8, [x23]
	mov	x0, x19
	bl	_kfree
LBB0_24:
	mov	w0, #0
LBB0_25:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_26:
	str	xzr, [x20]
	b	LBB0_23
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EBITMAP_SIZE,8,3               ; @EBITMAP_SIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
