	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lochnagar_read
_lochnagar_read:                        ## @lochnagar_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r13
	callq	_dev_get_drvdata
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_10
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_5:
	movq	_LN2_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LN2_TEMP_UNITS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_LN2_VOLT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LN2_VOLT_UNITS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	cmpl	$129, %r12d
	je	LBB0_9
## %bb.7:
	cmpl	$130, %r12d
	jne	LBB0_10
## %bb.8:
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_read_power                     ## TAILCALL
LBB0_10:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_4:
	movq	_LN2_CURR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LN2_CURR_UNITS@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	$1, %ecx
	movq	%r14, %r9
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_read_sensor                    ## TAILCALL
LBB0_9:
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	movq	_LN2_SAMPLE_US@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	imull	(%rax,%rcx,4), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_DIV_ROUND_CLOSEST
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_LN2_VOLT,4,2                   ## @LN2_VOLT
	.comm	_LN2_VOLT_UNITS,4,2             ## @LN2_VOLT_UNITS
	.comm	_LN2_CURR,4,2                   ## @LN2_CURR
	.comm	_LN2_CURR_UNITS,4,2             ## @LN2_CURR_UNITS
	.comm	_LN2_TEMP,4,2                   ## @LN2_TEMP
	.comm	_LN2_TEMP_UNITS,4,2             ## @LN2_TEMP_UNITS
	.comm	_LN2_SAMPLE_US,4,2              ## @LN2_SAMPLE_US
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_lochnagar_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lochnagar_read
_lochnagar_read:                        ; @lochnagar_read
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	bl	_dev_get_drvdata
	sub	w8, w23, #128
	cmp	w8, #5
	b.hi	LBB0_7
; %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:
Lloh2:
	adrp	x8, _LN2_TEMP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LN2_TEMP@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _LN2_TEMP_UNITS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LN2_TEMP_UNITS@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
Lloh7:
	adrp	x8, _LN2_VOLT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LN2_VOLT@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _LN2_VOLT_UNITS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LN2_VOLT_UNITS@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	cmp	w22, #129
	b.eq	LBB0_10
; %bb.5:
	cmp	w22, #130
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_read_power
LBB0_7:
Lloh12:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_8:
Lloh15:
	adrp	x8, _LN2_CURR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LN2_CURR@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _LN2_CURR_UNITS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LN2_CURR_UNITS@GOTPAGEOFF]
LBB0_9:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	w3, #1
	mov	x5, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_read_sensor
LBB0_10:
	ldr	x8, [x0]
	ldr	w8, [x8, w20, sxtw #2]
Lloh20:
	adrp	x9, _LN2_SAMPLE_US@GOTPAGE
Lloh21:
	ldr	x9, [x9, _LN2_SAMPLE_US@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	mul	w0, w9, w8
	mov	w1, #1000
	bl	_DIV_ROUND_CLOSEST
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_LN2_VOLT,4,2                   ; @LN2_VOLT
	.comm	_LN2_VOLT_UNITS,4,2             ; @LN2_VOLT_UNITS
	.comm	_LN2_CURR,4,2                   ; @LN2_CURR
	.comm	_LN2_CURR_UNITS,4,2             ; @LN2_CURR_UNITS
	.comm	_LN2_TEMP,4,2                   ; @LN2_TEMP
	.comm	_LN2_TEMP_UNITS,4,2             ; @LN2_TEMP_UNITS
	.comm	_LN2_SAMPLE_US,4,2              ; @LN2_SAMPLE_US
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_lochnagar_read
.subsections_via_symbols
