	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sm_mkoffset
_sm_mkoffset:                           ## @sm_mkoffset
	.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	%ecx, %r14d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_SM_SECTOR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	decl	%edi
	andl	%ecx, %edi
	callq	_WARN_ON
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpl	%ebx, (%r15)
	setle	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_WARN_ON
	xorl	%edi, %edi
	cmpl	%r12d, 4(%r15)
	setle	%dil
	callq	_WARN_ON
	xorl	%edi, %edi
	cmpl	%r14d, 8(%r15)
	setle	%dil
	callq	_WARN_ON
	cmpl	$-1, %r12d
	je	LBB0_4
## %bb.5:
	movq	_SM_MAX_ZONE_SIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	addl	%r12d, %ebx
	imull	8(%r15), %ebx
	addl	%r14d, %ebx
	jmp	LBB0_6
LBB0_4:
	movl	$-1, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SM_SECTOR_SIZE,4,2             ## @SM_SECTOR_SIZE
	.comm	_SM_MAX_ZONE_SIZE,4,2           ## @SM_MAX_ZONE_SIZE
	.no_dead_strip	_sm_mkoffset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sm_mkoffset
_sm_mkoffset:                           ; @sm_mkoffset
	.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	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _SM_SECTOR_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SM_SECTOR_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #1
	and	w0, w8, w3
	bl	_WARN_ON
	tbnz	w22, #31, LBB0_2
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, w22
	cset	w0, le
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	bl	_WARN_ON
	ldr	w8, [x21, #4]
	cmp	w8, w20
	cset	w0, le
	bl	_WARN_ON
	ldr	w8, [x21, #8]
	cmp	w8, w19
	cset	w0, le
	bl	_WARN_ON
	cmn	w20, #1
	b.eq	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _SM_MAX_ZONE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SM_MAX_ZONE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	madd	w8, w8, w22, w20
	ldr	w9, [x21, #8]
	madd	w0, w8, w9, w19
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SM_SECTOR_SIZE,4,2             ; @SM_SECTOR_SIZE
	.comm	_SM_MAX_ZONE_SIZE,4,2           ; @SM_MAX_ZONE_SIZE
	.no_dead_strip	_sm_mkoffset
.subsections_via_symbols
