	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_tempsense
_store_tempsense:                       ## @store_tempsense
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ipath_parse_ushort
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	cmpl	$32639, -20(%rbp)               ## imm = 0x7F7F
	sete	%dl
	shll	$7, %edx
	movq	%r14, %rdi
	movl	$9, %esi
	callq	_ipath_tempsense_write
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_9
LBB0_4:
	movzbl	-20(%rbp), %edx
	movq	%r14, %rdi
	movl	$11, %esi
	callq	_ipath_tempsense_write
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_6:
	movl	-20(%rbp), %edx
	sarl	$8, %edx
	movq	%r14, %rdi
	movl	$13, %esi
	callq	_ipath_tempsense_write
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
LBB0_8:
	movl	$-1, %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_ipath_dev_err
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempt to set invalid tempsense config\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to set tempsense config\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to set local Tcrit\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to set remote Tcrit\n"

	.no_dead_strip	_store_tempsense
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_tempsense
_store_tempsense:                       ; @store_tempsense
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	bl	_dev_get_drvdata
	mov	x19, x0
	add	x1, sp, #12
	mov	x0, x20
	bl	_ipath_parse_ushort
	mov	x20, x0
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
	mov	w9, #32639
	cmp	w8, w9
	cset	w8, eq
	lsl	w2, w8, #7
	mov	x0, x19
	mov	w1, #9
	bl	_ipath_tempsense_write
	cbz	w0, LBB0_4
; %bb.2:
	mov	w20, #-1
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_4:
	ldrb	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #11
	bl	_ipath_tempsense_write
	cbz	w0, LBB0_6
; %bb.5:
	mov	w20, #-1
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_6:
	ldr	w8, [sp, #12]
	asr	w2, w8, #8
	mov	x0, x19
	mov	w1, #13
	bl	_ipath_tempsense_write
	cbz	w0, LBB0_9
; %bb.7:
	mov	w20, #-1
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_ipath_dev_err
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempt to set invalid tempsense config\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to set tempsense config\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to set local Tcrit\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to set remote Tcrit\n"

	.no_dead_strip	_store_tempsense
.subsections_via_symbols
