	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_therm_ic_ctor          ## -- Begin function nouveau_therm_ic_ctor
	.p2align	4, 0x90
_nouveau_therm_ic_ctor:                 ## @nouveau_therm_ic_ctor
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_nouveau_bios
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_nouveau_i2c
	movq	%rax, %r14
	movq	_NVBIOS_EXTDEV_LM89@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_nvbios_extdev_find
	testl	%eax, %eax
	je	LBB0_1
LBB0_2:
	movq	_NVBIOS_EXTDEV_ADT7473@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_nvbios_extdev_find
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movq	(%r14), %rbx
	xorl	%edi, %edi
	callq	_NV_I2C_DEFAULT
	movq	_nv_board_infos@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_probe_monitoring_device@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	*%rbx
	jmp	LBB0_5
LBB0_1:
	movl	-56(%rbp), %esi
	sarl	%esi
	leaq	L_.str(%rip), %rdi
	callq	_I2C_BOARD_INFO
	movl	%eax, -48(%rbp)
	movl	$0, -44(%rbp)
	movq	(%r14), %r12
	xorl	%edi, %edi
	callq	_NV_I2C_DEFAULT
	movq	_probe_monitoring_device@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	leaq	L_.str.1(%rip), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	*%r12
	cmpq	$0, (%r15)
	jne	LBB0_5
	jmp	LBB0_2
LBB0_3:
	movl	-56(%rbp), %esi
	sarl	%esi
	leaq	L_.str.2(%rip), %rdi
	callq	_I2C_BOARD_INFO
	movl	%eax, -48(%rbp)
	movl	$0, -44(%rbp)
	movq	(%r14), %rbx
	xorl	%edi, %edi
	callq	_NV_I2C_DEFAULT
	movq	_probe_monitoring_device@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	leaq	L_.str.1(%rip), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	*%rbx
	cmpq	$0, (%r15)
	je	LBB0_4
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NVBIOS_EXTDEV_LM89,4,2         ## @NVBIOS_EXTDEV_LM89
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lm90"

L_.str.1:                               ## @.str.1
	.asciz	"monitoring device"

	.comm	_probe_monitoring_device,4,2    ## @probe_monitoring_device
	.comm	_NVBIOS_EXTDEV_ADT7473,4,2      ## @NVBIOS_EXTDEV_ADT7473
L_.str.2:                               ## @.str.2
	.asciz	"adt7473"

	.comm	_nv_board_infos,8,3             ## @nv_board_infos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_therm_ic_ctor          ; -- Begin function nouveau_therm_ic_ctor
	.p2align	2
_nouveau_therm_ic_ctor:                 ; @nouveau_therm_ic_ctor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_nouveau_bios
	mov	x21, x0
	mov	x0, x20
	bl	_nouveau_i2c
	mov	x19, x0
Lloh3:
	adrp	x8, _NVBIOS_EXTDEV_LM89@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVBIOS_EXTDEV_LM89@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_nvbios_extdev_find
Lloh6:
	adrp	x22, _probe_monitoring_device@GOTPAGE
Lloh7:
	ldr	x22, [x22, _probe_monitoring_device@GOTPAGEOFF]
	cbz	w0, LBB0_3
LBB0_1:
Lloh8:
	adrp	x8, _NVBIOS_EXTDEV_ADT7473@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NVBIOS_EXTDEV_ADT7473@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_nvbios_extdev_find
	cbz	w0, LBB0_4
LBB0_2:
	ldr	x20, [x19]
	mov	w0, #0
	bl	_NV_I2C_DEFAULT
	mov	x1, x0
Lloh11:
	adrp	x8, _nv_board_infos@GOTPAGE
Lloh12:
	ldr	x8, [x8, _nv_board_infos@GOTPAGEOFF]
Lloh13:
	ldr	x3, [x8]
	ldr	w4, [x22]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	blr	x20
	b	LBB0_5
LBB0_3:
	ldr	w8, [sp, #8]
	asr	w1, w8, #1
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_I2C_BOARD_INFO
	stp	w0, wzr, [sp, #16]
	ldr	x23, [x19]
	mov	w0, #0
	bl	_NV_I2C_DEFAULT
	mov	x1, x0
	ldr	w4, [x22]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x3, sp, #16
	mov	x0, x19
	blr	x23
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
	b	LBB0_1
LBB0_4:
	ldr	w8, [sp, #8]
	asr	w1, w8, #1
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_I2C_BOARD_INFO
	stp	w0, wzr, [sp, #16]
	ldr	x21, [x19]
	mov	w0, #0
	bl	_NV_I2C_DEFAULT
	mov	x1, x0
	ldr	w4, [x22]
Lloh22:
	adrp	x2, l_.str.1@PAGE
Lloh23:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x3, sp, #16
	mov	x0, x19
	blr	x21
	ldr	x8, [x20]
	cbz	x8, LBB0_2
LBB0_5:
	ldr	x8, [sp, #24]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_NVBIOS_EXTDEV_LM89,4,2         ; @NVBIOS_EXTDEV_LM89
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lm90"

l_.str.1:                               ; @.str.1
	.asciz	"monitoring device"

	.comm	_probe_monitoring_device,4,2    ; @probe_monitoring_device
	.comm	_NVBIOS_EXTDEV_ADT7473,4,2      ; @NVBIOS_EXTDEV_ADT7473
l_.str.2:                               ; @.str.2
	.asciz	"adt7473"

	.comm	_nv_board_infos,8,3             ; @nv_board_infos
.subsections_via_symbols
