	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_smmu_get_step_for_sid
_arm_smmu_get_step_for_sid:             ## @arm_smmu_get_step_for_sid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ARM_SMMU_FEAT_2_LVL_STRTAB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_STRTAB_SPLIT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%esi, %edx
	sarl	%cl, %edx
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	andl	%esi, %eax
	movq	_STRTAB_STE_DWORDS@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movq	_STRTAB_L1_DESC_DWORDS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rsi
	movslq	%edx, %rcx
	imulq	%rsi, %rcx
	shlq	$3, %rcx
	addq	16(%rdi), %rcx
	jmp	LBB0_3
LBB0_2:
	addq	$8, %rdi
	movq	_STRTAB_STE_DWORDS@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	movl	%esi, %eax
	movq	%rdi, %rcx
LBB0_3:
	cltq
	shlq	$2, %rax
	addq	(%rcx), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARM_SMMU_FEAT_2_LVL_STRTAB,4,2 ## @ARM_SMMU_FEAT_2_LVL_STRTAB
	.comm	_STRTAB_SPLIT,4,2               ## @STRTAB_SPLIT
	.comm	_STRTAB_L1_DESC_DWORDS,4,2      ## @STRTAB_L1_DESC_DWORDS
	.comm	_STRTAB_STE_DWORDS,4,2          ## @STRTAB_STE_DWORDS
	.no_dead_strip	_arm_smmu_get_step_for_sid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_smmu_get_step_for_sid
_arm_smmu_get_step_for_sid:             ; @arm_smmu_get_step_for_sid
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _ARM_SMMU_FEAT_2_LVL_STRTAB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ARM_SMMU_FEAT_2_LVL_STRTAB@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _STRTAB_SPLIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STRTAB_SPLIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _STRTAB_L1_DESC_DWORDS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STRTAB_L1_DESC_DWORDS@GOTPAGEOFF]
	asr	w10, w1, w8
Lloh8:
	ldr	w9, [x9]
	mul	w10, w10, w9
	ldr	x11, [x0, #16]
	mov	w9, #-1
	lsl	w8, w9, w8
	bic	w8, w1, w8
Lloh9:
	adrp	x9, _STRTAB_STE_DWORDS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _STRTAB_STE_DWORDS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	mul	w9, w9, w8
	add	x8, x11, w10, sxtw #3
	b	LBB0_3
LBB0_2:
	add	x8, x0, #8
Lloh12:
	adrp	x9, _STRTAB_STE_DWORDS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _STRTAB_STE_DWORDS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	mul	w9, w9, w1
LBB0_3:
	ldr	x8, [x8]
	add	x0, x8, w9, sxtw #2
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ARM_SMMU_FEAT_2_LVL_STRTAB,4,2 ; @ARM_SMMU_FEAT_2_LVL_STRTAB
	.comm	_STRTAB_SPLIT,4,2               ; @STRTAB_SPLIT
	.comm	_STRTAB_L1_DESC_DWORDS,4,2      ; @STRTAB_L1_DESC_DWORDS
	.comm	_STRTAB_STE_DWORDS,4,2          ; @STRTAB_STE_DWORDS
	.no_dead_strip	_arm_smmu_get_step_for_sid
.subsections_via_symbols
