	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rza1_irqc_alloc
_rza1_irqc_alloc:                       ## @rza1_irqc_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, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movq	(%rcx), %rax
	movl	(%rax), %r13d
	leaq	16(%rbx), %rcx
	movl	%r13d, %edx
	movq	%rbx, %r8
	callq	_irq_domain_set_hwirq_and_chip
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rbx), %rax
	shlq	$4, %r13
	movl	(%rax,%r13), %eax
	movl	%eax, -56(%rbp)
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rax
	jmp	LBB0_3
LBB0_4:
	leaq	-64(%rbp), %rcx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_irq_domain_alloc_irqs_parent
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rza1_irqc_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rza1_irqc_alloc
_rza1_irqc_alloc:                       ; @rza1_irqc_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
	ldr	x8, [x3]
	ldr	w23, [x8]
	add	x3, x22, #16
	mov	x2, x23
	mov	x4, x22
	bl	_irq_domain_set_hwirq_and_chip
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x22]
	lsl	x9, x23, #4
	ldr	w8, [x8, x9]
	str	w8, [sp, #16]
	cbz	w8, LBB0_5
; %bb.3:
	mov	w8, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, #1
	b	LBB0_4
LBB0_5:
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_irq_domain_alloc_irqs_parent
	b	LBB0_1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rza1_irqc_alloc
.subsections_via_symbols
