	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_temp_offset
_set_temp_offset:                       ## @set_temp_offset
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r13
	movq	_SMSC47M192_REG_SFR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtol
	movq	%rax, %r12
	leaq	8(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_TEMP_TO_REG
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%r14,4)
	cmpq	$2, %r14
	jge	LBB0_1
## %bb.2:
	movq	_SMSC47M192_REG_SFR@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	(%rcx), %esi
	andl	$239, %ebx
	xorl	%edx, %edx
	testl	%r14d, %r14d
	sete	%dl
	shll	$4, %edx
	orl	%ebx, %edx
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte_data
	movq	(%r13), %rax
	movl	$1, %ecx
	subl	%r14d, %ecx
	movl	$0, (%rax,%rcx,4)
LBB0_1:
	movl	%r14d, %edi
	callq	_SMSC47M192_REG_TEMP_OFFSET
	movq	(%r13), %rcx
	movl	(%rcx,%r14,4), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_write_byte_data
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	andl	$16, %ebx
	xorl	%eax, %eax
	testl	%r14d, %r14d
	sete	%al
	shll	$4, %eax
	cmpl	%eax, %ebx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_6
## %bb.5:
	movl	%r14d, %edi
	callq	_SMSC47M192_REG_TEMP_OFFSET
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_i2c_smbus_write_byte_data
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_SMSC47M192_REG_SFR,4,2         ## @SMSC47M192_REG_SFR
	.no_dead_strip	_set_temp_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_temp_offset
_set_temp_offset:                       ; @set_temp_offset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x22, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	ldrsw	x21, [x0]
	mov	x0, x20
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x23, x0
Lloh0:
	adrp	x26, _SMSC47M192_REG_SFR@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SMSC47M192_REG_SFR@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	mov	x24, x0
	mov	x0, x22
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtol
	mov	x25, x0
	add	x22, x23, #8
	mov	x0, x22
	bl	_mutex_lock
	mov	x0, x25
	bl	_TEMP_TO_REG
	ldr	x8, [x23]
	str	w0, [x8, x21, lsl #2]
	cmp	w21, #2
	b.ge	LBB0_3
; %bb.1:
	cmp	w21, #0
	cset	w8, eq
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w1, [x26]
	mov	w9, #239
	and	w2, w24, w9
	bfi	w2, w8, #4, #1
	mov	x0, x20
	bl	_i2c_smbus_write_byte_data
	ldr	x8, [x23]
	mov	w9, #1
	sub	w9, w9, w21
	str	wzr, [x8, w9, uxtw #2]
LBB0_3:
	mov	x0, x21
	bl	_SMSC47M192_REG_TEMP_OFFSET
	mov	x1, x0
	ldr	x8, [x23]
	ldr	w2, [x8, x21, lsl #2]
	mov	x0, x20
LBB0_4:
	bl	_i2c_smbus_write_byte_data
LBB0_5:
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	and	w9, w24, #0x10
	cmp	w9, w8, lsl #4
	b.ne	LBB0_5
; %bb.7:
	mov	x0, x21
	bl	_SMSC47M192_REG_TEMP_OFFSET
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SMSC47M192_REG_SFR,4,2         ; @SMSC47M192_REG_SFR
	.no_dead_strip	_set_temp_offset
.subsections_via_symbols
