	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_smmu_of_xlate
_arm_smmu_of_xlate:                     ## @arm_smmu_of_xlate
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$0, -28(%rbp)
	cmpl	$0, (%rsi)
	jle	LBB0_1
## %bb.4:
	movq	_SMR_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	callq	_FIELD_PREP
	movl	%eax, %r15d
	movl	%eax, -28(%rbp)
	cmpl	$2, (%rbx)
	jl	LBB0_2
## %bb.5:
	movq	_SMR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	4(%rax), %esi
	jmp	LBB0_6
LBB0_1:
	xorl	%r15d, %r15d
LBB0_2:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	_SMR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-32(%rbp), %esi
LBB0_6:
	callq	_FIELD_PREP
	orl	%eax, %r15d
	movl	%r15d, -28(%rbp)
LBB0_7:
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_iommu_fwspec_add_ids
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMR_ID,4,2                     ## @SMR_ID
	.comm	_SMR_MASK,4,2                   ## @SMR_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stream-match-mask"

	.no_dead_strip	_arm_smmu_of_xlate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_smmu_of_xlate
_arm_smmu_of_xlate:                     ; @arm_smmu_of_xlate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	str	wzr, [sp, #8]
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _SMR_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMR_ID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x21, #8]
	ldr	w1, [x8]
	bl	_FIELD_PREP
	mov	x20, x0
	str	w0, [sp, #8]
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _SMR_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x21, #8]
	ldr	w1, [x8, #4]
	b	LBB0_6
LBB0_3:
	mov	w20, #0
LBB0_4:
	ldr	w0, [x21, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbnz	w0, LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _SMR_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SMR_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [sp, #12]
LBB0_6:
	bl	_FIELD_PREP
	orr	w8, w20, w0
	str	w8, [sp, #8]
LBB0_7:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_iommu_fwspec_add_ids
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SMR_ID,4,2                     ; @SMR_ID
	.comm	_SMR_MASK,4,2                   ; @SMR_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stream-match-mask"

	.no_dead_strip	_arm_smmu_of_xlate
.subsections_via_symbols
