	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max6639_update_device
_max6639_update_device:                 ## @max6639_update_device
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	48(%rax), %r15
	leaq	32(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	addq	%rsi, %rsi
	addq	40(%rbx), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_1
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	movq	_MAX6639_REG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%eax, 4(%rbx)
	xorl	%edi, %edi
	callq	_MAX6639_REG_FAN_CNT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	callq	_MAX6639_REG_TEMP_EXT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_3
## %bb.6:
	movl	%eax, %ecx
	shrl	$5, %ecx
	movq	16(%rbx), %rdx
	movl	%ecx, (%rdx)
	andl	$1, %eax
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	callq	_MAX6639_REG_TEMP
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_3
## %bb.7:
	shll	$3, %eax
	movq	16(%rbx), %rcx
	orl	%eax, (%rcx)
	movl	$1, %edi
	callq	_MAX6639_REG_FAN_CNT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_3
## %bb.8:
	movq	8(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	$1, %edi
	callq	_MAX6639_REG_TEMP_EXT
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_3
## %bb.9:
	movl	%eax, %ecx
	shrl	$5, %ecx
	movq	16(%rbx), %rdx
	movl	%ecx, 4(%rdx)
	andl	$1, %eax
	movq	24(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	$1, %edi
	callq	_MAX6639_REG_TEMP
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_3
## %bb.10:
	shll	$3, %eax
	movq	16(%rbx), %rcx
	orl	%eax, 4(%rcx)
	movq	(%r12), %rax
	movq	%rax, 40(%rbx)
	movl	$1, (%rbx)
	jmp	LBB0_11
LBB0_3:
	movl	%eax, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	jmp	LBB0_11
LBB0_1:
	cmpl	$0, (%rbx)
	je	LBB0_2
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Starting max6639 update\n"

	.comm	_MAX6639_REG_STATUS,4,2         ## @MAX6639_REG_STATUS
	.no_dead_strip	_max6639_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max6639_update_device
_max6639_update_device:                 ; @max6639_update_device
	.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
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	x21, [x0, #48]
	add	x19, x0, #32
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x0, [x22]
	ldr	x8, [x20, #40]
Lloh2:
	adrp	x9, _HZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh4:
	ldrsw	x9, [x9]
	add	x1, x8, x9, lsl #1
	bl	_time_after
	cbz	x0, LBB0_10
LBB0_1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh7:
	adrp	x8, _MAX6639_REG_STATUS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX6639_REG_STATUS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_9
; %bb.2:
	str	w0, [x20, #4]
	mov	w0, #0
	bl	_MAX6639_REG_FAN_CNT
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	x8, [x20, #8]
	str	w0, [x8]
	mov	w0, #0
	bl	_MAX6639_REG_TEMP_EXT
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_9
; %bb.4:
	lsr	w8, w0, #5
	ldp	x9, x10, [x20, #16]
	str	w8, [x9]
	and	w8, w0, #0x1
	str	w8, [x10]
	mov	w0, #0
	bl	_MAX6639_REG_TEMP
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_9
; %bb.5:
	ldr	x8, [x20, #16]
	ldr	w9, [x8]
	orr	w9, w9, w0, lsl #3
	str	w9, [x8]
	mov	w0, #1
	bl	_MAX6639_REG_FAN_CNT
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldr	x8, [x20, #8]
	str	w0, [x8, #4]
	mov	w0, #1
	bl	_MAX6639_REG_TEMP_EXT
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_9
; %bb.7:
	lsr	w8, w0, #5
	ldp	x9, x10, [x20, #16]
	str	w8, [x9, #4]
	and	w8, w0, #0x1
	str	w8, [x10, #4]
	mov	w23, #1
	mov	w0, #1
	bl	_MAX6639_REG_TEMP
	mov	x1, x0
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_9
; %bb.8:
	ldr	x8, [x20, #16]
	ldr	w9, [x8, #4]
	orr	w9, w9, w0, lsl #3
	str	w9, [x8, #4]
	ldr	x8, [x22]
	str	x8, [x20, #40]
	str	w23, [x20]
	b	LBB0_11
LBB0_9:
	bl	_ERR_PTR
	mov	x20, x0
	b	LBB0_11
LBB0_10:
	ldr	w8, [x20]
	cbz	w8, LBB0_1
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting max6639 update\n"

	.comm	_MAX6639_REG_STATUS,4,2         ; @MAX6639_REG_STATUS
	.no_dead_strip	_max6639_update_device
.subsections_via_symbols
