	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_pwm_enable
_store_pwm_enable:                      ## @store_pwm_enable
	.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, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movl	(%rax), %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtol
	movq	%rax, %rbx
	movq	(%r13), %rax
	movq	_f8000@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_4
## %bb.1:
	cmpl	$2, %r12d
	jne	LBB0_4
## %bb.2:
	cmpq	$2, %rbx
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subq	(%rax), %r15
	jmp	LBB0_21
LBB0_4:
	movq	%r13, %rdi
	addq	$12, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_F71882FG_REG_PWM_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_f71882fg_read8
	movl	%eax, 8(%r13)
	movq	(%r13), %rdx
	cmpq	(%r14), %rdx
	jne	LBB0_13
## %bb.5:
	leal	(%r12,%r12), %ecx
	btl	%ecx, %eax
	jae	LBB0_13
## %bb.6:
	cmpq	$3, %rbx
	je	LBB0_10
## %bb.7:
	cmpq	$2, %rbx
	jne	LBB0_19
## %bb.8:
	movl	$2, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	jmp	LBB0_9
LBB0_13:
	cmpq	$2, %rbx
	je	LBB0_18
## %bb.14:
	cmpq	$1, %rbx
	jne	LBB0_19
## %bb.15:
	movq	_f71858fg@GOTPCREL(%rip), %rcx
	addl	%r12d, %r12d
	cmpq	(%rcx), %rdx
	jne	LBB0_17
## %bb.16:
	btl	%r12d, %eax
	jae	LBB0_17
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subq	(%rax), %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_18:
	addl	%r12d, %r12d
	movl	$2, %edx
	movl	%r12d, %ecx
LBB0_9:
	shll	%cl, %edx
	notl	%edx
	andl	%edx, %eax
	jmp	LBB0_12
LBB0_17:
	movl	$2, %edx
	movl	%r12d, %ecx
	jmp	LBB0_11
LBB0_10:
	movl	$2, %edx
                                        ## kill: def $cl killed $cl killed $ecx
LBB0_11:
	shll	%cl, %edx
	orl	%edx, %eax
LBB0_12:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_F71882FG_REG_PWM_ENABLE@GOTPCREL(%rip), %rcx
	movl	%eax, 8(%r13)
	movl	(%rcx), %esi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_f71882fg_write8
LBB0_20:
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_21:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_f8000,8,3                      ## @f8000
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_F71882FG_REG_PWM_ENABLE,4,2    ## @F71882FG_REG_PWM_ENABLE
	.comm	_f71858fg,8,3                   ## @f71858fg
	.no_dead_strip	_store_pwm_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_pwm_enable
_store_pwm_enable:                      ; @store_pwm_enable
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	bl	_dev_get_drvdata
	mov	x21, x0
	mov	x0, x22
	bl	_to_sensor_dev_attr_2
	ldr	w24, [x0]
	mov	x0, x20
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtol
	ldr	x8, [x21]
Lloh0:
	adrp	x25, _f8000@GOTPAGE
Lloh1:
	ldr	x25, [x25, _f8000@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	ccmp	w24, #2, #0, eq
	ccmp	x0, #2, #4, eq
	b.ne	LBB0_6
; %bb.1:
	mov	x22, x0
	add	x20, x21, #12
	mov	x0, x20
	bl	_mutex_lock
Lloh2:
	adrp	x23, _F71882FG_REG_PWM_ENABLE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _F71882FG_REG_PWM_ENABLE@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_f71882fg_read8
	str	w0, [x21, #8]
	ldr	x8, [x21]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	lsl	w9, w24, #1
	lsr	w10, w0, w9
	tbz	w10, #0, LBB0_7
; %bb.3:
	cmp	x22, #3
	b.eq	LBB0_12
; %bb.4:
	cmp	x22, #2
	b.ne	LBB0_11
; %bb.5:
	mov	w8, #2
	lsl	w8, w8, w9
	b	LBB0_14
LBB0_6:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_17
LBB0_7:
	cmp	x22, #2
	b.eq	LBB0_13
; %bb.8:
	cmp	x22, #1
	b.ne	LBB0_11
; %bb.9:
Lloh7:
	adrp	x9, _f71858fg@GOTPAGE
Lloh8:
	ldr	x9, [x9, _f71858fg@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x9]
	lsl	w9, w24, #1
	cmp	x8, x10
	b.ne	LBB0_12
; %bb.10:
	lsr	w8, w0, w9
	tbz	w8, #0, LBB0_12
LBB0_11:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_16
LBB0_12:
	mov	w8, #2
	lsl	w8, w8, w9
	orr	w2, w0, w8
	b	LBB0_15
LBB0_13:
	lsl	w8, w24, #1
	mov	w9, #2
	lsl	w8, w9, w8
LBB0_14:
	bic	w2, w0, w8
LBB0_15:
	str	w2, [x21, #8]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_f71882fg_write8
LBB0_16:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_17:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_f8000,8,3                      ; @f8000
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_F71882FG_REG_PWM_ENABLE,4,2    ; @F71882FG_REG_PWM_ENABLE
	.comm	_f71858fg,8,3                   ; @f71858fg
	.no_dead_strip	_store_pwm_enable
.subsections_via_symbols
