	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_therm_create_          ## -- Begin function nouveau_therm_create_
	.p2align	4, 0x90
_nouveau_therm_create_:                 ## @nouveau_therm_create_
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r8, %rbx
	movl	%ecx, %eax
	leaq	L_.str(%rip), %r8
	leaq	L_.str.1(%rip), %r9
	xorl	%ecx, %ecx
	pushq	%rbx
	pushq	%rax
	callq	_nouveau_subdev_create_
	addq	$16, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rbx
	leaq	36(%rbx), %rdi
	movq	_nouveau_therm_alarm@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nouveau_alarm_init
	leaq	32(%rbx), %rdi
	callq	_spin_lock_init
	leaq	28(%rbx), %rdi
	callq	_spin_lock_init
	movq	_nouveau_therm_fan_user_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_nouveau_therm_fan_user_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_nouveau_therm_fan_sense@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_nouveau_therm_attr_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_nouveau_therm_attr_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	$-1, (%rbx)
LBB0_2:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PTHERM"

L_.str.1:                               ## @.str.1
	.asciz	"therm"

	.comm	_nouveau_therm_alarm,4,2        ## @nouveau_therm_alarm
	.comm	_nouveau_therm_fan_user_get,4,2 ## @nouveau_therm_fan_user_get
	.comm	_nouveau_therm_fan_user_set,4,2 ## @nouveau_therm_fan_user_set
	.comm	_nouveau_therm_fan_sense,4,2    ## @nouveau_therm_fan_sense
	.comm	_nouveau_therm_attr_get,4,2     ## @nouveau_therm_attr_get
	.comm	_nouveau_therm_attr_set,4,2     ## @nouveau_therm_attr_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_therm_create_          ; -- Begin function nouveau_therm_create_
	.p2align	2
_nouveau_therm_create_:                 ; @nouveau_therm_create_
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x4
	mov	x6, x3
Lloh0:
	adrp	x4, l_.str@PAGE
Lloh1:
	add	x4, x4, l_.str@PAGEOFF
Lloh2:
	adrp	x5, l_.str.1@PAGE
Lloh3:
	add	x5, x5, l_.str.1@PAGEOFF
	mov	w3, #0
	mov	x7, x20
	bl	_nouveau_subdev_create_
	mov	x19, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x20, [x20]
	add	x0, x20, #36
Lloh4:
	adrp	x8, _nouveau_therm_alarm@GOTPAGE
Lloh5:
	ldr	x8, [x8, _nouveau_therm_alarm@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_nouveau_alarm_init
	add	x0, x20, #32
	bl	_spin_lock_init
	add	x0, x20, #28
	bl	_spin_lock_init
Lloh7:
	adrp	x8, _nouveau_therm_fan_user_get@GOTPAGE
Lloh8:
	ldr	x8, [x8, _nouveau_therm_fan_user_get@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x20, #24]
Lloh10:
	adrp	x8, _nouveau_therm_fan_user_set@GOTPAGE
Lloh11:
	ldr	x8, [x8, _nouveau_therm_fan_user_set@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _nouveau_therm_fan_sense@GOTPAGE
Lloh14:
	ldr	x9, [x9, _nouveau_therm_fan_sense@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
Lloh16:
	adrp	x8, _nouveau_therm_attr_get@GOTPAGE
Lloh17:
	ldr	x8, [x8, _nouveau_therm_attr_get@GOTPAGEOFF]
Lloh18:
	adrp	x9, _nouveau_therm_attr_set@GOTPAGE
Lloh19:
	ldr	x9, [x9, _nouveau_therm_attr_set@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x20]
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PTHERM"

l_.str.1:                               ; @.str.1
	.asciz	"therm"

	.comm	_nouveau_therm_alarm,4,2        ; @nouveau_therm_alarm
	.comm	_nouveau_therm_fan_user_get,4,2 ; @nouveau_therm_fan_user_get
	.comm	_nouveau_therm_fan_user_set,4,2 ; @nouveau_therm_fan_user_set
	.comm	_nouveau_therm_fan_sense,4,2    ; @nouveau_therm_fan_sense
	.comm	_nouveau_therm_attr_get,4,2     ; @nouveau_therm_attr_get
	.comm	_nouveau_therm_attr_set,4,2     ; @nouveau_therm_attr_set
.subsections_via_symbols
