	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_smmu_device_dt_probe
_arm_smmu_device_dt_probe:              ## @arm_smmu_device_dt_probe
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-36(%rbp), %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_4
LBB0_2:
	movl	-36(%rbp), %edx
	cmpl	$1, %edx
	je	LBB0_5
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_4:
	movl	%ebx, %r15d
LBB0_5:
	movq	%r14, %rdi
	callq	_parse_driver_options
	movl	(%r12), %edi
	callq	_of_dma_is_coherent
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_ARM_SMMU_FEAT_COHERENCY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_7:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#iommu-cells"

L_.str.1:                               ## @.str.1
	.asciz	"missing #iommu-cells property\n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid #iommu-cells value (%d)\n"

	.comm	_ARM_SMMU_FEAT_COHERENCY,4,2    ## @ARM_SMMU_FEAT_COHERENCY
	.no_dead_strip	_arm_smmu_device_dt_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_smmu_device_dt_probe
_arm_smmu_device_dt_probe:              ; @arm_smmu_device_dt_probe
	.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	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	w0, [x0]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_2:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.3:
	mov	w20, #0
	b	LBB0_6
LBB0_4:
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	mov	x0, x21
	bl	_dev_err
LBB0_6:
	mov	x0, x19
	bl	_parse_driver_options
	ldr	w0, [x21]
	bl	_of_dma_is_coherent
	cbz	x0, LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _ARM_SMMU_FEAT_COHERENCY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ARM_SMMU_FEAT_COHERENCY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_8:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#iommu-cells"

l_.str.1:                               ; @.str.1
	.asciz	"missing #iommu-cells property\n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid #iommu-cells value (%d)\n"

	.comm	_ARM_SMMU_FEAT_COHERENCY,4,2    ; @ARM_SMMU_FEAT_COHERENCY
	.no_dead_strip	_arm_smmu_device_dt_probe
.subsections_via_symbols
