	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_iommu_of_xlate
_qcom_iommu_of_xlate:                   ## @qcom_iommu_of_xlate
	.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	%rsi, %rbx
	movq	%rdi, %r12
	callq	_dev_iommu_fwspec_get
	movq	%rax, %r14
	movq	(%rbx), %rax
	movl	(%rax), %r13d
	movl	%r13d, -44(%rbp)
	movl	8(%rbx), %ecx
	movq	16(%rbx), %rdi
	cmpl	$1, %ecx
	jne	LBB0_1
## %bb.2:
	callq	_of_find_device_by_node
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_platform_get_drvdata
	movq	%rax, %r15
	xorl	%edi, %edi
	testl	%r13d, %r13d
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_3
## %bb.5:
	xorl	%edi, %edi
	cmpl	(%r15), %r13d
	seta	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	xorl	%edi, %edi
	cmpq	%rax, %r15
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_9
LBB0_1:
	movl	(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, (%r14)
LBB0_9:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_iommu_fwspec_add_ids
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incorrect number of iommu params found for %s (found %d, expected 1)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qcom_iommu_of_xlate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_iommu_of_xlate
_qcom_iommu_of_xlate:                   ; @qcom_iommu_of_xlate
	.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	x21, x1
	mov	x19, x0
	bl	_dev_iommu_fwspec_get
	mov	x20, x0
	ldr	x8, [x21]
	ldr	w22, [x8]
	str	w22, [sp, #12]
	ldr	w3, [x21, #8]
	ldr	x0, [x21, #16]
	cmp	w3, #1
	b.ne	LBB0_6
; %bb.1:
	bl	_of_find_device_by_node
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_7
; %bb.2:
	mov	x0, x21
	bl	_platform_get_drvdata
	mov	x21, x0
	cmp	w22, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_7
; %bb.3:
	ldr	w8, [x21]
	cmp	w22, w8
	cset	w0, hi
	bl	_WARN_ON
	cbnz	x0, LBB0_7
; %bb.4:
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.5:
	cmp	x21, x8
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_7
	b	LBB0_10
LBB0_6:
	ldr	w2, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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_9:
	str	x21, [x20]
LBB0_10:
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #1
	bl	_iommu_fwspec_add_ids
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incorrect number of iommu params found for %s (found %d, expected 1)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qcom_iommu_of_xlate
.subsections_via_symbols
