	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra124_coretemp_ofw_parse
_tegra124_coretemp_ofw_parse:           ## @tegra124_coretemp_ofw_parse
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	callq	_OF_peer
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_ofw_bus_find_child
	testq	%rax, %rax
	jle	LBB0_1
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	callq	_ofw_bus_find_child
	testq	%rax, %rax
	jle	LBB0_3
## %bb.4:
	leaq	-24(%rbp), %rcx
	movq	%rcx, (%rsp)
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str.5(%rip), %rdx
	leaq	-32(%rbp), %r8
	leaq	-12(%rbp), %r9
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	callq	_ofw_bus_parse_xref_list_alloc
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_10
LBB0_1:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_3:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_10:
	xorl	%eax, %eax
	callq	_device_printf
LBB0_11:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movl	-12(%rbp), %edx
	cmpl	$1, %edx
	jne	LBB0_7
## %bb.8:
	movl	$256, %eax                      ## imm = 0x100
	addq	16(%rbx), %rax
	movq	%rax, 24(%rbx)
	movq	-24(%rbp), %rdi
	callq	_OF_prop_free
	movq	-32(%rbp), %rdi
	callq	_OF_device_from_xref
	movq	%rax, %rcx
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_12
## %bb.9:
	movl	(%rbx), %edi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_10
LBB0_7:
	movl	(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"thermal-zones"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot find 'thermal-zones'.\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.2:                               ## @.str.2
	.asciz	"cpu"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot find 'cpu'\n"

L_.str.4:                               ## @.str.4
	.asciz	"thermal-sensors"

L_.str.5:                               ## @.str.5
	.asciz	"#thermal-sensor-cells"

L_.str.6:                               ## @.str.6
	.asciz	"Cannot parse 'thermal-sensors' property.\n"

L_.str.7:                               ## @.str.7
	.asciz	"Invalid format of 'thermal-sensors' property(%d).\n"

L_.str.8:                               ## @.str.8
	.asciz	"Cannot find thermal sensors device."

	.no_dead_strip	_tegra124_coretemp_ofw_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra124_coretemp_ofw_parse
_tegra124_coretemp_ofw_parse:           ; @tegra124_coretemp_ofw_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	mov	w0, #0
	bl	_OF_peer
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ofw_bus_find_child
	cmp	x0, #0
	b.le	LBB0_4
; %bb.1:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ofw_bus_find_child
	cmp	x0, #0
	b.le	LBB0_5
; %bb.2:
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh6:
	adrp	x2, l_.str.5@PAGE
Lloh7:
	add	x2, x2, l_.str.5@PAGEOFF
	add	x4, sp, #16
	sub	x5, x29, #20
	add	x6, sp, #8
	mov	w3, #0
	bl	_ofw_bus_parse_xref_list_alloc
	cbz	w0, LBB0_6
; %bb.3:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str.6@PAGE
Lloh9:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_11
LBB0_4:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_5:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_6:
	ldur	w8, [x29, #-20]
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.7:
	ldr	x8, [x19, #16]
	add	x8, x8, #256
	str	x8, [x19, #24]
	ldr	x0, [sp, #8]
	bl	_OF_prop_free
	ldr	x0, [sp, #16]
	bl	_OF_device_from_xref
	str	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.8:
	mov	w0, #0
	b	LBB0_12
LBB0_9:
	ldr	w0, [x19]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_11
LBB0_10:
	ldr	w0, [x19]
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_11:
	bl	_device_printf
Lloh18:
	adrp	x8, _ENXIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"thermal-zones"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot find 'thermal-zones'.\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.2:                               ; @.str.2
	.asciz	"cpu"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot find 'cpu'\n"

l_.str.4:                               ; @.str.4
	.asciz	"thermal-sensors"

l_.str.5:                               ; @.str.5
	.asciz	"#thermal-sensor-cells"

l_.str.6:                               ; @.str.6
	.asciz	"Cannot parse 'thermal-sensors' property.\n"

l_.str.7:                               ; @.str.7
	.asciz	"Invalid format of 'thermal-sensors' property(%d).\n"

l_.str.8:                               ; @.str.8
	.asciz	"Cannot find thermal sensors device."

	.no_dead_strip	_tegra124_coretemp_ofw_parse
.subsections_via_symbols
