	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	leaq	12(%rsi), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_of_device_get_match_data
	movl	4(%rax), %ecx
	movl	%ecx, 8(%r14)
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_find_property
	movq	_using_generic_binding@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	cmpl	$0, (%r15)
	jne	LBB0_10
## %bb.5:
	movq	_using_legacy_binding@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_notice
	jmp	LBB0_7
LBB0_10:
	movq	_using_legacy_binding@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	je	LBB0_7
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_2
LBB0_7:
	movl	$1, (%r15)
	movl	(%rbx), %edi
	callq	_of_dma_is_coherent
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movq	_ARM_SMMU_FEAT_COHERENT_WALK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r14)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#global-interrupts"

L_.str.1:                               ## @.str.1
	.asciz	"missing #global-interrupts property\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"mmu-masters"

	.comm	_using_generic_binding,4,2      ## @using_generic_binding
	.comm	_using_legacy_binding,4,2       ## @using_legacy_binding
L_.str.3:                               ## @.str.3
	.asciz	"deprecated \"mmu-masters\" DT property in use; DMA API support unavailable\n"

L_.str.4:                               ## @.str.4
	.asciz	"not probing due to mismatched DT properties\n"

	.comm	_ARM_SMMU_FEAT_COHERENT_WALK,4,2 ## @ARM_SMMU_FEAT_COHERENT_WALK
	.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:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
	add	x2, x1, #12
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_property_read_u32
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_2:
	mov	x0, x20
	bl	_dev_err
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x20
	bl	_of_device_get_match_data
	ldr	d0, [x0]
	stur	d0, [x19, #4]
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, #0
	bl	_of_find_property
Lloh9:
	adrp	x8, _using_generic_binding@GOTPAGE
Lloh10:
	ldr	x8, [x8, _using_generic_binding@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w8, #0, #0, ne
	b.eq	LBB0_7
; %bb.5:
Lloh12:
	adrp	x8, _using_legacy_binding@GOTPAGE
Lloh13:
	ldr	x8, [x8, _using_legacy_binding@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w8, w0, w8
	cbz	w8, LBB0_9
; %bb.6:
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_7:
Lloh17:
	adrp	x8, _using_legacy_binding@GOTPAGE
Lloh18:
	ldr	x8, [x8, _using_legacy_binding@GOTPAGEOFF]
	ldr	w9, [x8]
	cbnz	w9, LBB0_10
; %bb.8:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_notice
Lloh21:
	adrp	x8, _using_legacy_binding@GOTPAGE
Lloh22:
	ldr	x8, [x8, _using_legacy_binding@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh23:
	adrp	x8, _using_generic_binding@GOTPAGE
Lloh24:
	ldr	x8, [x8, _using_generic_binding@GOTPAGEOFF]
LBB0_10:
	mov	w9, #1
	str	w9, [x8]
	ldr	w0, [x20]
	bl	_of_dma_is_coherent
	cbz	x0, LBB0_3
; %bb.11:
	mov	w0, #0
Lloh25:
	adrp	x8, _ARM_SMMU_FEAT_COHERENT_WALK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ARM_SMMU_FEAT_COHERENT_WALK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#global-interrupts"

l_.str.1:                               ; @.str.1
	.asciz	"missing #global-interrupts property\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"mmu-masters"

	.comm	_using_generic_binding,4,2      ; @using_generic_binding
	.comm	_using_legacy_binding,4,2       ; @using_legacy_binding
l_.str.3:                               ; @.str.3
	.asciz	"deprecated \"mmu-masters\" DT property in use; DMA API support unavailable\n"

l_.str.4:                               ; @.str.4
	.asciz	"not probing due to mismatched DT properties\n"

	.comm	_ARM_SMMU_FEAT_COHERENT_WALK,4,2 ; @ARM_SMMU_FEAT_COHERENT_WALK
	.no_dead_strip	_arm_smmu_device_dt_probe
.subsections_via_symbols
