	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rza1_irqc_parse_map
_rza1_irqc_parse_map:                   ## @rza1_irqc_parse_map
	.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
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movq	_IRQC_NUM_IRQ@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.3:
	movl	-44(%rbp), %eax
	xorl	%r14d, %r14d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ecx, %ecx
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, -44(%rbp)
	incq	%r14
	movq	_IRQC_NUM_IRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	%rcx, %r14
	movl	$0, %r13d
	jae	LBB0_17
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	cmpl	$2, %eax
	jbe	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_be32_to_cpup
	movl	%eax, %eax
	cmpq	%rax, %r14
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	8(%rbx), %rdi
	callq	_be32_to_cpup
	movl	%eax, %edi
	callq	_of_find_node_by_phandle
	cmpq	%r12, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	$-3, -44(%rbp)
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdx
	callq	_of_property_read_u32
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_of_node_put
	testl	%r13d, %r13d
	jne	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jb	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	$12, %rbx
	movq	(%r15), %rcx
	movq	%r14, %r13
	shlq	$4, %r13
	movl	%eax, (%rcx,%r13)
	cmpl	$0, -48(%rbp)
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	addq	$4, %rbx
	callq	_be32_to_cpup
	movq	(%r15), %rcx
	movq	8(%rcx,%r13), %rcx
	movl	%eax, (%rcx,%r12,4)
	incq	%r12
	movl	-48(%rbp), %ecx
	cmpq	%rcx, %r12
	jb	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_2:
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_7:
	movq	%rax, %rdi
	callq	_of_node_put
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_17:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupt-map"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IRQC_NUM_IRQ,4,2               ## @IRQC_NUM_IRQ
L_.str.1:                               ## @.str.1
	.asciz	"#interrupt-cells"

	.no_dead_strip	_rza1_irqc_parse_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rza1_irqc_parse_map
_rza1_irqc_parse_map:                   ; @rza1_irqc_parse_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_of_get_property
	cbz	x0, LBB0_14
; %bb.1:
Lloh2:
	adrp	x24, _IRQC_NUM_IRQ@GOTPAGE
Lloh3:
	ldr	x24, [x24, _IRQC_NUM_IRQ@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w8, LBB0_12
; %bb.2:
	mov	x21, x0
	mov	x25, #0
	ldr	w8, [sp, #12]
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [sp, #12]
	sub	w8, w9, w8
	str	w8, [sp, #12]
	add	x25, x25, #1
	ldr	w9, [x24]
	cmp	x25, x9
	b.hs	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cmp	w8, #2
	b.ls	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_be32_to_cpup
	cmp	x25, w0, uxtw
	b.ne	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x21, #8
	bl	_be32_to_cpup
	bl	_of_find_node_by_phandle
	cmp	x0, x19
	b.ne	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	sub	w8, w8, #3
	str	w8, [sp, #12]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x22
	bl	_of_property_read_u32
	mov	x23, x0
	mov	x0, x19
	bl	_of_node_put
	cbnz	w23, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w8, w9, [sp, #8]
	cmp	w9, w8
	b.lo	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #12
	ldr	x9, [x20]
	lsl	x10, x25, #4
	str	w8, [x9, x10]
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, #0
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	add	x21, x21, #4
	bl	_be32_to_cpup
	ldr	x8, [x20]
	add	x8, x8, x25, lsl #4
	ldr	x8, [x8, #8]
	str	w0, [x8, x23, lsl #2]
	add	x23, x23, #1
	ldr	w8, [sp, #8]
	cmp	x23, x8
	b.lo	LBB0_11
	b	LBB0_3
LBB0_12:
	mov	w23, #0
	b	LBB0_15
LBB0_13:
	bl	_of_node_put
LBB0_14:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_15:
	mov	x0, x23
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt-map"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IRQC_NUM_IRQ,4,2               ; @IRQC_NUM_IRQ
l_.str.1:                               ; @.str.1
	.asciz	"#interrupt-cells"

	.no_dead_strip	_rza1_irqc_parse_map
.subsections_via_symbols
