	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_ap806_gicp_attach
_mv_ap806_gicp_attach:                  ## @mv_ap806_gicp_attach
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	callq	_device_get_softc
	movq	%rax, %r14
	movl	%ebx, 24(%rax)
	movl	%ebx, %edi
	callq	_ofw_bus_get_node
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ofw_bus_find_iparent
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %edi
	callq	_OF_device_from_xref
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdx
	addq	$8, %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edi
	callq	_OF_getencprop_alloc
	movl	%eax, 12(%r14)
	movl	%r15d, %edi
	callq	_OF_xref_from_node
	movl	%eax, %r15d
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_intr_pic_register
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_INTR_MAP_DATA_FDT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$16, %esi
	callq	_intr_alloc_map_data
	movq	%rax, (%r14)
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_OF_device_register_xref
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
LBB0_2:
	movl	%ebx, %edi
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot find our parent interrupt controller\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"cannot find parent interrupt controller device\n"

L_.str.2:                               ## @.str.2
	.asciz	"marvell,spi-ranges"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot register GICP\n"

	.comm	_INTR_MAP_DATA_FDT,4,2          ## @INTR_MAP_DATA_FDT
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.no_dead_strip	_mv_ap806_gicp_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_ap806_gicp_attach
_mv_ap806_gicp_attach:                  ; @mv_ap806_gicp_attach
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_device_get_softc
	mov	x20, x0
	str	w19, [x0, #24]
	mov	x0, x19
	bl	_ofw_bus_get_node
	mov	x21, x0
	bl	_ofw_bus_find_iparent
	cbz	w0, LBB0_4
; %bb.1:
	bl	_OF_device_from_xref
	str	x0, [x20, #16]
	cbz	x0, LBB0_5
; %bb.2:
	add	x2, x20, #8
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_OF_getencprop_alloc
	str	w0, [x20, #12]
	mov	x0, x21
	bl	_OF_xref_from_node
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_intr_pic_register
	cbz	x0, LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _INTR_MAP_DATA_FDT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INTR_MAP_DATA_FDT@GOTPAGEOFF]
Lloh4:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w1, #16
	bl	_intr_alloc_map_data
	str	x0, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_OF_device_register_xref
	mov	w0, #0
	b	LBB0_8
LBB0_4:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_device_printf
Lloh17:
	adrp	x8, _ENXIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot find our parent interrupt controller\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"cannot find parent interrupt controller device\n"

l_.str.2:                               ; @.str.2
	.asciz	"marvell,spi-ranges"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot register GICP\n"

	.comm	_INTR_MAP_DATA_FDT,4,2          ; @INTR_MAP_DATA_FDT
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.no_dead_strip	_mv_ap806_gicp_attach
.subsections_via_symbols
