	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w83793_read_value
_w83793_read_value:                     ## @w83793_read_value
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_i2c_get_clientdata
	movq	%rax, %r12
	movl	%r14d, %eax
	sarl	$8, %eax
	movl	(%r12), %ecx
	movl	%ecx, %ebx
	andl	$252, %ebx
	orl	%eax, %ebx
	cmpl	%ebx, %ecx
	je	LBB0_3
## %bb.1:
	movq	_W83793_REG_BANKSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	testq	%rax, %rax
	js	LBB0_4
## %bb.2:
	movl	%ebx, (%r12)
LBB0_3:
	movzbl	%r14b, %esi
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_smbus_read_byte_data       ## TAILCALL
LBB0_4:
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%r14d, %r8d
	callq	_dev_err
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W83793_REG_BANKSEL,4,2         ## @W83793_REG_BANKSEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set bank to %d failed, fall back to bank %d, read reg 0x%x error\n"

	.no_dead_strip	_w83793_read_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w83793_read_value
_w83793_read_value:                     ; @w83793_read_value
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_i2c_get_clientdata
	ldr	w8, [x0]
	and	w9, w8, #0xfc
	orr	w21, w9, w19, asr #8
	cmp	w8, w21
	b.eq	LBB0_3
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _W83793_REG_BANKSEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _W83793_REG_BANKSEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_i2c_smbus_write_byte_data
	tbnz	x0, #63, LBB0_4
; %bb.2:
	str	w21, [x22]
LBB0_3:
	and	w1, w19, #0xff
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_i2c_smbus_read_byte_data
LBB0_4:
	ldr	w3, [x22]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	mov	x4, x19
	bl	_dev_err
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_W83793_REG_BANKSEL,4,2         ; @W83793_REG_BANKSEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set bank to %d failed, fall back to bank %d, read reg 0x%x error\n"

	.no_dead_strip	_w83793_read_value
.subsections_via_symbols
