	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm_ll_extend                   ## -- Begin function sm_ll_extend
	.p2align	4, 0x90
_sm_ll_extend:                          ## @sm_ll_extend
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movl	24(%r14), %esi
	addl	%edi, %r12d
	callq	_dm_sector_div_up
	movl	%eax, %ebx
	movl	24(%r14), %esi
	movl	%r12d, %edi
	callq	_dm_sector_div_up
	movl	%eax, %r15d
	movl	24(%r14), %esi
	movl	%r12d, %edi
	callq	_dm_sector_div_up
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	*8(%r14)
	cmpl	%eax, %r13d
	jbe	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DMERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_8
LBB0_2:
	movl	%r12d, (%r14)
	xorl	%r12d, %r12d
	cmpl	%r15d, %ebx
	jae	LBB0_8
## %bb.3:
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	28(%r14), %edi
	movq	_dm_sm_bitmap_validator@GOTPCREL(%rip), %rsi
	movq	%r13, %rdx
	callq	_dm_tm_new_block
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdi
	callq	_dm_block_location
	movl	%eax, %edi
	callq	_cpu_to_le64
	movl	%eax, -52(%rbp)
	movl	28(%r14), %edi
	movq	-48(%rbp), %rsi
	callq	_dm_tm_unlock
	movl	24(%r14), %edi
	callq	_cpu_to_le32
	movl	%eax, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	%r14, %rdi
	movl	%ebx, %esi
	leaq	-64(%rbp), %rdx
	callq	*16(%r14)
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_5
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"space map too large"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_dm_sm_bitmap_validator,4,2     ## @dm_sm_bitmap_validator
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm_ll_extend                   ; -- Begin function sm_ll_extend
	.p2align	2
_sm_ll_extend:                          ; @sm_ll_extend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	w0, [x0]
	add	w22, w0, w1
	ldr	w1, [x19, #24]
	bl	_dm_sector_div_up
	mov	x20, x0
	ldr	w1, [x19, #24]
	mov	x0, x22
	bl	_dm_sector_div_up
	mov	x21, x0
	ldr	w1, [x19, #24]
	mov	x0, x22
	bl	_dm_sector_div_up
	mov	x23, x0
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	cmp	w23, w0
	b.ls	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_2:
	str	w22, [x19]
	cmp	w20, w21
	b.hs	LBB0_7
; %bb.3:
Lloh5:
	adrp	x22, _dm_sm_bitmap_validator@GOTPAGE
Lloh6:
	ldr	x22, [x22, _dm_sm_bitmap_validator@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #28]
	add	x2, sp, #24
	mov	x1, x22
	bl	_dm_tm_new_block
	tbnz	w0, #31, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #24]
	bl	_dm_block_location
	bl	_cpu_to_le64
	str	w0, [sp, #20]
	ldr	w0, [x19, #28]
	ldr	x1, [sp, #24]
	bl	_dm_tm_unlock
	ldr	w0, [x19, #24]
	bl	_cpu_to_le32
	str	w0, [sp, #16]
	str	xzr, [sp, #8]
	ldr	x8, [x19, #16]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	blr	x8
	tbnz	w0, #31, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	cmp	w21, w20
	b.ne	LBB0_4
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"space map too large"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_dm_sm_bitmap_validator,4,2     ; @dm_sm_bitmap_validator
.subsections_via_symbols
