	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_sensor
_store_sensor:                          ## @store_sensor
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movslq	(%rbx), %rbx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	%r12, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	-48(%rbp), %rdx
	cmpq	$3, %rdx
	jg	LBB0_5
## %bb.2:
	cmpq	$1, %rdx
	je	LBB0_10
## %bb.3:
	cmpq	$2, %rdx
	jne	LBB0_12
## %bb.4:
	movq	_W83781D_REG_SCFG1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_w83781d_read_value
	movl	(%r13), %esi
	movq	_BIT_SCFG1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	(%rcx,%rbx,4), %eax
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_w83781d_write_value
	movq	_W83781D_REG_SCFG2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_w83781d_read_value
	movl	(%r13), %esi
	movq	_BIT_SCFG2@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_5:
	cmpq	$4, %rdx
	je	LBB0_8
## %bb.6:
	cmpq	$128, %rdx
	jne	LBB0_12
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	$128, %edx
	callq	_dev_warn
LBB0_8:
	movq	_W83781D_REG_SCFG1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_w83781d_read_value
	movl	(%r13), %esi
	movq	_BIT_SCFG1@GOTPCREL(%rip), %rcx
LBB0_9:
	movq	(%rcx), %rcx
	movl	(%rcx,%rbx,4), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r12, %rdi
	jmp	LBB0_11
LBB0_10:
	movq	_W83781D_REG_SCFG1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_w83781d_read_value
	movl	(%r13), %esi
	movq	_BIT_SCFG1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	(%rcx,%rbx,4), %eax
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_w83781d_write_value
	movq	_W83781D_REG_SCFG2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_w83781d_read_value
	movl	(%r13), %esi
	movq	_BIT_SCFG2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	(%rcx,%rbx,4), %eax
	movq	%r12, %rdi
	movl	%eax, %edx
LBB0_11:
	callq	_w83781d_write_value
	movq	-48(%rbp), %rax
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
LBB0_13:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W83781D_REG_SCFG1,4,2          ## @W83781D_REG_SCFG1
	.comm	_BIT_SCFG1,8,3                  ## @BIT_SCFG1
	.comm	_W83781D_REG_SCFG2,4,2          ## @W83781D_REG_SCFG2
	.comm	_BIT_SCFG2,8,3                  ## @BIT_SCFG2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sensor type %d is deprecated, please use 4 instead\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid sensor type %ld; must be 1, 2, or 4\n"

	.no_dead_strip	_store_sensor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_sensor
_store_sensor:                          ; @store_sensor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	mov	x23, x0
	mov	x0, x22
	bl	_dev_get_drvdata
	mov	x21, x0
	ldrsw	x23, [x23]
	add	x2, sp, #8
	mov	x0, x20
	mov	w1, #10
	bl	_kstrtoul
	cbnz	w0, LBB0_13
; %bb.1:
	add	x20, x21, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	x2, [sp, #8]
	cmp	x2, #3
	b.gt	LBB0_5
; %bb.2:
	cmp	x2, #1
	b.eq	LBB0_9
; %bb.3:
	cmp	x2, #2
	b.ne	LBB0_11
; %bb.4:
Lloh0:
	adrp	x22, _W83781D_REG_SCFG1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _W83781D_REG_SCFG1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_w83781d_read_value
Lloh2:
	adrp	x8, _BIT_SCFG1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BIT_SCFG1@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	ldr	x8, [x8]
	lsl	x22, x23, #2
	ldr	w8, [x8, x22]
	orr	w2, w8, w0
	mov	x0, x21
	bl	_w83781d_write_value
Lloh5:
	adrp	x24, _W83781D_REG_SCFG2@GOTPAGE
Lloh6:
	ldr	x24, [x24, _W83781D_REG_SCFG2@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_w83781d_read_value
	ldr	w1, [x24]
Lloh7:
	adrp	x8, _BIT_SCFG2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BIT_SCFG2@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w8, [x8, x22]
	bic	w2, w0, w8
	b	LBB0_10
LBB0_5:
	cmp	x2, #4
	b.eq	LBB0_8
; %bb.6:
	cmp	x2, #128
	b.ne	LBB0_11
; %bb.7:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_warn
LBB0_8:
Lloh12:
	adrp	x22, _W83781D_REG_SCFG1@GOTPAGE
Lloh13:
	ldr	x22, [x22, _W83781D_REG_SCFG1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_w83781d_read_value
	ldr	w1, [x22]
Lloh14:
	adrp	x8, _BIT_SCFG1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BIT_SCFG1@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w8, [x8, x23, lsl #2]
	bic	w2, w0, w8
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x22, _W83781D_REG_SCFG1@GOTPAGE
Lloh18:
	ldr	x22, [x22, _W83781D_REG_SCFG1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_w83781d_read_value
Lloh19:
	adrp	x8, _BIT_SCFG1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BIT_SCFG1@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh21:
	ldr	x8, [x8]
	lsl	x22, x23, #2
	ldr	w8, [x8, x22]
	orr	w2, w8, w0
	mov	x0, x21
	bl	_w83781d_write_value
Lloh22:
	adrp	x24, _W83781D_REG_SCFG2@GOTPAGE
Lloh23:
	ldr	x24, [x24, _W83781D_REG_SCFG2@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_w83781d_read_value
	ldr	w1, [x24]
Lloh24:
	adrp	x8, _BIT_SCFG2@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BIT_SCFG2@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	w8, [x8, x22]
	orr	w2, w8, w0
LBB0_10:
	mov	x0, x21
	bl	_w83781d_write_value
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	str	x8, [x9, x23, lsl #3]
	b	LBB0_12
LBB0_11:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_err
LBB0_12:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
LBB0_13:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_W83781D_REG_SCFG1,4,2          ; @W83781D_REG_SCFG1
	.comm	_BIT_SCFG1,8,3                  ; @BIT_SCFG1
	.comm	_W83781D_REG_SCFG2,4,2          ; @W83781D_REG_SCFG2
	.comm	_BIT_SCFG2,8,3                  ; @BIT_SCFG2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sensor type %d is deprecated, please use 4 instead\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid sensor type %ld; must be 1, 2, or 4\n"

	.no_dead_strip	_store_sensor
.subsections_via_symbols
