	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra124_coretemp_attach
_tegra124_coretemp_attach:              ## @tegra124_coretemp_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	%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
	movl	%edi, %r12d
	callq	_device_get_softc
	movq	%rax, %rbx
	movl	%r12d, 8(%rax)
	movl	%r12d, %edi
	callq	_device_get_unit
	movl	%eax, 4(%rbx)
	movl	$102000, (%rbx)                 ## imm = 0x18E70
	movl	%r12d, %edi
	callq	_device_get_parent
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_tegra124_coretemp_ofw_parse
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	callq	_device_get_sysctl_ctx
	movq	%rax, %r15
	movl	%r13d, %edi
	callq	_device_get_sysctl_tree
	movq	%rax, %rdi
	callq	_SYSCTL_CHILDREN
	movq	_OID_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CTLFLAG_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rbx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%r9d, %r9d
	pushq	%rbx
	callq	_SYSCTL_ADD_NODE
	addq	$16, %rsp
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	callq	_device_get_sysctl_tree
	movq	%rax, %rdi
	callq	_SYSCTL_CHILDREN
	movq	_CTLTYPE_INT@GOTPCREL(%rip), %rcx
	movq	_CTLFLAG_RD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rcx), %r8d
	movq	_OID_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CTLFLAG_MPSAFE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	_CORETEMP_TEMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_coretemp_get_val_sysctl@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	L_.str.4(%rip), %r11
	leaq	L_.str.3(%rip), %r13
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r12d, %r9d
	pushq	%r11
	pushq	%r13
	pushq	%rbx
	pushq	%r10
	callq	_SYSCTL_ADD_PROC
	addq	$32, %rsp
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_SYSCTL_CHILDREN
	movq	_CTLFLAG_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_CTLTYPE_INT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	_CTLFLAG_MPSAFE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	_OID_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CORETEMP_DELTA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_coretemp_get_val_sysctl@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	L_.str.6(%rip), %r11
	leaq	L_.str.5(%rip), %rcx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r12d, %r9d
	leaq	L_.str.7(%rip), %rax
	pushq	%rax
	pushq	%r11
	pushq	%rbx
	pushq	%r10
	callq	_SYSCTL_ADD_PROC
	addq	$32, %rsp
	movq	%r13, %rdi
	callq	_SYSCTL_CHILDREN
	movq	_CTLFLAG_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_CTLTYPE_INT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	_CTLFLAG_MPSAFE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	_OID_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CORETEMP_RESOLUTION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_coretemp_get_val_sysctl@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	L_.str.9(%rip), %r11
	leaq	L_.str.8(%rip), %rcx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r12d, %r9d
	pushq	%r11
	leaq	L_.str.6(%rip), %rax
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	callq	_SYSCTL_ADD_PROC
	addq	$32, %rsp
	movq	%r13, %rdi
	callq	_SYSCTL_CHILDREN
	movq	_CTLFLAG_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_CTLTYPE_INT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	_CTLFLAG_MPSAFE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	_OID_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_CORETEMP_TJMAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_coretemp_get_val_sysctl@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	L_.str.11(%rip), %r11
	leaq	L_.str.10(%rip), %rcx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r12d, %r9d
	pushq	%r11
	leaq	L_.str.3(%rip), %rax
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	callq	_SYSCTL_ADD_PROC
	addq	$32, %rsp
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OID_AUTO,4,2                   ## @OID_AUTO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"coretemp"

	.comm	_CTLFLAG_RD,4,2                 ## @CTLFLAG_RD
L_.str.1:                               ## @.str.1
	.asciz	"Per-CPU thermal information"

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

	.comm	_CTLTYPE_INT,4,2                ## @CTLTYPE_INT
	.comm	_CTLFLAG_MPSAFE,4,2             ## @CTLFLAG_MPSAFE
	.comm	_CORETEMP_TEMP,4,2              ## @CORETEMP_TEMP
	.comm	_coretemp_get_val_sysctl,4,2    ## @coretemp_get_val_sysctl
L_.str.3:                               ## @.str.3
	.asciz	"IK"

L_.str.4:                               ## @.str.4
	.asciz	"Current temperature"

L_.str.5:                               ## @.str.5
	.asciz	"delta"

	.comm	_CORETEMP_DELTA,4,2             ## @CORETEMP_DELTA
L_.str.6:                               ## @.str.6
	.asciz	"I"

L_.str.7:                               ## @.str.7
	.asciz	"Delta between TCC activation and current temperature"

L_.str.8:                               ## @.str.8
	.asciz	"resolution"

	.comm	_CORETEMP_RESOLUTION,4,2        ## @CORETEMP_RESOLUTION
L_.str.9:                               ## @.str.9
	.asciz	"Resolution of CPU thermal sensor"

L_.str.10:                              ## @.str.10
	.asciz	"tjmax"

	.comm	_CORETEMP_TJMAX,4,2             ## @CORETEMP_TJMAX
L_.str.11:                              ## @.str.11
	.asciz	"TCC activation temperature"

	.no_dead_strip	_tegra124_coretemp_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra124_coretemp_attach
_tegra124_coretemp_attach:              ; @tegra124_coretemp_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_device_get_softc
	mov	x20, x0
	str	w19, [x0, #8]
	mov	x0, x19
	bl	_device_get_unit
	mov	w8, #36464
	movk	w8, #1, lsl #16
	stp	w8, w0, [x20]
	mov	x0, x19
	bl	_device_get_parent
	mov	x23, x0
	mov	x0, x20
	bl	_tegra124_coretemp_ofw_parse
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_device_get_sysctl_ctx
	mov	x21, x0
	mov	x0, x23
	bl	_device_get_sysctl_tree
	bl	_SYSCTL_CHILDREN
	mov	x1, x0
Lloh0:
	adrp	x24, _OID_AUTO@GOTPAGE
Lloh1:
	ldr	x24, [x24, _OID_AUTO@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh2:
	adrp	x25, _CTLFLAG_RD@GOTPAGE
Lloh3:
	ldr	x25, [x25, _CTLFLAG_RD@GOTPAGEOFF]
	ldr	w4, [x25]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
Lloh6:
	adrp	x6, l_.str.1@PAGE
Lloh7:
	add	x6, x6, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x5, #0
	bl	_SYSCTL_ADD_NODE
	mov	x22, x0
	mov	x0, x23
	bl	_device_get_sysctl_tree
	bl	_SYSCTL_CHILDREN
	mov	x1, x0
	ldr	w2, [x24]
Lloh8:
	adrp	x23, _CTLTYPE_INT@GOTPAGE
Lloh9:
	ldr	x23, [x23, _CTLTYPE_INT@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	w9, [x25]
	orr	w8, w9, w8
Lloh10:
	adrp	x26, _CTLFLAG_MPSAFE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _CTLFLAG_MPSAFE@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w4, w8, w9
Lloh12:
	adrp	x8, _CORETEMP_TEMP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CORETEMP_TEMP@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
Lloh15:
	adrp	x27, _coretemp_get_val_sysctl@GOTPAGE
Lloh16:
	ldr	x27, [x27, _coretemp_get_val_sysctl@GOTPAGEOFF]
	ldr	w7, [x27]
Lloh17:
	adrp	x8, l_.str.4@PAGE
Lloh18:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh19:
	adrp	x9, l_.str.3@PAGE
Lloh20:
	add	x9, x9, l_.str.3@PAGEOFF
	stp	x9, x8, [sp]
Lloh21:
	adrp	x3, l_.str.2@PAGE
Lloh22:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x5, x19
	bl	_SYSCTL_ADD_PROC
	mov	x0, x22
	bl	_SYSCTL_CHILDREN
	mov	x1, x0
	ldr	w2, [x24]
	ldr	w8, [x23]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w4, w8, w9
Lloh23:
	adrp	x8, _CORETEMP_DELTA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CORETEMP_DELTA@GOTPAGEOFF]
Lloh25:
	ldr	w6, [x8]
	ldr	w7, [x27]
Lloh26:
	adrp	x8, l_.str.7@PAGE
Lloh27:
	add	x8, x8, l_.str.7@PAGEOFF
Lloh28:
	adrp	x28, l_.str.6@PAGE
Lloh29:
	add	x28, x28, l_.str.6@PAGEOFF
	stp	x28, x8, [sp]
Lloh30:
	adrp	x3, l_.str.5@PAGE
Lloh31:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	x5, x19
	bl	_SYSCTL_ADD_PROC
	mov	x0, x22
	bl	_SYSCTL_CHILDREN
	mov	x1, x0
	ldr	w2, [x24]
	ldr	w8, [x23]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w4, w8, w9
Lloh32:
	adrp	x8, _CORETEMP_RESOLUTION@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CORETEMP_RESOLUTION@GOTPAGEOFF]
Lloh34:
	ldr	w6, [x8]
	ldr	w7, [x27]
Lloh35:
	adrp	x8, l_.str.9@PAGE
Lloh36:
	add	x8, x8, l_.str.9@PAGEOFF
	stp	x28, x8, [sp]
Lloh37:
	adrp	x3, l_.str.8@PAGE
Lloh38:
	add	x3, x3, l_.str.8@PAGEOFF
	mov	x0, x21
	mov	x5, x19
	bl	_SYSCTL_ADD_PROC
	mov	x0, x22
	bl	_SYSCTL_CHILDREN
	mov	x1, x0
	ldr	w2, [x24]
	ldr	w8, [x23]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w4, w8, w9
Lloh39:
	adrp	x8, _CORETEMP_TJMAX@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CORETEMP_TJMAX@GOTPAGEOFF]
Lloh41:
	ldr	w6, [x8]
	ldr	w7, [x27]
Lloh42:
	adrp	x8, l_.str.11@PAGE
Lloh43:
	add	x9, x8, l_.str.11@PAGEOFF
Lloh44:
	adrp	x8, l_.str.3@PAGE
Lloh45:
	add	x8, x8, l_.str.3@PAGEOFF
	stp	x8, x9, [sp]
Lloh46:
	adrp	x3, l_.str.10@PAGE
Lloh47:
	add	x3, x3, l_.str.10@PAGEOFF
	mov	x0, x21
	mov	x5, x19
	bl	_SYSCTL_ADD_PROC
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdrp	Lloh42, Lloh44
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OID_AUTO,4,2                   ; @OID_AUTO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"coretemp"

	.comm	_CTLFLAG_RD,4,2                 ; @CTLFLAG_RD
l_.str.1:                               ; @.str.1
	.asciz	"Per-CPU thermal information"

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

	.comm	_CTLTYPE_INT,4,2                ; @CTLTYPE_INT
	.comm	_CTLFLAG_MPSAFE,4,2             ; @CTLFLAG_MPSAFE
	.comm	_CORETEMP_TEMP,4,2              ; @CORETEMP_TEMP
	.comm	_coretemp_get_val_sysctl,4,2    ; @coretemp_get_val_sysctl
l_.str.3:                               ; @.str.3
	.asciz	"IK"

l_.str.4:                               ; @.str.4
	.asciz	"Current temperature"

l_.str.5:                               ; @.str.5
	.asciz	"delta"

	.comm	_CORETEMP_DELTA,4,2             ; @CORETEMP_DELTA
l_.str.6:                               ; @.str.6
	.asciz	"I"

l_.str.7:                               ; @.str.7
	.asciz	"Delta between TCC activation and current temperature"

l_.str.8:                               ; @.str.8
	.asciz	"resolution"

	.comm	_CORETEMP_RESOLUTION,4,2        ; @CORETEMP_RESOLUTION
l_.str.9:                               ; @.str.9
	.asciz	"Resolution of CPU thermal sensor"

l_.str.10:                              ; @.str.10
	.asciz	"tjmax"

	.comm	_CORETEMP_TJMAX,4,2             ; @CORETEMP_TJMAX
l_.str.11:                              ; @.str.11
	.asciz	"TCC activation temperature"

	.no_dead_strip	_tegra124_coretemp_attach
.subsections_via_symbols
