	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fix_fdt_interrupt_data
_fix_fdt_interrupt_data:                ## @fix_fdt_interrupt_data
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	_OF_finddevice
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movl	%eax, %edi
	movl	$4, %ecx
	callq	_OF_getencprop
	testl	%eax, %eax
	jle	LBB0_15
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	callq	_OF_finddevice
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	callq	_OF_finddevice
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.4:
	leaq	L_.str.4(%rip), %rdi
	callq	_OF_finddevice
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.5(%rip), %rdi
	callq	_OF_finddevice
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_15
LBB0_6:
	movl	%ebx, %edi
	callq	_OF_xref_from_node
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movl	%ebx, %edi
	movl	$4, %ecx
	callq	_OF_getencprop
	testl	%eax, %eax
	jg	LBB0_8
## %bb.7:
	movl	%r14d, -28(%rbp)
LBB0_8:
	leaq	L_.str.6(%rip), %rdi
	callq	_OF_finddevice
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.7(%rip), %rdi
	callq	_OF_finddevice
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_15
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movl	%ebx, %edi
	movl	$4, %ecx
	callq	_OF_getencprop
	testl	%eax, %eax
	jle	LBB0_15
## %bb.11:
	movl	%ebx, %edi
	callq	_OF_xref_from_node
	cmpl	%eax, -32(%rbp)
	jne	LBB0_15
## %bb.12:
	cmpl	%r14d, -36(%rbp)
	jne	LBB0_15
## %bb.13:
	cmpl	%r14d, -28(%rbp)
	jne	LBB0_15
## %bb.14:
	movl	%r14d, %edi
	callq	_cpu_to_fdt32
	movl	%eax, -40(%rbp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movl	%r15d, %edi
	movl	$4, %ecx
	callq	_OF_setprop
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/soc"

L_.str.1:                               ## @.str.1
	.asciz	"interrupt-parent"

L_.str.2:                               ## @.str.2
	.asciz	"/soc/interrupt-controller@00a01000"

L_.str.3:                               ## @.str.3
	.asciz	"/soc/interrupt-controller@a01000"

L_.str.4:                               ## @.str.4
	.asciz	"/interrupt-controller@00a01000"

L_.str.5:                               ## @.str.5
	.asciz	"/interrupt-controller@a01000"

L_.str.6:                               ## @.str.6
	.asciz	"/soc/aips-bus@02000000/gpc@020dc000"

L_.str.7:                               ## @.str.7
	.asciz	"/soc/aips-bus@2000000/gpc@20dc000"

	.no_dead_strip	_fix_fdt_interrupt_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fix_fdt_interrupt_data
_fix_fdt_interrupt_data:                ; @fix_fdt_interrupt_data
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_OF_finddevice
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, sp
	mov	w3, #4
	bl	_OF_getencprop
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.2:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_OF_finddevice
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.3:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_OF_finddevice
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.4:
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_OF_finddevice
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_OF_finddevice
	mov	x21, x0
	cmn	w0, #1
	b.eq	LBB0_15
LBB0_6:
	mov	x0, x21
	bl	_OF_xref_from_node
	mov	x20, x0
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	mov	w3, #4
	bl	_OF_getencprop
	cmp	w0, #0
	b.gt	LBB0_8
; %bb.7:
	str	w20, [sp, #12]
LBB0_8:
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_OF_finddevice
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
Lloh16:
	adrp	x0, l_.str.7@PAGE
Lloh17:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_OF_finddevice
	mov	x21, x0
	cmn	w0, #1
	b.eq	LBB0_15
LBB0_10:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #4
	mov	x0, x21
	mov	w3, #4
	bl	_OF_getencprop
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.11:
	mov	x0, x21
	bl	_OF_xref_from_node
	ldr	w8, [sp]
	cmp	w8, w0
	b.ne	LBB0_15
; %bb.12:
	ldr	w8, [sp, #4]
	cmp	w8, w20
	b.ne	LBB0_15
; %bb.13:
	ldr	w8, [sp, #12]
	cmp	w8, w20
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_cpu_to_fdt32
	str	w0, [sp, #8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #4
	bl	_OF_setprop
LBB0_15:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/soc"

l_.str.1:                               ; @.str.1
	.asciz	"interrupt-parent"

l_.str.2:                               ; @.str.2
	.asciz	"/soc/interrupt-controller@00a01000"

l_.str.3:                               ; @.str.3
	.asciz	"/soc/interrupt-controller@a01000"

l_.str.4:                               ; @.str.4
	.asciz	"/interrupt-controller@00a01000"

l_.str.5:                               ; @.str.5
	.asciz	"/interrupt-controller@a01000"

l_.str.6:                               ; @.str.6
	.asciz	"/soc/aips-bus@02000000/gpc@020dc000"

l_.str.7:                               ; @.str.7
	.asciz	"/soc/aips-bus@2000000/gpc@20dc000"

	.no_dead_strip	_fix_fdt_interrupt_data
.subsections_via_symbols
