	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plic_get_hartid
_plic_get_hartid:                       ## @plic_get_hartid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdx
	movl	%ebx, %edi
	movl	$4, %ecx
	callq	_OF_searchencprop
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.1:
	movl	%ebx, %edi
	callq	_OF_parent
	leaq	L_.str.2(%rip), %rsi
	leaq	-20(%rbp), %rdx
	movl	%eax, %edi
	movl	$4, %ecx
	callq	_OF_searchencprop
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.2:
	movl	-20(%rbp), %eax
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_5:
	movl	$-1, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#interrupt-cells"

L_.str.1:                               ## @.str.1
	.asciz	"Could not find #interrupt-cells for phandle %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"reg"

L_.str.3:                               ## @.str.3
	.asciz	"Could not find hartid\n"

	.no_dead_strip	_plic_get_hartid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plic_get_hartid
_plic_get_hartid:                       ; @plic_get_hartid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	mov	w3, #4
	bl	_OF_searchencprop
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_OF_parent
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #12
	mov	w3, #4
	bl	_OF_searchencprop
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [sp, #12]
	b	LBB0_6
LBB0_3:
	str	x20, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_device_printf
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#interrupt-cells"

l_.str.1:                               ; @.str.1
	.asciz	"Could not find #interrupt-cells for phandle %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"reg"

l_.str.3:                               ; @.str.3
	.asciz	"Could not find hartid\n"

	.no_dead_strip	_plic_get_hartid
.subsections_via_symbols
