	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_smmu_probe               ## -- Begin function tegra_smmu_probe
	.p2align	4, 0x90
_tegra_smmu_probe:                      ## @tegra_smmu_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rcx
	movq	%rax, %rbx
	movq	%rax, %r13
	movq	%rax, 16(%r14)
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	24(%rcx), %edi
	callq	_BITS_TO_LONGS
	movslq	%eax, %rsi
	shlq	$3, %rsi
	movl	(%r15), %edx
	movq	%r12, %rdi
	callq	_devm_kzalloc
	movq	%rax, 56(%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	leaq	48(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	44(%rbx), %rdi
	callq	_mutex_init
	movl	8(%r14), %eax
	movl	%eax, 40(%r13)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, 16(%r13)
	movq	%r12, 32(%r13)
	movq	%r14, 24(%r13)
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	subl	(%rax), %edi
	callq	_BIT_MASK
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %ecx
	movl	%ecx, (%r13)
	movq	(%r14), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movq	16(%r13), %rax
	movl	(%rax), %edx
	leal	(%rdx,%rdx), %ecx
	decl	%ecx
	movl	%ecx, 4(%r13)
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %r14
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_dbg
	movq	_SMMU_PTC_CONFIG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$63, %edi
	callq	_SMMU_PTC_CONFIG_INDEX_MAP
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movq	%r15, %r12
	cmpq	$0, 16(%r15)
	je	LBB0_5
## %bb.4:
	movl	$8, %edi
	callq	_SMMU_PTC_CONFIG_REQ_LIMIT
	orl	%eax, %ebx
LBB0_5:
	movq	_SMMU_PTC_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_smmu_writel
	movq	_SMMU_TLB_CONFIG_HIT_UNDER_MISS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_SMMU_TLB_CONFIG_ACTIVE_LINES
	orl	%ebx, %eax
	cmpq	$0, 8(%r12)
	movl	$0, %ecx
	je	LBB0_7
## %bb.6:
	movq	_SMMU_TLB_CONFIG_ROUND_ROBIN_ARBITRATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_7:
	orl	%ecx, %eax
	movq	_SMMU_TLB_CONFIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_smmu_writel
	movq	%r13, %rdi
	callq	_smmu_flush_ptc_all
	movq	%r13, %rdi
	callq	_smmu_flush_tlb
	movq	_SMMU_CONFIG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SMMU_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_smmu_writel
	movq	%r13, %rdi
	callq	_smmu_flush
	xorl	%eax, %eax
	callq	_tegra_smmu_ahb_enable
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	addq	$8, %rbx
	movq	%r14, %rdi
	callq	_dev_name
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_iommu_device_sysfs_add
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %edi
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_10:
	movq	_tegra_smmu_ops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_iommu_device_set_ops
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_iommu_device_set_fwnode
	movq	%rbx, %rdi
	callq	_iommu_device_register
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_iommu_device_sysfs_remove
	movl	%r14d, %edi
	jmp	LBB0_9
LBB0_12:
	movq	%rbx, %r14
	movq	_platform_bus_type@GOTPCREL(%rip), %rdi
	movq	_tegra_smmu_ops@GOTPCREL(%rip), %rsi
	callq	_bus_set_iommu
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movq	_CONFIG_DEBUG_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	callq	_tegra_smmu_debugfs_init
LBB0_16:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_iommu_device_unregister
	movq	%r14, %rdi
	callq	_iommu_device_sysfs_remove
	movl	%ebx, %edi
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"address bits: %u, PFN mask: %#lx\n"

L_.str.1:                               ## @.str.1
	.asciz	"TLB lines: %u, mask: %#lx\n"

	.comm	_SMMU_PTC_CONFIG_ENABLE,4,2     ## @SMMU_PTC_CONFIG_ENABLE
	.comm	_SMMU_PTC_CONFIG,4,2            ## @SMMU_PTC_CONFIG
	.comm	_SMMU_TLB_CONFIG_HIT_UNDER_MISS,4,2 ## @SMMU_TLB_CONFIG_HIT_UNDER_MISS
	.comm	_SMMU_TLB_CONFIG_ROUND_ROBIN_ARBITRATION,4,2 ## @SMMU_TLB_CONFIG_ROUND_ROBIN_ARBITRATION
	.comm	_SMMU_TLB_CONFIG,4,2            ## @SMMU_TLB_CONFIG
	.comm	_SMMU_CONFIG_ENABLE,4,2         ## @SMMU_CONFIG_ENABLE
	.comm	_SMMU_CONFIG,4,2                ## @SMMU_CONFIG
	.comm	_tegra_smmu_ops,4,2             ## @tegra_smmu_ops
	.comm	_platform_bus_type,4,2          ## @platform_bus_type
	.comm	_CONFIG_DEBUG_FS,4,2            ## @CONFIG_DEBUG_FS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_smmu_probe               ; -- Begin function tegra_smmu_probe
	.p2align	2
_tegra_smmu_probe:                      ; @tegra_smmu_probe
	.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	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	str	x0, [x22, #16]
	ldr	w0, [x21, #24]
	bl	_BITS_TO_LONGS
                                        ; kill: def $w0 killed $w0 def $x0
	sbfiz	x1, x0, #3, #32
	ldr	w2, [x23]
	mov	x0, x20
	bl	_devm_kzalloc
	str	x0, [x19, #56]
	cbz	x0, LBB0_8
; %bb.2:
	add	x0, x19, #48
	bl	_INIT_LIST_HEAD
	add	x0, x19, #44
	bl	_mutex_init
	ldr	w8, [x22, #8]
	str	w8, [x19, #40]
	stp	x22, x20, [x19, #24]
	str	x21, [x19, #16]
	ldr	x8, [x22]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	sub	w0, w8, w9
	bl	_BIT_MASK
	sub	w3, w0, #1
	str	w3, [x19]
	ldr	x8, [x22]
	ldr	w2, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	x8, [x19, #16]
	ldr	w2, [x8]
	lsl	w8, w2, #1
	sub	w3, w8, #1
	str	w3, [x19, #4]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
Lloh9:
	adrp	x8, _SMMU_PTC_CONFIG_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SMMU_PTC_CONFIG_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	mov	w0, #63
	bl	_SMMU_PTC_CONFIG_INDEX_MAP
	orr	w22, w0, w22
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w0, #8
	bl	_SMMU_PTC_CONFIG_REQ_LIMIT
	orr	w22, w0, w22
LBB0_4:
Lloh12:
	adrp	x8, _SMMU_PTC_CONFIG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SMMU_PTC_CONFIG@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_smmu_writel
Lloh15:
	adrp	x8, _SMMU_TLB_CONFIG_HIT_UNDER_MISS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SMMU_TLB_CONFIG_HIT_UNDER_MISS@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_SMMU_TLB_CONFIG_ACTIVE_LINES
	orr	w8, w0, w22
	ldr	x9, [x21, #8]
Lloh18:
	adrp	x10, _SMMU_TLB_CONFIG_ROUND_ROBIN_ARBITRATION@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SMMU_TLB_CONFIG_ROUND_ROBIN_ARBITRATION@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w1, w8, w9
Lloh21:
	adrp	x8, _SMMU_TLB_CONFIG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SMMU_TLB_CONFIG@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_smmu_writel
	mov	x0, x19
	bl	_smmu_flush_ptc_all
	mov	x0, x19
	bl	_smmu_flush_tlb
Lloh24:
	adrp	x8, _SMMU_CONFIG_ENABLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SMMU_CONFIG_ENABLE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _SMMU_CONFIG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SMMU_CONFIG@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_smmu_writel
	mov	x0, x19
	bl	_smmu_flush
	bl	_tegra_smmu_ahb_enable
	add	x21, x19, #8
	mov	x0, x20
	bl	_dev_name
	mov	x3, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, #0
	bl	_iommu_device_sysfs_add
	cbnz	w0, LBB0_9
; %bb.5:
Lloh30:
	adrp	x1, _tegra_smmu_ops@GOTPAGE
Lloh31:
	ldr	x1, [x1, _tegra_smmu_ops@GOTPAGEOFF]
	mov	x0, x21
	bl	_iommu_device_set_ops
	ldr	w1, [x20]
	mov	x0, x21
	bl	_iommu_device_set_fwnode
	mov	x0, x21
	bl	_iommu_device_register
	cbz	w0, LBB0_10
; %bb.6:
	mov	x20, x0
LBB0_7:
	mov	x0, x21
	bl	_iommu_device_sysfs_remove
	mov	x0, x20
	b	LBB0_9
LBB0_8:
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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	_ERR_PTR
LBB0_10:
Lloh35:
	adrp	x0, _platform_bus_type@GOTPAGE
Lloh36:
	ldr	x0, [x0, _platform_bus_type@GOTPAGEOFF]
Lloh37:
	adrp	x1, _tegra_smmu_ops@GOTPAGE
Lloh38:
	ldr	x1, [x1, _tegra_smmu_ops@GOTPAGEOFF]
	bl	_bus_set_iommu
	tbnz	w0, #31, LBB0_14
; %bb.11:
Lloh39:
	adrp	x8, _CONFIG_DEBUG_FS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CONFIG_DEBUG_FS@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_tegra_smmu_debugfs_init
LBB0_13:
	mov	x0, x19
	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
	ret
LBB0_14:
	mov	x20, x0
	mov	x0, x21
	bl	_iommu_device_unregister
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"address bits: %u, PFN mask: %#lx\n"

l_.str.1:                               ; @.str.1
	.asciz	"TLB lines: %u, mask: %#lx\n"

	.comm	_SMMU_PTC_CONFIG_ENABLE,4,2     ; @SMMU_PTC_CONFIG_ENABLE
	.comm	_SMMU_PTC_CONFIG,4,2            ; @SMMU_PTC_CONFIG
	.comm	_SMMU_TLB_CONFIG_HIT_UNDER_MISS,4,2 ; @SMMU_TLB_CONFIG_HIT_UNDER_MISS
	.comm	_SMMU_TLB_CONFIG_ROUND_ROBIN_ARBITRATION,4,2 ; @SMMU_TLB_CONFIG_ROUND_ROBIN_ARBITRATION
	.comm	_SMMU_TLB_CONFIG,4,2            ; @SMMU_TLB_CONFIG
	.comm	_SMMU_CONFIG_ENABLE,4,2         ; @SMMU_CONFIG_ENABLE
	.comm	_SMMU_CONFIG,4,2                ; @SMMU_CONFIG
	.comm	_tegra_smmu_ops,4,2             ; @tegra_smmu_ops
	.comm	_platform_bus_type,4,2          ; @platform_bus_type
	.comm	_CONFIG_DEBUG_FS,4,2            ; @CONFIG_DEBUG_FS
.subsections_via_symbols
