	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_aidet_domain_alloc
_uniphier_aidet_domain_alloc:           ## @uniphier_aidet_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$1, %edx
	jne	LBB0_1
## %bb.3:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rcx
	callq	_uniphier_aidet_domain_translate
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	movl	-20(%rbp), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_9
## %bb.5:
	cmpl	$128, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$131, %eax
	jne	LBB0_1
## %bb.7:
	movl	$130, -20(%rbp)
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movl	$129, -20(%rbp)
LBB0_9:
	movq	-32(%rbp), %rdx
	movq	_UNIPHIER_AIDET_NR_IRQS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jge	LBB0_10
## %bb.11:
	movl	8(%rbx), %r8d
	movq	_uniphier_aidet_irq_chip@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_irq_domain_set_hwirq_and_chip
	jmp	LBB0_12
LBB0_10:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UNIPHIER_AIDET_NR_IRQS,8,3     ## @UNIPHIER_AIDET_NR_IRQS
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_uniphier_aidet_irq_chip,4,2    ## @uniphier_aidet_irq_chip
	.no_dead_strip	_uniphier_aidet_domain_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_aidet_domain_alloc
_uniphier_aidet_domain_alloc:           ; @uniphier_aidet_domain_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
	cmp	w2, #1
	b.ne	LBB0_6
; %bb.1:
	mov	x8, x3
	mov	x19, x1
	mov	x20, x0
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x1, x8
	bl	_uniphier_aidet_domain_translate
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	w8, [sp, #4]
	sub	w9, w8, #129
	cmp	w9, #2
	b.lo	LBB0_11
; %bb.3:
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.4:
	cmp	w8, #131
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #130
	b	LBB0_10
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
	mov	w8, #129
LBB0_10:
	str	w8, [sp, #4]
LBB0_11:
	ldr	x2, [sp, #8]
Lloh2:
	adrp	x8, _UNIPHIER_AIDET_NR_IRQS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UNIPHIER_AIDET_NR_IRQS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ge	LBB0_13
; %bb.12:
	ldr	w4, [x20, #8]
Lloh5:
	adrp	x3, _uniphier_aidet_irq_chip@GOTPAGE
Lloh6:
	ldr	x3, [x3, _uniphier_aidet_irq_chip@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_irq_domain_set_hwirq_and_chip
	b	LBB0_8
LBB0_13:
Lloh7:
	adrp	x8, _ENXIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UNIPHIER_AIDET_NR_IRQS,8,3     ; @UNIPHIER_AIDET_NR_IRQS
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_uniphier_aidet_irq_chip,4,2    ; @uniphier_aidet_irq_chip
	.no_dead_strip	_uniphier_aidet_domain_alloc
.subsections_via_symbols
