	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_irq_find_parent             ## -- Begin function of_irq_find_parent
	.p2align	4, 0x90
_of_irq_find_parent:                    ## @of_irq_find_parent
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_of_node_get
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	leaq	L_.str(%rip), %r14
	leaq	-44(%rbp), %r15
	leaq	L_.str.1(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_of_get_parent
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_OF_IMAP_NO_PHANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_of_irq_workarounds@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_of_irq_dflt_pic@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_of_node_get
	jmp	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edi
	callq	_of_find_node_by_phandle
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_of_node_put
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_of_get_property
	movq	%rbx, %r13
	testq	%rax, %rax
	je	LBB0_2
	jmp	LBB0_11
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %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-parent"

	.comm	_of_irq_workarounds,4,2         ## @of_irq_workarounds
	.comm	_OF_IMAP_NO_PHANDLE,4,2         ## @OF_IMAP_NO_PHANDLE
	.comm	_of_irq_dflt_pic,8,3            ## @of_irq_dflt_pic
L_.str.1:                               ## @.str.1
	.asciz	"#interrupt-cells"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_irq_find_parent             ; -- Begin function of_irq_find_parent
	.p2align	2
_of_irq_find_parent:                    ; @of_irq_find_parent
	.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	x21, x0
	bl	_of_node_get
	cbz	x0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x19, l_.str@PAGE
Lloh1:
	add	x19, x19, l_.str@PAGEOFF
Lloh2:
	adrp	x23, _of_irq_workarounds@GOTPAGE
Lloh3:
	ldr	x23, [x23, _of_irq_workarounds@GOTPAGEOFF]
Lloh4:
	adrp	x24, _OF_IMAP_NO_PHANDLE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _OF_IMAP_NO_PHANDLE@GOTPAGEOFF]
Lloh6:
	adrp	x25, _of_irq_dflt_pic@GOTPAGE
Lloh7:
	ldr	x25, [x25, _of_irq_dflt_pic@GOTPAGEOFF]
Lloh8:
	adrp	x20, l_.str.1@PAGE
Lloh9:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x19
	bl	_of_property_read_u32
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_of_get_parent
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x25]
	bl	_of_node_get
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #12]
	bl	_of_find_node_by_phandle
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	mov	x0, x21
	bl	_of_node_put
	cbz	x22, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	x1, x20
	mov	x2, #0
	bl	_of_get_property
	mov	x21, x22
	cbz	x0, LBB0_2
	b	LBB0_10
LBB0_9:
	mov	x22, #0
LBB0_10:
	mov	x0, x22
	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	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt-parent"

	.comm	_of_irq_workarounds,4,2         ; @of_irq_workarounds
	.comm	_OF_IMAP_NO_PHANDLE,4,2         ; @OF_IMAP_NO_PHANDLE
	.comm	_of_irq_dflt_pic,8,3            ; @of_irq_dflt_pic
l_.str.1:                               ; @.str.1
	.asciz	"#interrupt-cells"

.subsections_via_symbols
