	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_pdc_init
_qcom_pdc_init:                         ## @qcom_pdc_init
	.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, %r15
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_of_iomap
	movq	_pdc_base@GOTPCREL(%rip), %r13
	movl	%eax, (%r13)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_irq_find_host
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_pdc_setup_pin_mapping
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_pr_err
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_pr_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_pr_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_PDC_MAX_IRQS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_of_fwnode_handle
	movq	_qcom_pdc_ops@GOTPCREL(%rip), %r8
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%r9d, %r9d
	callq	_irq_domain_create_hierarchy
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	_pdc_region@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_kfree
	movl	(%r13), %edi
	callq	_iounmap
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pdc_base,4,2                   ## @pdc_base
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%pOF: unable to map PDC registers\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"%pOF: unable to find PDC's parent domain\n"

L_.str.2:                               ## @.str.2
	.asciz	"%pOF: failed to init PDC pin-hwirq mapping\n"

	.comm	_PDC_MAX_IRQS,4,2               ## @PDC_MAX_IRQS
	.comm	_qcom_pdc_ops,4,2               ## @qcom_pdc_ops
L_.str.3:                               ## @.str.3
	.asciz	"%pOF: GIC domain add failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pdc_region,4,2                 ## @pdc_region
	.no_dead_strip	_qcom_pdc_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_pdc_init
_qcom_pdc_init:                         ; @qcom_pdc_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	mov	w1, #0
	bl	_of_iomap
Lloh0:
	adrp	x22, _pdc_base@GOTPAGE
Lloh1:
	ldr	x22, [x22, _pdc_base@GOTPAGEOFF]
	str	w0, [x22]
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_irq_find_host
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	mov	x0, x19
	bl	_pdc_setup_pin_mapping
	cbz	w0, LBB0_6
; %bb.3:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_pr_err
	b	LBB0_9
LBB0_4:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_err
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_5:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_pr_err
Lloh11:
	adrp	x8, _ENXIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh13:
	adrp	x8, _PDC_MAX_IRQS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PDC_MAX_IRQS@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_of_fwnode_handle
	mov	x3, x0
Lloh16:
	adrp	x4, _qcom_pdc_ops@GOTPAGE
Lloh17:
	ldr	x4, [x4, _qcom_pdc_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	w1, #0
	mov	x2, x20
	mov	x5, #0
	bl	_irq_domain_create_hierarchy
	mov	w20, #0
	cbnz	x0, LBB0_10
; %bb.7:
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_pr_err
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
Lloh22:
	adrp	x8, _pdc_region@GOTPAGE
Lloh23:
	ldr	x8, [x8, _pdc_region@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_kfree
	ldr	w0, [x22]
	bl	_iounmap
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_pdc_base,4,2                   ; @pdc_base
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%pOF: unable to map PDC registers\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"%pOF: unable to find PDC's parent domain\n"

l_.str.2:                               ; @.str.2
	.asciz	"%pOF: failed to init PDC pin-hwirq mapping\n"

	.comm	_PDC_MAX_IRQS,4,2               ; @PDC_MAX_IRQS
	.comm	_qcom_pdc_ops,4,2               ; @qcom_pdc_ops
l_.str.3:                               ; @.str.3
	.asciz	"%pOF: GIC domain add failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pdc_region,4,2                 ; @pdc_region
	.no_dead_strip	_qcom_pdc_init
.subsections_via_symbols
