	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_smmu_free_sme
_arm_smmu_free_sme:                     ## @arm_smmu_free_sme
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rdx
	movslq	%esi, %rcx
	xorl	%eax, %eax
	decq	(%rdx,%rcx,8)
	je	LBB0_1
LBB0_3:
	popq	%rbp
	retq
LBB0_1:
	movq	_s2cr_init_val@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdx,%rcx,8)
	movq	(%rdi), %rdx
	movl	$1, %eax
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	movl	$0, (%rdx,%rcx,4)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s2cr_init_val,8,3              ## @s2cr_init_val
	.no_dead_strip	_arm_smmu_free_sme
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_smmu_free_sme
_arm_smmu_free_sme:                     ; @arm_smmu_free_sme
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0, #8]
	sbfiz	x9, x1, #3, #32
	ldr	x10, [x8, x9]
	subs	x10, x10, #1
	str	x10, [x8, x9]
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	ret
LBB0_2:
	sxtw	x9, w1
Lloh0:
	adrp	x10, _s2cr_init_val@GOTPAGE
Lloh1:
	ldr	x10, [x10, _s2cr_init_val@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	str	x10, [x8, x9, lsl #3]
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.3:
	str	wzr, [x8, x9, lsl #2]
LBB0_4:
	mov	w0, #1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_s2cr_init_val,8,3              ; @s2cr_init_val
	.no_dead_strip	_arm_smmu_free_sme
.subsections_via_symbols
