	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwm_store
_pwm_store:                             ## @pwm_store
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movslq	(%rbx), %rbx
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	cmpq	$256, -40(%rbp)                 ## imm = 0x100
	jb	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_3:
	movq	%r15, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	andl	$129, (%rax,%rbx,4)
	movq	-40(%rbp), %rdi
	callq	_PWM_TO_REG
	movq	(%r15), %rcx
	orl	(%rcx,%rbx,4), %eax
	movl	%eax, (%rcx,%rbx,4)
	movq	_SMSC47M1_REG_PWM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rbx,4), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_smsc47m1_write_value
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMSC47M1_REG_PWM,8,3           ## @SMSC47M1_REG_PWM
	.no_dead_strip	_pwm_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwm_store
_pwm_store:                             ; @pwm_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	mov	x22, x0
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x20, x0
	ldrsw	x22, [x22]
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtol
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [sp, #8]
	cmp	x8, #256
	b.lo	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x20]
	lsl	x22, x22, #2
	ldr	w9, [x8, x22]
	mov	w10, #129
	and	w9, w9, w10
	str	w9, [x8, x22]
	ldr	x0, [sp, #8]
	bl	_PWM_TO_REG
	ldr	x8, [x20]
	ldr	w9, [x8, x22]
	orr	w2, w9, w0
	str	w2, [x8, x22]
Lloh3:
	adrp	x8, _SMSC47M1_REG_PWM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMSC47M1_REG_PWM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w1, [x8, x22]
	mov	x0, x20
	bl	_smsc47m1_write_value
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMSC47M1_REG_PWM,8,3           ; @SMSC47M1_REG_PWM
	.no_dead_strip	_pwm_store
.subsections_via_symbols
