	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function store_pwm
LCPI0_0:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_store_pwm:                             ## @store_pwm
	.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
	subq	$88, %rsp
	.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	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	(%rax), %r13
	movslq	4(%rax), %rbx
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, -80(%rbp)
	movl	$1, -72(%rbp)
	movq	(%r12), %rax
	movq	16(%rax), %rcx
	movl	(%rcx,%r13,4), %ecx
	movl	%ecx, -68(%rbp)
	movq	$0, -64(%rbp)
	movl	$0, -56(%rbp)
	movabsq	$1095216660735, %rcx            ## imm = 0xFF000000FF
	movq	%rcx, -112(%rbp)
	movq	24(%rax), %rax
	movl	(%rax,%r13,4), %eax
	testl	%eax, %eax
	movl	$255, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, -104(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [255,255,255,255]
	movups	%xmm0, -100(%rbp)
	leaq	-120(%rbp), %rdx
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-120(%rbp), %rdi
	movl	-80(%rbp,%rbx,4), %esi
	movl	-112(%rbp,%rbx,4), %edx
	callq	_clamp_val
	movq	%rax, -120(%rbp)
	movq	%r12, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	-120(%rbp), %edx
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	%edx, (%rax,%r13,4)
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax,%r13,4), %esi
	movq	%r12, %rdi
	callq	_nct6775_write_value
	cmpl	$2, %ebx
	jne	LBB0_4
## %bb.3:
	movq	16(%r12), %rax
	movl	(%rax,%r13,4), %esi
	movq	%r12, %rdi
	callq	_nct6775_read_value
                                        ## kill: def $eax killed $eax def $rax
	andl	$127, %eax
	leal	128(%rax), %edx
	cmpq	$0, -120(%rbp)
	cmovel	%eax, %edx
	movq	16(%r12), %rax
	movl	(%rax,%r13,4), %esi
	movq	%r12, %rdi
	callq	_nct6775_write_value
LBB0_4:
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %r14d
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_store_pwm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function store_pwm
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_store_pwm:                             ; @store_pwm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x2
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x22
	bl	_to_sensor_dev_attr_2
	ldpsw	x8, x23, [x0]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [sp, #40]
	mov	w9, #1
	ldr	x10, [x20]
	lsl	x22, x8, #2
	ldp	x8, x10, [x10, #16]
	ldr	w8, [x8, x22]
	stp	w9, w8, [sp, #48]
	str	xzr, [sp, #56]
	str	wzr, [sp, #64]
	movi	d0, #0x0000ff000000ff
	str	d0, [sp, #8]
	ldr	w8, [x10, x22]
	mov	w9, #255
	cmp	w8, #0
	csel	w8, w9, w8, eq
	str	w8, [sp, #16]
	movi.2d	v0, #0x0000ff000000ff
	stur	q0, [sp, #20]
	mov	x2, sp
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtoul
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x0, [sp]
	lsl	x8, x23, #2
	add	x9, sp, #40
	ldr	w1, [x9, x8]
	add	x9, sp, #8
	ldr	w2, [x9, x8]
	bl	_clamp_val
	str	x0, [sp]
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	w2, [sp]
	ldr	x8, [x20]
	lsl	x9, x23, #3
	ldr	x8, [x8, x9]
	str	w2, [x8, x22]
	ldr	x8, [x20, #24]
	ldr	x8, [x8, x9]
	ldr	w1, [x8, x22]
	mov	x0, x20
	bl	_nct6775_write_value
	cmp	w23, #2
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x20, #16]
	ldr	w1, [x8, x22]
	mov	x0, x20
	bl	_nct6775_read_value
	and	w8, w0, #0x7f
	ldr	x9, [sp]
	mov	w10, #128
	bfxil	w10, w0, #0, #7
	cmp	x9, #0
	csel	w2, w8, w10, eq
	ldr	x8, [x20, #16]
	ldr	w1, [x8, x22]
	mov	x0, x20
	bl	_nct6775_write_value
LBB0_3:
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_5
LBB0_4:
	mov	x19, x0
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_store_pwm
.subsections_via_symbols
