	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jc42_read
_jc42_read:                             ## @jc42_read
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%edx, %ebx
	callq	_jc42_update_device
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	addl	$-128, %ebx
	cmpl	$8, %ebx
	ja	LBB0_5
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	(%r15), %rax
	movq	_t_input@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	_JC42_ALARM_MIN_BIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_6:
	movq	(%r15), %rax
	movq	_t_min@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_7:
	movq	(%r15), %rax
	movq	_t_max@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_8:
	movq	(%r15), %rax
	movq	_t_input@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	_JC42_ALARM_MAX_BIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_9:
	movq	(%r15), %rax
	movq	_t_max@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_10:
	movq	(%r15), %rax
	movq	_t_input@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_11:
	movq	(%r15), %rax
	movq	_t_crit@GOTPCREL(%rip), %rcx
LBB0_12:
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_jc42_temp_from_reg
	movq	_jc42_hysteresis@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_JC42_CFG_HYST_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	andq	8(%r15), %rsi
	movq	_JC42_CFG_HYST_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrq	%cl, %rsi
	movslq	(%rdx,%rsi,4), %rcx
	cltq
	subq	%rcx, %rax
	jmp	LBB0_17
LBB0_13:
	movq	(%r15), %rax
	movq	_t_input@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	_JC42_ALARM_CRIT_BIT@GOTPCREL(%rip), %rcx
LBB0_14:
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	btq	%rcx, %rax
	setb	%dl
	movq	%rdx, (%r14)
	jmp	LBB0_18
LBB0_15:
	movq	(%r15), %rax
	movq	_t_crit@GOTPCREL(%rip), %rcx
LBB0_16:
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_jc42_temp_from_reg
LBB0_17:
	movq	%rax, (%r14)
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_t_input,8,3                    ## @t_input
	.comm	_t_min,8,3                      ## @t_min
	.comm	_t_max,8,3                      ## @t_max
	.comm	_t_crit,8,3                     ## @t_crit
	.comm	_jc42_hysteresis,8,3            ## @jc42_hysteresis
	.comm	_JC42_CFG_HYST_MASK,8,3         ## @JC42_CFG_HYST_MASK
	.comm	_JC42_CFG_HYST_SHIFT,8,3        ## @JC42_CFG_HYST_SHIFT
	.comm	_JC42_ALARM_MIN_BIT,4,2         ## @JC42_ALARM_MIN_BIT
	.comm	_JC42_ALARM_MAX_BIT,4,2         ## @JC42_ALARM_MAX_BIT
	.comm	_JC42_ALARM_CRIT_BIT,4,2        ## @JC42_ALARM_CRIT_BIT
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_jc42_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jc42_read
_jc42_read:                             ; @jc42_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x4
	mov	x21, x2
	bl	_jc42_update_device
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	sub	w8, w21, #128
	cmp	w8, #8
	b.hi	LBB0_5
; %bb.3:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	w0, #0
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _t_input@GOTPAGE
Lloh3:
	ldr	x9, [x9, _t_input@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh5:
	adrp	x9, _JC42_ALARM_MIN_BIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _JC42_ALARM_MIN_BIT@GOTPAGEOFF]
	b	LBB0_14
LBB0_5:
Lloh7:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_6:
	ldr	x8, [x20]
Lloh10:
	adrp	x9, _t_min@GOTPAGE
Lloh11:
	ldr	x9, [x9, _t_min@GOTPAGEOFF]
	b	LBB0_16
LBB0_7:
	ldr	x8, [x20]
Lloh12:
	adrp	x9, _t_max@GOTPAGE
Lloh13:
	ldr	x9, [x9, _t_max@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
	mov	w0, #0
	ldr	x8, [x20]
Lloh14:
	adrp	x9, _t_input@GOTPAGE
Lloh15:
	ldr	x9, [x9, _t_input@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh17:
	adrp	x9, _JC42_ALARM_MAX_BIT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _JC42_ALARM_MAX_BIT@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
	ldr	x8, [x20]
Lloh19:
	adrp	x9, _t_max@GOTPAGE
Lloh20:
	ldr	x9, [x9, _t_max@GOTPAGEOFF]
	b	LBB0_16
LBB0_10:
	ldr	x8, [x20]
Lloh21:
	adrp	x9, _t_input@GOTPAGE
Lloh22:
	ldr	x9, [x9, _t_input@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
	ldr	x8, [x20]
Lloh23:
	adrp	x9, _t_crit@GOTPAGE
Lloh24:
	ldr	x9, [x9, _t_crit@GOTPAGEOFF]
LBB0_12:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_jc42_temp_from_reg
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x20, #8]
Lloh25:
	adrp	x10, _JC42_CFG_HYST_MASK@GOTPAGE
Lloh26:
	ldr	x10, [x10, _JC42_CFG_HYST_MASK@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	and	x9, x10, x9
Lloh28:
	adrp	x10, _JC42_CFG_HYST_SHIFT@GOTPAGE
Lloh29:
	ldr	x10, [x10, _JC42_CFG_HYST_SHIFT@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	lsr	x9, x9, x10
Lloh31:
	adrp	x10, _jc42_hysteresis@GOTPAGE
Lloh32:
	ldr	x10, [x10, _jc42_hysteresis@GOTPAGEOFF]
Lloh33:
	ldr	x10, [x10]
	ldrsw	x9, [x10, x9, lsl #2]
	sxtw	x8, w8
	sub	x8, x8, x9
	b	LBB0_17
LBB0_13:
	mov	w0, #0
	ldr	x8, [x20]
Lloh34:
	adrp	x9, _t_input@GOTPAGE
Lloh35:
	ldr	x9, [x9, _t_input@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh37:
	adrp	x9, _JC42_ALARM_CRIT_BIT@GOTPAGE
Lloh38:
	ldr	x9, [x9, _JC42_ALARM_CRIT_BIT@GOTPAGEOFF]
LBB0_14:
	ldr	w9, [x9]
	lsr	x8, x8, x9
	and	x8, x8, #0x1
	b	LBB0_17
LBB0_15:
	ldr	x8, [x20]
Lloh39:
	adrp	x9, _t_crit@GOTPAGE
Lloh40:
	ldr	x9, [x9, _t_crit@GOTPAGEOFF]
LBB0_16:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_jc42_temp_from_reg
	mov	x8, x0
	mov	w0, #0
LBB0_17:
	str	x8, [x19]
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
                                        ; -- End function
	.comm	_t_input,8,3                    ; @t_input
	.comm	_t_min,8,3                      ; @t_min
	.comm	_t_max,8,3                      ; @t_max
	.comm	_t_crit,8,3                     ; @t_crit
	.comm	_jc42_hysteresis,8,3            ; @jc42_hysteresis
	.comm	_JC42_CFG_HYST_MASK,8,3         ; @JC42_CFG_HYST_MASK
	.comm	_JC42_CFG_HYST_SHIFT,8,3        ; @JC42_CFG_HYST_SHIFT
	.comm	_JC42_ALARM_MIN_BIT,4,2         ; @JC42_ALARM_MIN_BIT
	.comm	_JC42_ALARM_MAX_BIT,4,2         ; @JC42_ALARM_MAX_BIT
	.comm	_JC42_ALARM_CRIT_BIT,4,2        ; @JC42_ALARM_CRIT_BIT
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_jc42_read
.subsections_via_symbols
