	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_therm_attr_set            ## -- Begin function nvkm_therm_attr_set
	.p2align	4, 0x90
_nvkm_therm_attr_set:                   ## @nvkm_therm_attr_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$10, %esi
	ja	LBB0_14
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_13:
	movl	%edx, 12(%rdi)
	jmp	LBB0_6
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_12:
	movl	%edx, 8(%rdi)
	jmp	LBB0_6
LBB0_7:
	movl	%edx, 36(%rdi)
	jmp	LBB0_6
LBB0_5:
	movl	%edx, 32(%rdi)
	jmp	LBB0_6
LBB0_9:
	movl	%edx, 28(%rdi)
	jmp	LBB0_6
LBB0_8:
	movl	%edx, 24(%rdi)
	jmp	LBB0_6
LBB0_11:
	movl	%edx, 20(%rdi)
	jmp	LBB0_6
LBB0_10:
	movl	%edx, 16(%rdi)
LBB0_6:
	movq	(%rdi), %rax
	callq	*(%rax)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%edx, %esi
	popq	%rbp
	jmp	_nvkm_therm_fan_mode            ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	testl	%edx, %edx
	cmovlel	%eax, %edx
	movq	40(%rdi), %rcx
	movl	(%rcx), %esi
	cmpl	%esi, %edx
	cmovgel	%esi, %edx
	movl	%edx, 4(%rcx)
	popq	%rbp
	retq
LBB0_3:
	movq	40(%rdi), %rcx
	movl	4(%rcx), %esi
	cmpl	%esi, %edx
	cmovgl	%edx, %esi
	xorl	%eax, %eax
	testl	%esi, %esi
	cmovlel	%eax, %esi
	movl	%esi, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_therm_attr_set            ; -- Begin function nvkm_therm_attr_set
	.p2align	2
_nvkm_therm_attr_set:                   ; @nvkm_therm_attr_set
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	w8, w1, #128
	cmp	w8, #10
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	str	w2, [x0, #12]
	b	LBB0_11
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w8, w8
	b	LBB0_12
LBB0_4:
	str	w2, [x0, #8]
	b	LBB0_11
LBB0_5:
	str	w2, [x0, #36]
	b	LBB0_11
LBB0_6:
	str	w2, [x0, #32]
	b	LBB0_11
LBB0_7:
	str	w2, [x0, #28]
	b	LBB0_11
LBB0_8:
	str	w2, [x0, #24]
	b	LBB0_11
LBB0_9:
	str	w2, [x0, #20]
	b	LBB0_11
LBB0_10:
	str	w2, [x0, #16]
LBB0_11:
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	mov	w8, #0
LBB0_12:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x1, x2
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_nvkm_therm_fan_mode
LBB0_14:
	mov	w8, #0
	cmp	w2, #0
	csel	w9, w2, wzr, gt
	ldr	x10, [x0, #40]
	ldr	w11, [x10]
	cmp	w9, w11
	csel	w9, w9, w11, lt
	str	w9, [x10, #4]
	b	LBB0_12
LBB0_15:
	mov	w8, #0
	ldr	x9, [x0, #40]
	ldr	w10, [x9, #4]
	cmp	w2, w10
	csel	w10, w2, w10, gt
	cmp	w10, #0
	csel	w10, w10, wzr, gt
	str	w10, [x9]
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
