	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pem_update_device
_pem_update_device:                     ## @pem_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	%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
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	48(%rax), %r15
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r12), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_1
LBB0_2:
	movq	_PEM_READ_DATA_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	44(%r12), %edx
	movq	%r15, %rdi
	movl	$4, %ecx
	callq	_pem_read_block
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, %r12
	jmp	LBB0_9
LBB0_1:
	cmpl	$0, (%r12)
	jne	LBB0_9
	jmp	LBB0_2
LBB0_4:
	movl	4(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:
	movq	_PEM_READ_INPUT_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	40(%r12), %edx
	movq	%r15, %rdi
	callq	_pem_read_block
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
LBB0_6:
	cmpq	$0, 32(%r12)
	je	LBB0_8
## %bb.7:
	movq	_PEM_READ_FAN_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r12), %edx
	movq	%r15, %rdi
	movl	$4, %ecx
	callq	_pem_read_block
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
LBB0_8:
	movq	_PEM_CLEAR_INFO_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte
	movq	(%r13), %rax
	movq	%rax, 16(%r12)
	movl	$1, (%r12)
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_PEM_READ_DATA_STRING,4,2       ## @PEM_READ_DATA_STRING
	.comm	_PEM_READ_INPUT_STRING,4,2      ## @PEM_READ_INPUT_STRING
	.comm	_PEM_READ_FAN_SPEED,4,2         ## @PEM_READ_FAN_SPEED
	.comm	_PEM_CLEAR_INFO_FLAGS,4,2       ## @PEM_CLEAR_INFO_FLAGS
	.no_dead_strip	_pem_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pem_update_device
_pem_update_device:                     ; @pem_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, #8
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	x8, [x20, #16]
Lloh2:
	adrp	x9, _HZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_time_after
	cbz	x0, LBB0_3
LBB0_1:
Lloh5:
	adrp	x8, _PEM_READ_DATA_STRING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PEM_READ_DATA_STRING@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x20, #44]
	mov	x0, x21
	mov	w3, #4
	bl	_pem_read_block
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, x22
	bl	_ERR_PTR
	mov	x20, x0
	b	LBB0_9
LBB0_3:
	ldr	w8, [x20]
	cbnz	w8, LBB0_9
	b	LBB0_1
LBB0_4:
	ldr	w3, [x20, #4]
	cbz	w3, LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _PEM_READ_INPUT_STRING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PEM_READ_INPUT_STRING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x20, #40]
	mov	x0, x21
	bl	_pem_read_block
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_2
LBB0_6:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, _PEM_READ_FAN_SPEED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PEM_READ_FAN_SPEED@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x20, #24]
	mov	x0, x21
	mov	w3, #4
	bl	_pem_read_block
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_2
LBB0_8:
Lloh14:
	adrp	x8, _PEM_CLEAR_INFO_FLAGS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PEM_CLEAR_INFO_FLAGS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_write_byte
	ldr	x8, [x23]
	str	x8, [x20, #16]
	mov	w8, #1
	str	w8, [x20]
LBB0_9:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_PEM_READ_DATA_STRING,4,2       ; @PEM_READ_DATA_STRING
	.comm	_PEM_READ_INPUT_STRING,4,2      ; @PEM_READ_INPUT_STRING
	.comm	_PEM_READ_FAN_SPEED,4,2         ; @PEM_READ_FAN_SPEED
	.comm	_PEM_CLEAR_INFO_FLAGS,4,2       ; @PEM_CLEAR_INFO_FLAGS
	.no_dead_strip	_pem_update_device
.subsections_via_symbols
