	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_cirq_domain_alloc
_mtk_cirq_domain_alloc:                 ## @mtk_cirq_domain_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rcx
	callq	_mtk_cirq_domain_translate
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	xorl	%edi, %edi
	cmpl	$1, %r15d
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_3:
	movl	-36(%rbp), %edx
	movl	8(%rbx), %r8d
	movq	_mtk_cirq_chip@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_irq_domain_set_hwirq_and_chip
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_irq_domain_alloc_irqs_parent
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_mtk_cirq_chip,4,2              ## @mtk_cirq_chip
	.no_dead_strip	_mtk_cirq_domain_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_cirq_domain_alloc
_mtk_cirq_domain_alloc:                 ; @mtk_cirq_domain_alloc
	.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	x8, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x1, x8
	bl	_mtk_cirq_domain_translate
	cbnz	w0, LBB0_4
; %bb.1:
	cmp	w19, #1
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	ldr	w2, [sp, #12]
	ldr	w4, [x21, #8]
Lloh3:
	adrp	x3, _mtk_cirq_chip@GOTPAGE
Lloh4:
	ldr	x3, [x3, _mtk_cirq_chip@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x20
	bl	_irq_domain_set_hwirq_and_chip
	ldr	x8, [x21]
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x3, sp
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_irq_domain_alloc_irqs_parent
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_mtk_cirq_chip,4,2              ; @mtk_cirq_chip
	.no_dead_strip	_mtk_cirq_domain_alloc
.subsections_via_symbols
