	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_pdc_alloc
_qcom_pdc_alloc:                        ## @qcom_pdc_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	-24(%rbp), %rdx
	leaq	-28(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rcx
	callq	_qcom_pdc_translate
	testl	%eax, %eax
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	movq	-24(%rbp), %rdi
	callq	_get_parent_hwirq
	cmpq	$-1, %rax
	je	LBB0_1
## %bb.3:
	movq	-24(%rbp), %rdx
	movq	_qcom_pdc_gic_chip@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%r8d, %r8d
	callq	_irq_domain_set_hwirq_and_chip
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_qcom_pdc_gic_chip,4,2          ## @qcom_pdc_gic_chip
	.comm	_IRQ_TYPE_EDGE_BOTH,4,2         ## @IRQ_TYPE_EDGE_BOTH
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ## @IRQ_TYPE_EDGE_RISING
	.comm	_IRQ_TYPE_LEVEL_MASK,4,2        ## @IRQ_TYPE_LEVEL_MASK
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ## @IRQ_TYPE_LEVEL_HIGH
	.no_dead_strip	_qcom_pdc_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_pdc_alloc
_qcom_pdc_alloc:                        ; @qcom_pdc_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x8, x3
	mov	x19, x1
	mov	x20, x0
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x1, x8
	bl	_qcom_pdc_translate
	cbz	w0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	ldr	x0, [sp, #8]
	bl	_get_parent_hwirq
	cmn	x0, #1
	b.eq	LBB0_1
; %bb.3:
	ldr	x2, [sp, #8]
Lloh3:
	adrp	x3, _qcom_pdc_gic_chip@GOTPAGE
Lloh4:
	ldr	x3, [x3, _qcom_pdc_gic_chip@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	mov	x4, #0
	bl	_irq_domain_set_hwirq_and_chip
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_qcom_pdc_gic_chip,4,2          ; @qcom_pdc_gic_chip
	.comm	_IRQ_TYPE_EDGE_BOTH,4,2         ; @IRQ_TYPE_EDGE_BOTH
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ; @IRQ_TYPE_EDGE_RISING
	.comm	_IRQ_TYPE_LEVEL_MASK,4,2        ; @IRQ_TYPE_LEVEL_MASK
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ; @IRQ_TYPE_LEVEL_HIGH
	.no_dead_strip	_qcom_pdc_alloc
.subsections_via_symbols
