	.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, -48(%rbp)                 ## 8-byte Spill
	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), %r14
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %ebx
	movq	%r12, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	cmpl	$3, %ebx
	jg	LBB0_4
## %bb.1:
	cmpl	$1, %ebx
	je	LBB0_8
## %bb.2:
	cmpl	$2, %ebx
	jne	LBB0_9
## %bb.3:
	movq	_W83781D_REG_SCFG1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_w83781d_read_value
	movl	(%rbx), %esi
	movq	_BIT_SCFG1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	(%rcx,%r14,4), %eax
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_w83781d_write_value
	movq	_W83781D_REG_SCFG2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_w83781d_read_value
	movl	(%rbx), %esi
	movq	_BIT_SCFG2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%r14,4), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r12, %rdi
	callq	_w83781d_write_value
	movq	(%r12), %rax
	movl	$2, (%rax,%r14,4)
	jmp	LBB0_10
LBB0_4:
	cmpl	$4, %ebx
	je	LBB0_7
## %bb.5:
	cmpl	$128, %ebx
	jne	LBB0_9
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	$128, %edx
	callq	_dev_warn
LBB0_7:
	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
	movl	(%rcx,%r14,4), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r12, %rdi
	callq	_w83781d_write_value
	movq	(%r12), %rax
	movl	%ebx, (%rax,%r14,4)
	jmp	LBB0_10
LBB0_9:
	movslq	%ebx, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_10
LBB0_8:
	movq	_W83781D_REG_SCFG1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_w83781d_read_value
	movl	(%rbx), %esi
	movq	_BIT_SCFG1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	(%rcx,%r14,4), %eax
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_w83781d_write_value
	movq	_W83781D_REG_SCFG2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_w83781d_read_value
	movl	(%rbx), %esi
	movq	_BIT_SCFG2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	(%rcx,%r14,4), %eax
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_w83781d_write_value
	movq	(%r12), %rax
	movl	$1, (%rax,%r14,4)
LBB0_10:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	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:
	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, x3
	mov	x20, x2
	mov	x23, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	mov	x22, x0
	mov	x0, x23
	bl	_dev_get_drvdata
	mov	x21, x0
	ldrsw	x24, [x22]
	mov	x0, x20
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	mov	x22, x0
	add	x20, x21, #8
	mov	x0, x20
	bl	_mutex_lock
	cmp	w22, #3
	b.gt	LBB0_4
; %bb.1:
	cmp	w22, #1
	b.eq	LBB0_9
; %bb.2:
	cmp	w22, #2
	b.ne	LBB0_8
; %bb.3:
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, x24, #2
	ldr	w8, [x8, x22]
	orr	w2, w8, w0
	mov	x0, x21
	bl	_w83781d_write_value
Lloh5:
	adrp	x23, _W83781D_REG_SCFG2@GOTPAGE
Lloh6:
	ldr	x23, [x23, _W83781D_REG_SCFG2@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_w83781d_read_value
	ldr	w1, [x23]
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
	mov	x0, x21
	bl	_w83781d_write_value
	ldr	x8, [x21]
	mov	w9, #2
	b	LBB0_10
LBB0_4:
	cmp	w22, #4
	b.eq	LBB0_7
; %bb.5:
	cmp	w22, #128
	b.ne	LBB0_8
; %bb.6:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	w2, #128
	bl	_dev_warn
LBB0_7:
Lloh12:
	adrp	x23, _W83781D_REG_SCFG1@GOTPAGE
Lloh13:
	ldr	x23, [x23, _W83781D_REG_SCFG1@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_w83781d_read_value
Lloh14:
	adrp	x8, _BIT_SCFG1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BIT_SCFG1@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh16:
	ldr	x8, [x8]
	lsl	x23, x24, #2
	ldr	w8, [x8, x23]
	bic	w2, w0, w8
	mov	x0, x21
	bl	_w83781d_write_value
	ldr	x8, [x21]
	str	w22, [x8, x23]
	b	LBB0_11
LBB0_8:
	sxtw	x2, w22
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_dev_err
	b	LBB0_11
LBB0_9:
Lloh19:
	adrp	x22, _W83781D_REG_SCFG1@GOTPAGE
Lloh20:
	ldr	x22, [x22, _W83781D_REG_SCFG1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_w83781d_read_value
Lloh21:
	adrp	x8, _BIT_SCFG1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BIT_SCFG1@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh23:
	ldr	x8, [x8]
	lsl	x22, x24, #2
	ldr	w8, [x8, x22]
	orr	w2, w8, w0
	mov	x0, x21
	bl	_w83781d_write_value
Lloh24:
	adrp	x23, _W83781D_REG_SCFG2@GOTPAGE
Lloh25:
	ldr	x23, [x23, _W83781D_REG_SCFG2@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_w83781d_read_value
	ldr	w1, [x23]
Lloh26:
	adrp	x8, _BIT_SCFG2@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BIT_SCFG2@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldr	w8, [x8, x22]
	orr	w2, w8, w0
	mov	x0, x21
	bl	_w83781d_write_value
	ldr	x8, [x21]
	mov	w9, #1
LBB0_10:
	str	w9, [x8, x22]
LBB0_11:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	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	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 AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.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
