	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max6650_read
_max6650_read:                          ## @max6650_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, %r12d
	movl	%edx, %r13d
	movl	%esi, %ebx
	callq	_max6650_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	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	cmpl	$137, %ebx
	je	LBB0_7
## %bb.3:
	cmpl	$130, %ebx
	jne	LBB0_10
## %bb.4:
	cmpl	$129, %r13d
	je	LBB0_11
## %bb.5:
	cmpl	$128, %r13d
	jne	LBB0_10
## %bb.6:
	movl	32(%r15), %edi
	movq	_MAX6650_CFG_V12@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	(%r15), %esi
	callq	_dac_to_pwm
	jmp	LBB0_19
LBB0_7:
	addl	$-131, %r13d
	cmpl	$5, %r13d
	ja	LBB0_10
## %bb.8:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r13,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_9:
	movl	(%r15), %edi
	callq	_DIV_FROM_REG
	movq	_clock@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	imull	$60, %eax, %eax
	movl	28(%r15), %ecx
	shll	$8, %ecx
	addl	$256, %ecx                      ## imm = 0x100
	cltd
	idivl	%ecx
	jmp	LBB0_18
LBB0_10:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_21
LBB0_11:
	movq	_MAX6650_CFG_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	shrl	$4, %eax
	negl	%eax
	andl	$3, %eax
	jmp	LBB0_19
LBB0_12:
	movl	20(%r15), %eax
	movq	_MAX6650_ALRM_MIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_13:
	movl	20(%r15), %eax
	movq	_MAX6650_ALRM_MAX@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_14:
	movq	8(%r15), %rax
	movslq	%r12d, %rcx
	imull	$120, (%rax,%rcx,4), %ebx
	movl	16(%r15), %edi
	callq	_DIV_FROM_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_DIV_ROUND_CLOSEST
	jmp	LBB0_19
LBB0_15:
	movl	20(%r15), %eax
	movq	_MAX6650_ALRM_TACH@GOTPCREL(%rip), %rcx
LBB0_16:
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	testl	%eax, %ecx
	setne	%dl
	movq	%rdx, (%r14)
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, 20(%r15)
	movl	$0, 24(%r15)
	jmp	LBB0_20
LBB0_17:
	movl	16(%r15), %edi
	callq	_DIV_FROM_REG
LBB0_18:
	cltq
LBB0_19:
	movq	%rax, (%r14)
LBB0_20:
	xorl	%eax, %eax
LBB0_21:
	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_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_MAX6650_CFG_V12,4,2            ## @MAX6650_CFG_V12
	.comm	_MAX6650_CFG_MODE_MASK,4,2      ## @MAX6650_CFG_MODE_MASK
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_clock,4,2                      ## @clock
	.comm	_MAX6650_ALRM_MIN,4,2           ## @MAX6650_ALRM_MIN
	.comm	_MAX6650_ALRM_MAX,4,2           ## @MAX6650_ALRM_MAX
	.comm	_MAX6650_ALRM_TACH,4,2          ## @MAX6650_ALRM_TACH
	.no_dead_strip	_max6650_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max6650_read
_max6650_read:                          ; @max6650_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	x21, x3
	mov	x22, x2
	mov	x23, x1
	bl	_max6650_update_device
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	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	_PTR_ERR
LBB0_2:
	cmp	w23, #137
	b.eq	LBB0_7
; %bb.3:
	cmp	w23, #130
	b.ne	LBB0_10
; %bb.4:
	cmp	w22, #129
	b.eq	LBB0_11
; %bb.5:
	cmp	w22, #128
	b.ne	LBB0_10
; %bb.6:
	ldr	w0, [x20, #32]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _MAX6650_CFG_V12@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX6650_CFG_V12@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w1, w9, w8
	bl	_dac_to_pwm
	b	LBB0_15
LBB0_7:
	sub	w8, w22, #131
	cmp	w8, #5
	b.hi	LBB0_10
; %bb.8:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
	ldr	w0, [x20]
	bl	_DIV_FROM_REG
	mov	x8, x0
	mov	w0, #0
Lloh5:
	adrp	x9, _clock@GOTPAGE
Lloh6:
	ldr	x9, [x9, _clock@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	mul	w8, w8, w9
	mov	w9, #60
	mul	w8, w8, w9
	ldr	w9, [x20, #28]
	lsl	w9, w9, #8
	add	w9, w9, #256
	sdiv	w8, w8, w9
	b	LBB0_19
LBB0_10:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_11:
	mov	w0, #0
Lloh11:
	adrp	x8, _MAX6650_CFG_MODE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX6650_CFG_MODE_MASK@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh13:
	ldr	w8, [x8]
	and	w8, w8, w9
	neg	w8, w8, lsr #4
	and	w8, w8, #0x3
	b	LBB0_20
LBB0_12:
	mov	w0, #0
	ldr	w8, [x20, #20]
Lloh14:
	adrp	x9, _MAX6650_ALRM_MIN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MAX6650_ALRM_MIN@GOTPAGEOFF]
	b	LBB0_17
LBB0_13:
	mov	w0, #0
	ldr	w8, [x20, #20]
Lloh16:
	adrp	x9, _MAX6650_ALRM_MAX@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MAX6650_ALRM_MAX@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:
	ldr	x8, [x20, #8]
	ldr	w8, [x8, w21, sxtw #2]
	mov	w9, #120
	mul	w21, w8, w9
	ldr	w0, [x20, #16]
	bl	_DIV_FROM_REG
	mov	x1, x0
	mov	x0, x21
	bl	_DIV_ROUND_CLOSEST
LBB0_15:
	mov	x8, x0
	mov	w0, #0
	b	LBB0_20
LBB0_16:
	mov	w0, #0
	ldr	w8, [x20, #20]
Lloh18:
	adrp	x9, _MAX6650_ALRM_TACH@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MAX6650_ALRM_TACH@GOTPAGEOFF]
LBB0_17:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w10, ne
	str	x10, [x19]
	bic	w8, w8, w9
	stp	w8, wzr, [x20, #20]
	b	LBB0_21
LBB0_18:
	ldr	w0, [x20, #16]
	bl	_DIV_FROM_REG
	mov	x8, x0
	mov	w0, #0
LBB0_19:
	sxtw	x8, w8
LBB0_20:
	str	x8, [x19]
LBB0_21:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_13-LBB0_9)>>2
	.byte	(LBB0_14-LBB0_9)>>2
	.byte	(LBB0_16-LBB0_9)>>2
	.byte	(LBB0_18-LBB0_9)>>2
                                        ; -- End function
	.comm	_MAX6650_CFG_V12,4,2            ; @MAX6650_CFG_V12
	.comm	_MAX6650_CFG_MODE_MASK,4,2      ; @MAX6650_CFG_MODE_MASK
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_clock,4,2                      ; @clock
	.comm	_MAX6650_ALRM_MIN,4,2           ; @MAX6650_ALRM_MIN
	.comm	_MAX6650_ALRM_MAX,4,2           ; @MAX6650_ALRM_MAX
	.comm	_MAX6650_ALRM_TACH,4,2          ; @MAX6650_ALRM_TACH
	.no_dead_strip	_max6650_read
.subsections_via_symbols
