	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max6621_read
_max6621_read:                          ## @max6621_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, %r15
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_dev_get_drvdata
	cmpl	$132, %r12d
	jne	LBB0_18
## %bb.1:
	addq	$-128, %rbx
	cmpq	$3, %rbx
	ja	LBB0_18
## %bb.2:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rbx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_7:
	movl	12(%rax), %edi
	movq	_MAX6621_CONFIG2_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_4
LBB0_18:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%rax), %rdx
	movslq	%r13d, %rcx
	movl	(%rdx,%rcx,4), %esi
	movl	12(%rax), %edi
LBB0_4:
	leaq	-48(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_19
## %bb.5:
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_max6621_verify_reg_data
	testl	%eax, %eax
	jne	LBB0_19
## %bb.6:
	movq	-48(%rbp), %rax
	movq	_MAX6621_REG_TEMP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarq	%cl, %rax
	imulq	$1000, %rax, %rax               ## imm = 0x3E8
	jmp	LBB0_17
LBB0_11:
	movq	$0, (%r15)
	movl	12(%rax), %edi
	movq	_MAX6621_TEMP_ALERT_CAUSE_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rbx
	leaq	-48(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_19
## %bb.12:
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_max6621_verify_reg_data
	movq	-48(%rbp), %rcx
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	_MAX6621_ALERT_DIS@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	cmovel	%esi, %eax
	jmp	LBB0_19
LBB0_8:
	movq	_MAX6621_TEMP_ALERT_CHAN_SHIFT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	movslq	%r13d, %rcx
	subq	%rdx, %rcx
	movq	_max6621_temp_alert_chan2reg@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rcx,4), %esi
	movl	12(%rax), %edi
	leaq	-48(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_19
## %bb.9:
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_max6621_verify_reg_data
	testl	%eax, %eax
	jne	LBB0_19
## %bb.10:
	imulq	$1000, -48(%rbp), %rax          ## imm = 0x3E8
	jmp	LBB0_17
LBB0_14:
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.15:
	movl	8(%rbx), %edi
	movq	_MAX6621_CLEAR_ALERT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_write_byte
	testl	%eax, %eax
	jne	LBB0_19
## %bb.16:
	xorl	%eax, %eax
	cmpq	$0, -48(%rbp)
	setne	%al
LBB0_17:
	movq	%rax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_19
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_11
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_MAX6621_REG_TEMP_SHIFT,8,3     ## @MAX6621_REG_TEMP_SHIFT
	.comm	_MAX6621_CONFIG2_REG,4,2        ## @MAX6621_CONFIG2_REG
	.comm	_MAX6621_TEMP_ALERT_CHAN_SHIFT,4,2 ## @MAX6621_TEMP_ALERT_CHAN_SHIFT
	.comm	_max6621_temp_alert_chan2reg,8,3 ## @max6621_temp_alert_chan2reg
	.comm	_MAX6621_TEMP_ALERT_CAUSE_REG,4,2 ## @MAX6621_TEMP_ALERT_CAUSE_REG
	.comm	_MAX6621_ALERT_DIS,8,3          ## @MAX6621_ALERT_DIS
	.comm	_MAX6621_CLEAR_ALERT_REG,4,2    ## @MAX6621_CLEAR_ALERT_REG
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_max6621_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max6621_read
_max6621_read:                          ; @max6621_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	bl	_dev_get_drvdata
	cmp	w24, #132
	b.ne	LBB0_4
; %bb.1:
	sub	x8, x23, #128
	cmp	x8, #3
	b.hi	LBB0_4
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w0, [x21, #12]
Lloh2:
	adrp	x8, _MAX6621_CONFIG2_REG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX6621_CONFIG2_REG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	x8, [x21]
	ldr	w1, [x8, w22, sxtw #2]
	ldr	w0, [x21, #12]
LBB0_7:
	add	x2, sp, #8
	bl	_regmap_read
	cbnz	w0, LBB0_5
; %bb.8:
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_max6621_verify_reg_data
	cbnz	w0, LBB0_5
; %bb.9:
Lloh8:
	adrp	x8, _MAX6621_REG_TEMP_SHIFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX6621_REG_TEMP_SHIFT@GOTPAGEOFF]
	ldr	x9, [sp, #8]
Lloh10:
	ldr	x8, [x8]
	asr	x8, x9, x8
	b	LBB0_16
LBB0_10:
	str	xzr, [x19]
	ldr	w0, [x21, #12]
Lloh11:
	adrp	x8, _MAX6621_TEMP_ALERT_CAUSE_REG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX6621_TEMP_ALERT_CAUSE_REG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_regmap_read
	cbnz	w0, LBB0_5
; %bb.11:
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_max6621_verify_reg_data
	ldr	x8, [sp, #8]
	cbz	w0, LBB0_17
; %bb.12:
Lloh14:
	adrp	x9, _MAX6621_ALERT_DIS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MAX6621_ALERT_DIS@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	w0, wzr, w0, eq
	b	LBB0_5
LBB0_13:
Lloh17:
	adrp	x8, _MAX6621_TEMP_ALERT_CHAN_SHIFT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAX6621_TEMP_ALERT_CHAN_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	sub	w8, w22, w8
Lloh20:
	adrp	x9, _max6621_temp_alert_chan2reg@GOTPAGE
Lloh21:
	ldr	x9, [x9, _max6621_temp_alert_chan2reg@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	ldr	w1, [x9, w8, sxtw #2]
	ldr	w0, [x21, #12]
	add	x2, sp, #8
	bl	_regmap_read
	cbnz	w0, LBB0_5
; %bb.14:
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_max6621_verify_reg_data
	cbnz	w0, LBB0_5
; %bb.15:
	ldr	x8, [sp, #8]
LBB0_16:
	mov	w9, #1000
	mul	x8, x8, x9
	str	x8, [x19]
	b	LBB0_5
LBB0_17:
	cbz	x8, LBB0_20
; %bb.18:
	ldr	w0, [x21, #8]
Lloh23:
	adrp	x8, _MAX6621_CLEAR_ALERT_REG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAX6621_CLEAR_ALERT_REG@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_i2c_smbus_write_byte
	cbnz	w0, LBB0_5
; %bb.19:
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w8, ne
LBB0_20:
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
                                        ; -- End function
	.comm	_MAX6621_REG_TEMP_SHIFT,8,3     ; @MAX6621_REG_TEMP_SHIFT
	.comm	_MAX6621_CONFIG2_REG,4,2        ; @MAX6621_CONFIG2_REG
	.comm	_MAX6621_TEMP_ALERT_CHAN_SHIFT,4,2 ; @MAX6621_TEMP_ALERT_CHAN_SHIFT
	.comm	_max6621_temp_alert_chan2reg,8,3 ; @max6621_temp_alert_chan2reg
	.comm	_MAX6621_TEMP_ALERT_CAUSE_REG,4,2 ; @MAX6621_TEMP_ALERT_CAUSE_REG
	.comm	_MAX6621_ALERT_DIS,8,3          ; @MAX6621_ALERT_DIS
	.comm	_MAX6621_CLEAR_ALERT_REG,4,2    ; @MAX6621_CLEAR_ALERT_REG
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_max6621_read
.subsections_via_symbols
