	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_smmu_device_probe
_arm_smmu_device_probe:                 ## @arm_smmu_device_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	%r12, 24(%rax)
	cmpq	$0, 8(%r12)
	je	LBB0_4
## %bb.2:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_arm_smmu_device_dt_probe
	movl	%eax, %r13d
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_arm_smmu_device_acpi_probe
	movl	%eax, %r13d
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	%r13d, %ecx
	addl	(%rax), %ecx
	je	LBB0_8
LBB0_5:
	testl	%r13d, %r13d
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_resource_size
	movq	%rax, %r15
	incq	%r15
	movq	%r14, %rdi
	callq	_arm_smmu_resource_size
	cmpq	%rax, %r15
	jge	LBB0_9
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	subl	(%rax), %r13d
LBB0_8:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 20(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	20(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_platform_get_irq_byname
	testl	%eax, %eax
	jle	LBB0_13
## %bb.12:
	movl	%eax, (%r14)
	jmp	LBB0_19
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_platform_get_irq_byname
	testl	%eax, %eax
	jle	LBB0_15
## %bb.14:
	movl	%eax, 16(%r14)
LBB0_15:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_platform_get_irq_byname
	testl	%eax, %eax
	jle	LBB0_17
## %bb.16:
	movl	%eax, 12(%r14)
LBB0_17:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_platform_get_irq_byname
	testl	%eax, %eax
	jle	LBB0_19
## %bb.18:
	movl	%eax, 4(%r14)
LBB0_19:
	movq	%r14, %rdi
	callq	_arm_smmu_device_hw_probe
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.20:
	movq	%r14, %rdi
	callq	_arm_smmu_init_structures
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.21:
	xorl	%ebx, %ebx
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %bl
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_arm_smmu_device_reset
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.22:
	addq	$8, %r14
	leaq	L_.str.6(%rip), %rcx
	leaq	-48(%rbp), %r8
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_iommu_device_sysfs_add
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.23:
	movq	_arm_smmu_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_iommu_device_set_ops
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_iommu_device_set_fwnode
	movq	%r14, %rdi
	callq	_iommu_device_register
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	movl	%eax, %r13d
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
LBB0_25:
	movq	_platform_bus_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	_arm_smmu_ops@GOTPCREL(%rip), %rax
	je	LBB0_27
## %bb.26:
	movq	_platform_bus_type@GOTPCREL(%rip), %rdi
	movq	_arm_smmu_ops@GOTPCREL(%rip), %rsi
	callq	_bus_set_iommu
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_8
LBB0_27:
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate arm_smmu_device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.1:                               ## @.str.1
	.asciz	"MMIO region too small (%pr)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"combined"

L_.str.3:                               ## @.str.3
	.asciz	"eventq"

L_.str.4:                               ## @.str.4
	.asciz	"priq"

L_.str.5:                               ## @.str.5
	.asciz	"gerror"

L_.str.6:                               ## @.str.6
	.asciz	"smmu3.%pa"

	.comm	_arm_smmu_ops,4,2               ## @arm_smmu_ops
L_.str.7:                               ## @.str.7
	.asciz	"Failed to register iommu\n"

	.comm	_platform_bus_type,8,3          ## @platform_bus_type
	.comm	_amba_bustype,8,3               ## @amba_bustype
	.comm	_pci_bus_type,8,3               ## @pci_bus_type
	.no_dead_strip	_arm_smmu_device_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_probe
_arm_smmu_device_probe:                 ; @arm_smmu_device_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #24]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_arm_smmu_device_dt_probe
	mov	x22, x0
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_arm_smmu_device_acpi_probe
	mov	x22, x0
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_8
LBB0_5:
	cmp	w22, #0
	cset	w21, ne
Lloh10:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x22, x0
	bl	_resource_size
	add	x23, x0, #1
	mov	x0, x20
	bl	_arm_smmu_resource_size
	cmp	x23, x0
	b.ge	LBB0_9
; %bb.6:
	str	x22, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	ldr	w8, [x22]
	str	w8, [sp, #12]
	mov	x0, x19
	mov	x1, x22
	bl	_devm_ioremap_resource
	str	w0, [x20, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x20, #20]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_11:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.12:
	str	w0, [x20]
	b	LBB0_19
LBB0_13:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.14:
	str	w0, [x20, #16]
LBB0_15:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.16:
	str	w0, [x20, #12]
LBB0_17:
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_platform_get_irq_byname
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.18:
	str	w0, [x20, #4]
LBB0_19:
	mov	x0, x20
	bl	_arm_smmu_device_hw_probe
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.20:
	mov	x0, x20
	bl	_arm_smmu_init_structures
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.21:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x20
	mov	x1, x21
	bl	_arm_smmu_device_reset
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.22:
	add	x20, x20, #8
Lloh25:
	adrp	x3, l_.str.6@PAGE
Lloh26:
	add	x3, x3, l_.str.6@PAGEOFF
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_iommu_device_sysfs_add
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.23:
Lloh27:
	adrp	x21, _arm_smmu_ops@GOTPAGE
Lloh28:
	ldr	x21, [x21, _arm_smmu_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	bl	_iommu_device_set_ops
	ldr	w1, [x19]
	mov	x0, x20
	bl	_iommu_device_set_fwnode
	mov	x0, x20
	bl	_iommu_device_register
	cbz	w0, LBB0_25
; %bb.24:
	mov	x22, x0
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_8
LBB0_25:
Lloh31:
	adrp	x8, _platform_bus_type@GOTPAGE
Lloh32:
	ldr	x8, [x8, _platform_bus_type@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cmp	x8, x21
	b.eq	LBB0_27
; %bb.26:
Lloh34:
	adrp	x0, _platform_bus_type@GOTPAGE
Lloh35:
	ldr	x0, [x0, _platform_bus_type@GOTPAGEOFF]
Lloh36:
	adrp	x1, _arm_smmu_ops@GOTPAGE
Lloh37:
	ldr	x1, [x1, _arm_smmu_ops@GOTPAGEOFF]
	bl	_bus_set_iommu
	mov	x22, x0
	cbnz	w0, LBB0_8
LBB0_27:
	mov	w22, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate arm_smmu_device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.1:                               ; @.str.1
	.asciz	"MMIO region too small (%pr)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"combined"

l_.str.3:                               ; @.str.3
	.asciz	"eventq"

l_.str.4:                               ; @.str.4
	.asciz	"priq"

l_.str.5:                               ; @.str.5
	.asciz	"gerror"

l_.str.6:                               ; @.str.6
	.asciz	"smmu3.%pa"

	.comm	_arm_smmu_ops,4,2               ; @arm_smmu_ops
l_.str.7:                               ; @.str.7
	.asciz	"Failed to register iommu\n"

	.comm	_platform_bus_type,8,3          ; @platform_bus_type
	.comm	_amba_bustype,8,3               ; @amba_bustype
	.comm	_pci_bus_type,8,3               ; @pci_bus_type
	.no_dead_strip	_arm_smmu_device_probe
.subsections_via_symbols
