	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_its_alloc_vcpu_irqs            ## -- Begin function its_alloc_vcpu_irqs
	.p2align	4, 0x90
_its_alloc_vcpu_irqs:                   ## @its_alloc_vcpu_irqs
	.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
	movq	%rdi, %rbx
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_task_pid_nr
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_irq_domain_alloc_named_id_fwnode
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movq	_gic_domain@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rbx), %edx
	movq	_vpe_domain_ops@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	xorl	%esi, %esi
	movq	%rax, %rcx
	movq	%rbx, %r9
	callq	_irq_domain_create_hierarchy
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:
	movl	(%rbx), %edx
	testl	%edx, %edx
	jle	LBB0_10
## %bb.3:
	movq	24(%rbx), %rsi
	leaq	-1(%rdx), %rcx
	movl	%edx, %r8d
	andl	$3, %r8d
	cmpq	$3, %rcx
	jae	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	jmp	LBB0_7
LBB0_5:
	movl	%edx, %r9d
	andl	$-4, %r9d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rdi,8), %rcx
	movq	%rbx, 8(%rcx)
	movq	(%rsi,%rdi,8), %rcx
	movl	$1, (%rcx)
	movq	8(%rsi,%rdi,8), %rcx
	movq	%rbx, 8(%rcx)
	movq	8(%rsi,%rdi,8), %rcx
	movl	$1, (%rcx)
	movq	16(%rsi,%rdi,8), %rcx
	movq	%rbx, 8(%rcx)
	movq	16(%rsi,%rdi,8), %rcx
	movl	$1, (%rcx)
	movq	24(%rsi,%rdi,8), %rcx
	movq	%rbx, 8(%rcx)
	movq	24(%rsi,%rdi,8), %rcx
	movl	$1, (%rcx)
	addq	$4, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_6
LBB0_7:
	testq	%r8, %r8
	je	LBB0_10
## %bb.8:
	leaq	(%rsi,%rdi,8), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	movq	%rbx, 8(%rdi)
	movq	(%rcx,%rsi,8), %rdi
	movl	$1, (%rdi)
	incq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_9
LBB0_10:
	movq	_NUMA_NO_NODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	$0, (%rsp)
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	movl	$-1, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	___irq_domain_alloc_irqs
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.11:
	movl	(%rbx), %r9d
	testl	%r9d, %r9d
	jle	LBB0_24
## %bb.12:
	movq	24(%rbx), %rdx
	leaq	-1(%r9), %rdi
	movl	%r9d, %r8d
	andl	$3, %r8d
	xorl	%r14d, %r14d
	cmpq	$3, %rdi
	jae	LBB0_14
## %bb.13:
	xorl	%edi, %edi
	jmp	LBB0_16
LBB0_19:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	callq	_irq_domain_remove
LBB0_21:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	callq	_irq_domain_free_fwnode
LBB0_23:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_24:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	andl	$-4, %r9d
	xorl	%edi, %edi
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rdi,8), %rcx
	movl	%ebx, 4(%rcx)
	leal	1(%rbx), %ecx
	movq	8(%rdx,%rdi,8), %rsi
	movl	%ecx, 4(%rsi)
	leal	2(%rbx), %ecx
	movq	16(%rdx,%rdi,8), %rsi
	movl	%ecx, 4(%rsi)
	leal	3(%rbx), %ecx
	movq	24(%rdx,%rdi,8), %rsi
	movl	%ecx, 4(%rsi)
	addq	$4, %rdi
	addl	$4, %ebx
	cmpq	%rdi, %r9
	jne	LBB0_15
LBB0_16:
	testq	%r8, %r8
	je	LBB0_24
## %bb.17:
	leaq	(%rdx,%rdi,8), %rdx
	addl	%edi, %eax
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rax,%rsi), %ecx
	movq	(%rdx,%rsi,8), %rdi
	movl	%ecx, 4(%rdi)
	incq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_18
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GICv4-vpe"

	.comm	_current,4,2                    ## @current
	.comm	_gic_domain,4,2                 ## @gic_domain
	.comm	_vpe_domain_ops,4,2             ## @vpe_domain_ops
	.comm	_NUMA_NO_NODE,4,2               ## @NUMA_NO_NODE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_its_alloc_vcpu_irqs            ; -- Begin function its_alloc_vcpu_irqs
	.p2align	2
_its_alloc_vcpu_irqs:                   ; @its_alloc_vcpu_irqs
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_task_pid_nr
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_irq_domain_alloc_named_id_fwnode
	str	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x3, x0
Lloh5:
	adrp	x8, _gic_domain@GOTPAGE
Lloh6:
	ldr	x8, [x8, _gic_domain@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh8:
	adrp	x8, _vpe_domain_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _vpe_domain_ops@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	w1, #0
	mov	x5, x19
	bl	_irq_domain_create_hierarchy
	str	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.2:
	ldr	w2, [x19]
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.3:
	ldr	x8, [x19, #24]
	mov	w9, #1
	mov	x10, x2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8]
	str	x19, [x11, #8]
	ldr	x11, [x8], #8
	str	w9, [x11]
	subs	x10, x10, #1
	b.ne	LBB0_4
LBB0_5:
Lloh11:
	adrp	x8, _NUMA_NO_NODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NUMA_NO_NODE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	w1, #-1
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x4, x19
	mov	w5, #0
	mov	x6, #0
	bl	___irq_domain_alloc_irqs
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.6:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.7:
	ldr	x9, [x19, #24]
	cmp	w8, #4
	b.hs	LBB0_14
; %bb.8:
	mov	x10, #0
	b	LBB0_17
LBB0_9:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_irq_domain_remove
LBB0_11:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_irq_domain_free_fwnode
LBB0_13:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_20
LBB0_14:
	and	x10, x8, #0xfffffffc
	add	x11, x9, #16
	mov	x12, x10
	mov	x13, x0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	add	w14, w13, #1
	add	w15, w13, #2
	add	w16, w13, #3
	ldp	x17, x1, [x11, #-16]
	ldp	x2, x3, [x11], #32
	str	w13, [x17, #4]
	str	w14, [x1, #4]
	str	w15, [x2, #4]
	str	w16, [x3, #4]
	add	w13, w13, #4
	subs	x12, x12, #4
	b.ne	LBB0_15
; %bb.16:
	cmp	x10, x8
	b.eq	LBB0_19
LBB0_17:
	add	w11, w0, w10
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	str	w11, [x10, #4]
	add	w11, w11, #1
	subs	x8, x8, #1
	b.ne	LBB0_18
LBB0_19:
	mov	w0, #0
LBB0_20:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GICv4-vpe"

	.comm	_current,4,2                    ; @current
	.comm	_gic_domain,4,2                 ; @gic_domain
	.comm	_vpe_domain_ops,4,2             ; @vpe_domain_ops
	.comm	_NUMA_NO_NODE,4,2               ; @NUMA_NO_NODE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
