	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_gpcv2_domain_alloc
_imx_gpcv2_domain_alloc:                ## @imx_gpcv2_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	-64(%rbp), %rdx
	leaq	-68(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rcx
	callq	_imx_gpcv2_domain_translate
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	-64(%rbp), %rdx
	movq	_GPC_MAX_IRQS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jge	LBB0_8
## %bb.2:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.3:
	movl	8(%rbx), %r8d
	movq	_gpcv2_irqchip_data_chip@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_irq_domain_set_hwirq_and_chip
	cmpl	$1, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.4:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	$1, %r15d
	movq	_gpcv2_irqchip_data_chip@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%r15), %esi
	movq	-64(%rbp), %rdx
	addq	%r15, %rdx
	movl	8(%rbx), %r8d
	movq	%rbx, %rdi
	movq	%r12, %rcx
	callq	_irq_domain_set_hwirq_and_chip
	incq	%r15
	cmpq	%r15, %r13
	jne	LBB0_5
LBB0_6:
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_irq_domain_alloc_irqs_parent
	jmp	LBB0_7
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPC_MAX_IRQS,8,3               ## @GPC_MAX_IRQS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_gpcv2_irqchip_data_chip,4,2    ## @gpcv2_irqchip_data_chip
	.no_dead_strip	_imx_gpcv2_domain_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_gpcv2_domain_alloc
_imx_gpcv2_domain_alloc:                ; @imx_gpcv2_domain_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x8, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x2, sp, #16
	add	x3, sp, #12
	mov	x1, x8
	bl	_imx_gpcv2_domain_translate
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	x2, [sp, #16]
Lloh0:
	adrp	x8, _GPC_MAX_IRQS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPC_MAX_IRQS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ge	LBB0_7
; %bb.2:
	cbz	w19, LBB0_6
; %bb.3:
	ldr	w4, [x21, #8]
Lloh3:
	adrp	x3, _gpcv2_irqchip_data_chip@GOTPAGE
Lloh4:
	ldr	x3, [x3, _gpcv2_irqchip_data_chip@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x20
	bl	_irq_domain_set_hwirq_and_chip
	cmp	w19, #1
	b.eq	LBB0_6
; %bb.4:
	mov	w23, w19
	mov	w24, #1
Lloh5:
	adrp	x22, _gpcv2_irqchip_data_chip@GOTPAGE
Lloh6:
	ldr	x22, [x22, _gpcv2_irqchip_data_chip@GOTPAGEOFF]
	mov	w25, w20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]
	add	w1, w25, w24
	add	x2, x24, x8
	ldr	w4, [x21, #8]
	mov	x0, x21
	mov	x3, x22
	bl	_irq_domain_set_hwirq_and_chip
	add	x24, x24, #1
	cmp	x23, x24
	b.ne	LBB0_5
LBB0_6:
	ldr	x8, [x21]
	ldr	w8, [x8]
	str	w8, [sp, #24]
	add	x3, sp, #24
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_irq_domain_alloc_irqs_parent
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GPC_MAX_IRQS,8,3               ; @GPC_MAX_IRQS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_gpcv2_irqchip_data_chip,4,2    ; @gpcv2_irqchip_data_chip
	.no_dead_strip	_imx_gpcv2_domain_alloc
.subsections_via_symbols
