	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w83795_check_dynamic_in_limits
_w83795_check_dynamic_in_limits:        ## @w83795_check_dynamic_in_limits
	.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	%rdi, %rbx
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	movq	_W83795_REG_VID_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_w83795_read
	movl	%eax, %ecx
	andl	$7, %ecx
	je	LBB0_9
## %bb.1:
	cmpl	$7, %ecx
	je	LBB0_9
## %bb.2:
	movl	%eax, %ecx
	shrl	$3, %ecx
	andl	$7, %ecx
	movl	%ecx, (%r14)
	testb	$8, %al
	je	LBB0_6
## %bb.3:
	movq	_w83795_in@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %rsi
	addq	$8, %rsi
	movq	_S_IRUGO@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_sysfs_chmod_file
	movl	%eax, %r15d
	movq	(%r12), %rax
	movq	(%rax), %rsi
	addq	$12, %rsi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_sysfs_chmod_file
	movl	%r15d, %ecx
	orl	%eax, %ecx
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_dev_warn
LBB0_6:
	testb	$2, (%r14)
	jne	LBB0_7
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_dev_info
	testb	$2, (%r14)
	je	LBB0_9
LBB0_7:
	movq	_w83795_in@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	8(%rax), %rsi
	addq	$8, %rsi
	movq	_S_IRUGO@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_sysfs_chmod_file
	movl	%eax, %r14d
	movq	(%r15), %rax
	movq	8(%rax), %rsi
	addq	$12, %rsi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_sysfs_chmod_file
	movl	%r14d, %ecx
	orl	%eax, %ecx
	je	LBB0_10
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_W83795_REG_VID_CTRL,4,2        ## @W83795_REG_VID_CTRL
	.comm	_w83795_in,8,3                  ## @w83795_in
	.comm	_S_IRUGO,4,2                    ## @S_IRUGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set in%d limits read-only (%d, %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"in%d limits set dynamically from VID\n"

	.no_dead_strip	_w83795_check_dynamic_in_limits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w83795_check_dynamic_in_limits
_w83795_check_dynamic_in_limits:        ; @w83795_check_dynamic_in_limits
	.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
	mov	x19, x0
	bl	_i2c_get_clientdata
	mov	x20, x0
Lloh0:
	adrp	x8, _W83795_REG_VID_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _W83795_REG_VID_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_w83795_read
	and	w8, w0, #0x7
	cmp	w8, #0
	ccmp	w8, #7, #4, ne
	b.eq	LBB0_5
; %bb.1:
	ubfx	w8, w0, #3, #3
	str	w8, [x20]
Lloh3:
	adrp	x23, _w83795_in@GOTPAGE
Lloh4:
	ldr	x23, [x23, _w83795_in@GOTPAGEOFF]
Lloh5:
	adrp	x22, _S_IRUGO@GOTPAGE
Lloh6:
	ldr	x22, [x22, _S_IRUGO@GOTPAGEOFF]
	tbz	w0, #3, LBB0_4
; %bb.2:
	ldr	x8, [x23]
	ldr	x8, [x8]
	add	x1, x8, #8
	ldr	w2, [x22]
	mov	x0, x19
	bl	_sysfs_chmod_file
	mov	x21, x0
	ldr	x8, [x23]
	ldr	x8, [x8]
	add	x1, x8, #12
	ldr	w2, [x22]
	mov	x0, x19
	bl	_sysfs_chmod_file
	orr	w8, w21, w0
	cbz	w8, LBB0_6
; %bb.3:
	mov	x4, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	mov	x3, x21
	bl	_dev_warn
LBB0_4:
	ldrb	w8, [x20]
	tbnz	w8, #1, LBB0_7
LBB0_5:
	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
LBB0_6:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_dev_info
	ldrb	w8, [x20]
	tbz	w8, #1, LBB0_5
LBB0_7:
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	add	x1, x8, #8
	ldr	w2, [x22]
	mov	x0, x19
	bl	_sysfs_chmod_file
	mov	x20, x0
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	add	x1, x8, #12
	ldr	w2, [x22]
	mov	x0, x19
	bl	_sysfs_chmod_file
	orr	w8, w20, w0
	cbz	w8, LBB0_9
; %bb.8:
	mov	x4, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	mov	x3, 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
	b	_dev_warn
LBB0_9:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	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
	b	_dev_info
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_W83795_REG_VID_CTRL,4,2        ; @W83795_REG_VID_CTRL
	.comm	_w83795_in,8,3                  ; @w83795_in
	.comm	_S_IRUGO,4,2                    ; @S_IRUGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set in%d limits read-only (%d, %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"in%d limits set dynamically from VID\n"

	.no_dead_strip	_w83795_check_dynamic_in_limits
.subsections_via_symbols
