	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_smmu_write_smr
_arm_smmu_write_smr:                    ## @arm_smmu_write_smr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movslq	%esi, %r14
	movq	_SMR_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shlq	$4, %r14
	movl	12(%r13,%r14), %esi
	callq	_FIELD_PREP
	movl	%eax, %r12d
	movq	_SMR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r13,%r14), %esi
	callq	_FIELD_PREP
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movq	_ARM_SMMU_FEAT_EXIDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, (%r13,%r14)
	je	LBB0_3
## %bb.2:
	movq	_SMR_VALID@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_3:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_ARM_SMMU_GR0_SMR
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_arm_smmu_gr0_write             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SMR_ID,4,2                     ## @SMR_ID
	.comm	_SMR_MASK,4,2                   ## @SMR_MASK
	.comm	_ARM_SMMU_FEAT_EXIDS,4,2        ## @ARM_SMMU_FEAT_EXIDS
	.comm	_SMR_VALID,4,2                  ## @SMR_VALID
	.no_dead_strip	_arm_smmu_write_smr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_smmu_write_smr
_arm_smmu_write_smr:                    ; @arm_smmu_write_smr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _SMR_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMR_ID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x23, x22, w1, sxtw #4
	ldr	w1, [x23, #12]
	bl	_FIELD_PREP
	mov	x21, x0
Lloh3:
	adrp	x8, _SMR_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x23, #8]
	bl	_FIELD_PREP
	orr	w21, w0, w21
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _ARM_SMMU_FEAT_EXIDS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ARM_SMMU_FEAT_EXIDS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.1:
	sxtw	x8, w20
	lsl	x8, x8, #4
	ldr	x8, [x22, x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _SMR_VALID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SMR_VALID@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_3:
	mov	x0, x20
	bl	_ARM_SMMU_GR0_SMR
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_arm_smmu_gr0_write
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SMR_ID,4,2                     ; @SMR_ID
	.comm	_SMR_MASK,4,2                   ; @SMR_MASK
	.comm	_ARM_SMMU_FEAT_EXIDS,4,2        ; @ARM_SMMU_FEAT_EXIDS
	.comm	_SMR_VALID,4,2                  ; @SMR_VALID
	.no_dead_strip	_arm_smmu_write_smr
.subsections_via_symbols
