	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h5_to_temp
_h5_to_temp:                            ## @h5_to_temp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	cmpl	$1281, %edi                     ## imm = 0x501
	jl	LBB0_2
## %bb.1:
	movq	_H5_TEMP_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_H5_TEMP_MUL@GOTPCREL(%rip), %rcx
	imull	(%rcx), %ebx
	subl	%ebx, %eax
	movq	_H5_TEMP_DIV@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_2:
	testl	%esi, %esi
	je	LBB0_3
## %bb.4:
	cmpl	$1, %esi
	jne	LBB0_8
## %bb.5:
	movq	_H5_TEMP_MUL_GPU@GOTPCREL(%rip), %rax
	movq	_H5_TEMP_BASE_GPU@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_3:
	movq	_H5_TEMP_MUL_CPU@GOTPCREL(%rip), %rax
	movq	_H5_TEMP_BASE_CPU@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %edx
	imull	(%rax), %ebx
	subl	%ebx, %edx
	movq	_H5_TEMP_DIV@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movl	%edx, %ebx
	jmp	LBB0_7
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_printf
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H5_TEMP_BASE,4,2               ## @H5_TEMP_BASE
	.comm	_H5_TEMP_MUL,4,2                ## @H5_TEMP_MUL
	.comm	_H5_TEMP_DIV,4,2                ## @H5_TEMP_DIV
	.comm	_H5_TEMP_BASE_CPU,4,2           ## @H5_TEMP_BASE_CPU
	.comm	_H5_TEMP_MUL_CPU,4,2            ## @H5_TEMP_MUL_CPU
	.comm	_H5_TEMP_BASE_GPU,4,2           ## @H5_TEMP_BASE_GPU
	.comm	_H5_TEMP_MUL_GPU,4,2            ## @H5_TEMP_MUL_GPU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown sensor %d\n"

	.no_dead_strip	_h5_to_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h5_to_temp
_h5_to_temp:                            ; @h5_to_temp
	.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	x19, x0
	cmp	w0, #1281
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _H5_TEMP_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H5_TEMP_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _H5_TEMP_MUL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _H5_TEMP_MUL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	msub	w8, w9, w19, w8
	b	LBB0_7
LBB0_2:
	cbz	w1, LBB0_5
; %bb.3:
	cmp	w1, #1
	b.ne	LBB0_9
; %bb.4:
Lloh6:
	adrp	x8, _H5_TEMP_MUL_GPU@GOTPAGE
Lloh7:
	ldr	x8, [x8, _H5_TEMP_MUL_GPU@GOTPAGEOFF]
Lloh8:
	adrp	x9, _H5_TEMP_BASE_GPU@GOTPAGE
Lloh9:
	ldr	x9, [x9, _H5_TEMP_BASE_GPU@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _H5_TEMP_MUL_CPU@GOTPAGE
Lloh11:
	ldr	x8, [x8, _H5_TEMP_MUL_CPU@GOTPAGEOFF]
Lloh12:
	adrp	x9, _H5_TEMP_BASE_CPU@GOTPAGE
Lloh13:
	ldr	x9, [x9, _H5_TEMP_BASE_CPU@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	ldr	w8, [x8]
	msub	w8, w8, w19, w9
LBB0_7:
Lloh14:
	adrp	x9, _H5_TEMP_DIV@GOTPAGE
Lloh15:
	ldr	x9, [x9, _H5_TEMP_DIV@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	asr	w19, w8, w9
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_H5_TEMP_BASE,4,2               ; @H5_TEMP_BASE
	.comm	_H5_TEMP_MUL,4,2                ; @H5_TEMP_MUL
	.comm	_H5_TEMP_DIV,4,2                ; @H5_TEMP_DIV
	.comm	_H5_TEMP_BASE_CPU,4,2           ; @H5_TEMP_BASE_CPU
	.comm	_H5_TEMP_MUL_CPU,4,2            ; @H5_TEMP_MUL_CPU
	.comm	_H5_TEMP_BASE_GPU,4,2           ; @H5_TEMP_BASE_GPU
	.comm	_H5_TEMP_MUL_GPU,4,2            ; @H5_TEMP_MUL_GPU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown sensor %d\n"

	.no_dead_strip	_h5_to_temp
.subsections_via_symbols
