	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvic_irq_domain_alloc
_nvic_irq_domain_alloc:                 ## @nvic_irq_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rcx
	callq	_nvic_irq_domain_translate
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.3:
	movl	%r12d, %r12d
	movl	%r15d, %r15d
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%rbx), %esi
	movq	-56(%rbp), %rdx
	addq	%rbx, %rdx
	movq	%r13, %rdi
	callq	_irq_map_generic_chip
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_4
	jmp	LBB0_5
LBB0_2:
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
	.no_dead_strip	_nvic_irq_domain_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvic_irq_domain_alloc
_nvic_irq_domain_alloc:                 ; @nvic_irq_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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x9, _IRQ_TYPE_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [sp, #4]
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x1, x8
	bl	_nvic_irq_domain_translate
	cbnz	w0, LBB0_5
; %bb.1:
	cbz	w21, LBB0_4
; %bb.2:
	mov	x22, #0
	mov	w21, w21
	mov	w20, w20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w20, w22
	ldr	x8, [sp, #8]
	add	x2, x22, x8
	mov	x0, x19
	bl	_irq_map_generic_chip
	add	x22, x22, #1
	cmp	x21, x22
	b.ne	LBB0_3
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
	.no_dead_strip	_nvic_irq_domain_alloc
.subsections_via_symbols
