	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_pwm_auto_point_channel
_store_pwm_auto_point_channel:          ## @store_pwm_auto_point_channel
	.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, %r13
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	(%rax), %r15
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtol
	cmpq	$1, %rax
	je	LBB0_6
## %bb.1:
	cmpq	$4, %rax
	je	LBB0_5
## %bb.2:
	cmpq	$2, %rax
	jne	LBB0_4
## %bb.3:
	movl	$1, %r14d
	jmp	LBB0_6
LBB0_5:
	movl	$2, %r14d
LBB0_6:
	addq	16(%r12), %r14
	movq	%r12, %r13
	addq	$8, %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movl	%r15d, %edi
	callq	_F71882FG_REG_POINT_MAPPING
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_f71882fg_read8
	movl	%eax, %ebx
	movq	(%r12), %rax
	movl	%ebx, (%rax,%r15,4)
	andl	$252, %ebx
	orq	%r14, %rbx
	movl	%r15d, %edi
	callq	_F71882FG_REG_POINT_MAPPING
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_f71882fg_write8
	movq	(%r12), %rax
	movl	%ebx, (%rax,%r15,4)
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_store_pwm_auto_point_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_pwm_auto_point_channel
_store_pwm_auto_point_channel:          ; @store_pwm_auto_point_channel
	.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	x22, x2
	mov	x21, x1
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x21
	bl	_to_sensor_dev_attr_2
	ldrsw	x21, [x0]
	mov	x0, x22
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtol
	cmp	x0, #1
	b.eq	LBB0_4
; %bb.1:
	cmp	x0, #4
	b.eq	LBB0_5
; %bb.2:
	cmp	x0, #2
	b.ne	LBB0_7
; %bb.3:
	mov	w8, #1
	b	LBB0_6
LBB0_4:
	mov	x8, #0
	b	LBB0_6
LBB0_5:
	mov	w8, #2
LBB0_6:
	ldr	x9, [x20, #16]
	add	x23, x9, x8
	add	x22, x20, #8
	mov	x0, x22
	bl	_mutex_lock
	mov	x0, x21
	bl	_F71882FG_REG_POINT_MAPPING
	mov	x1, x0
	mov	x0, x20
	bl	_f71882fg_read8
	ldr	x8, [x20]
	lsl	x24, x21, #2
	str	w0, [x8, x24]
	and	w8, w0, #0xfc
	orr	x23, x23, x8
	mov	x0, x21
	bl	_F71882FG_REG_POINT_MAPPING
	mov	x1, x0
	mov	x0, x20
	mov	x2, x23
	bl	_f71882fg_write8
	ldr	x8, [x20]
	str	w23, [x8, x24]
	mov	x0, x22
	bl	_mutex_unlock
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_store_pwm_auto_point_channel
.subsections_via_symbols
