	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipmmu_probe
_ipmmu_probe:                           ## @ipmmu_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, 48(%rax)
	movq	%rax, %rdi
	addq	$44, %rdi
	callq	_spin_lock_init
	movl	16(%rbx), %edi
	movq	_IPMMU_CTX_MAX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_bitmap_zero
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 8(%rbx)
	movl	40(%rbx), %edi
	movq	_IPMMU_CTX_INVALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	32(%rax), %edx
	callq	_memset
	movl	$40, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dma_set_mask_and_coherent
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 36(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	36(%rbx), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	8(%rbx), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_8
## %bb.7:
	movq	_IM_NS_ALIAS_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, 36(%rbx)
LBB0_8:
	movl	(%r15), %edi
	movl	16(%rax), %esi
	callq	_min
	movl	%eax, 32(%rbx)
	movq	8(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.9:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_find_property
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_ipmmu_find_root
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_12:
	movq	%rbx, 24(%rbx)
LBB0_13:
	movq	%rbx, %rdi
	callq	_ipmmu_is_root
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_5
## %bb.15:
	movq	_ipmmu_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%rbx, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_23
## %bb.16:
	movq	%rbx, %rdi
	callq	_ipmmu_device_reset
	movq	8(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_18
## %bb.17:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movl	16(%rbx), %esi
	xorl	%edi, %edi
	callq	_set_bit
LBB0_18:
	movq	8(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_21
## %bb.19:
	movq	%rbx, %rdi
	callq	_ipmmu_is_root
	testq	%rax, %rax
	je	LBB0_21
LBB0_20:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_21:
	movq	%r14, %rdi
	callq	_dev_name
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_iommu_device_sysfs_add
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.22:
	movq	_ipmmu_ops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_iommu_device_set_ops
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_iommu_device_set_fwnode
	movq	%rbx, %rdi
	callq	_iommu_device_register
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_20
LBB0_23:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %r15d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate device data\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IPMMU_CTX_MAX,4,2              ## @IPMMU_CTX_MAX
	.comm	_IPMMU_CTX_INVALID,4,2          ## @IPMMU_CTX_INVALID
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_IM_NS_ALIAS_OFFSET,8,3         ## @IM_NS_ALIAS_OFFSET
L_.str.1:                               ## @.str.1
	.asciz	"renesas,ipmmu-main"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_ipmmu_irq,4,2                  ## @ipmmu_irq
L_.str.2:                               ## @.str.2
	.asciz	"failed to request IRQ %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"IPMMU context 0 is reserved\n"

	.comm	_ipmmu_ops,4,2                  ## @ipmmu_ops
	.comm	_platform_bus_type,4,2          ## @platform_bus_type
	.no_dead_strip	_ipmmu_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipmmu_probe
_ipmmu_probe:                           ; @ipmmu_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, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #48]
	add	x0, x0, #44
	bl	_spin_lock_init
	ldr	w0, [x20, #16]
Lloh3:
	adrp	x21, _IPMMU_CTX_MAX@GOTPAGE
Lloh4:
	ldr	x21, [x21, _IPMMU_CTX_MAX@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_bitmap_zero
	mov	x0, x19
	bl	_of_device_get_match_data
	str	x0, [x20, #8]
	ldr	w8, [x20, #40]
Lloh5:
	adrp	x9, _IPMMU_CTX_INVALID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IPMMU_CTX_INVALID@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	ldr	w2, [x0, #32]
	mov	x0, x8
	bl	_memset
	mov	w0, #40
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_dma_set_mask_and_coherent
Lloh8:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	w0, [x20, #36]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x20, #36]
	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
	b	_PTR_ERR
LBB0_3:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, 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
	add	sp, sp, #64
	ret
LBB0_6:
	ldr	x8, [x20, #8]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_8
; %bb.7:
Lloh15:
	adrp	x9, _IM_NS_ALIAS_OFFSET@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IM_NS_ALIAS_OFFSET@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldr	w10, [x20, #36]
	add	w9, w10, w9
	str	w9, [x20, #36]
LBB0_8:
	ldr	w0, [x21]
	ldr	w1, [x8, #16]
	bl	_min
	str	w0, [x20, #32]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_12
; %bb.9:
	ldr	x0, [x19]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, #0
	bl	_of_find_property
	cbz	w0, LBB0_12
; %bb.10:
	bl	_ipmmu_find_root
	str	x0, [x20, #24]
	cbnz	x0, LBB0_13
; %bb.11:
Lloh20:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_4
LBB0_12:
	str	x20, [x20, #24]
LBB0_13:
	mov	x0, x20
	bl	_ipmmu_is_root
	cbz	x0, LBB0_18
; %bb.14:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.15:
Lloh22:
	adrp	x8, _ipmmu_irq@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ipmmu_irq@GOTPAGEOFF]
Lloh24:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_23
; %bb.16:
	mov	x0, x20
	bl	_ipmmu_device_reset
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_18
; %bb.17:
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	w1, [x20, #16]
	mov	w0, #0
	bl	_set_bit
LBB0_18:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_21
; %bb.19:
	mov	x0, x20
	bl	_ipmmu_is_root
	cbz	x0, LBB0_21
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w21, #0
	b	LBB0_5
LBB0_21:
	mov	x0, x19
	bl	_dev_name
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_iommu_device_sysfs_add
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.22:
Lloh27:
	adrp	x1, _ipmmu_ops@GOTPAGE
Lloh28:
	ldr	x1, [x1, _ipmmu_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_iommu_device_set_ops
	ldr	x1, [x19]
	mov	x0, x20
	bl	_iommu_device_set_fwnode
	mov	x0, x20
	bl	_iommu_device_register
	mov	x21, x0
	cbnz	w0, LBB0_5
	b	LBB0_20
LBB0_23:
	mov	x22, x0
	str	x21, [sp]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x21, x22
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate device data\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IPMMU_CTX_MAX,4,2              ; @IPMMU_CTX_MAX
	.comm	_IPMMU_CTX_INVALID,4,2          ; @IPMMU_CTX_INVALID
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_IM_NS_ALIAS_OFFSET,8,3         ; @IM_NS_ALIAS_OFFSET
l_.str.1:                               ; @.str.1
	.asciz	"renesas,ipmmu-main"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_ipmmu_irq,4,2                  ; @ipmmu_irq
l_.str.2:                               ; @.str.2
	.asciz	"failed to request IRQ %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"IPMMU context 0 is reserved\n"

	.comm	_ipmmu_ops,4,2                  ; @ipmmu_ops
	.comm	_platform_bus_type,4,2          ; @platform_bus_type
	.no_dead_strip	_ipmmu_probe
.subsections_via_symbols
