	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ebitmap_cpy                    ## -- Begin function ebitmap_cpy
	.p2align	4, 0x90
_ebitmap_cpy:                           ## @ebitmap_cpy
	.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, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_ebitmap_init
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_5
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r13
	xorl	%r15d, %r15d
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movl	12(%r12), %eax
	movl	%eax, 12(%rbx)
	movl	8(%rbx), %edi
	movl	8(%r12), %esi
	movq	_EBITMAP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	callq	_memcpy
	testq	%r15, %r15
	cmoveq	%r13, %r15
	movq	$0, (%rbx)
	movq	%rbx, (%r15)
	movq	(%r12), %r12
	movq	%rbx, %r15
	testq	%r12, %r12
	jne	LBB0_2
LBB0_5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ebitmap_destroy
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EBITMAP_SIZE,4,2               ## @EBITMAP_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ebitmap_cpy                    ; -- Begin function ebitmap_cpy
	.p2align	2
_ebitmap_cpy:                           ; @ebitmap_cpy
	.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	x20, x1
	mov	x19, x0
	bl	_ebitmap_init
	ldr	x22, [x20, #8]
	cbz	x22, LBB0_4
; %bb.1:
	mov	x25, #0
	add	x23, x19, #8
Lloh0:
	adrp	x24, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	adrp	x26, _EBITMAP_SIZE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _EBITMAP_SIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	ldp	w1, w8, [x22, #8]
	str	w8, [x0, #12]
	ldr	w0, [x0, #8]
	ldr	w8, [x26]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #3
	bl	_memcpy
	str	xzr, [x21]
	cmp	x25, #0
	csel	x8, x23, x25, eq
	str	x21, [x8]
	ldr	x22, [x22]
	mov	x25, x21
	cbnz	x22, LBB0_2
LBB0_4:
	mov	w0, #0
	ldr	w8, [x20]
	str	w8, [x19]
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_ebitmap_destroy
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EBITMAP_SIZE,4,2               ; @EBITMAP_SIZE
.subsections_via_symbols
