	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_pwm_ac
_store_pwm_ac:                          ## @store_pwm_ac
	.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, %r14
	movq	%rdx, %rbx
	callq	_SETUP_STORE_DATA_PARAM
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rax
	cmpq	$32, %rax
	jae	LBB0_1
## %bb.3:
	leaq	_store_pwm_ac.map(%rip), %rcx
	movslq	(%rcx,%rax,4), %rbx
	movq	%rbx, -48(%rbp)
	movl	$2147384872, %ecx               ## imm = 0x7FFE7E28
	btq	%rax, %rcx
	jb	LBB0_1
## %bb.4:
	movq	_param@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	(%rcx), %r12d
	andl	%ebx, %r12d
	shrl	$3, %ebx
	andl	4(%rcx), %ebx
	andl	$7, %r12d
	movb	(%rax), %cl
	movb	4(%rax), %al
	shll	%cl, %r12d
	andl	$1, %ebx
	movl	%eax, %ecx
	shll	%cl, %ebx
	movq	_data@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	$8, %rdi
	callq	_mutex_lock
	movq	_client@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rax
	movq	16(%rax), %rax
	movq	(%rax), %rsi
	callq	_read_byte
	movq	(%r13), %r8
	movq	(%r8), %rcx
	movq	8(%r8), %rdi
	movl	(%rcx), %esi
	movl	4(%rcx), %edx
	movb	(%rdi), %cl
	shll	%cl, %esi
	movb	4(%rdi), %cl
	notl	%esi
	andl	%eax, %esi
	orl	%r12d, %esi
	shll	%cl, %edx
	notl	%edx
	andl	%esi, %edx
	orl	%ebx, %edx
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	16(%r8), %rcx
	movq	(%rcx), %rsi
	movl	%edx, (%rax,%rsi,4)
	movq	_client@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_write_byte
	movq	(%r15), %rdi
	addq	$8, %rdi
	callq	_mutex_unlock
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
LBB0_5:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @store_pwm_ac.map
_store_pwm_ac.map:
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	255                             ## 0xff
	.long	2                               ## 0x2
	.long	255                             ## 0xff
	.long	5                               ## 0x5
	.long	6                               ## 0x6
	.long	8                               ## 0x8
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	15                              ## 0xf
	.long	7                               ## 0x7
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	3                               ## 0x3

	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_param,8,3                      ## @param
	.comm	_data,8,3                       ## @data
	.comm	_client,4,2                     ## @client
	.no_dead_strip	_store_pwm_ac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_pwm_ac
_store_pwm_ac:                          ; @store_pwm_ac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x20, x2
	bl	_SETUP_STORE_DATA_PARAM
	add	x2, sp, #8
	mov	x0, x20
	mov	w1, #10
	bl	_kstrtoul
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	x9, [sp, #8]
	cmp	x9, #32
	b.hs	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _store_pwm_ac.map@PAGE
Lloh1:
	add	x8, x8, _store_pwm_ac.map@PAGEOFF
	ldrsw	x8, [x8, x9, lsl #2]
	str	x8, [sp, #8]
	mov	w10, #32296
	movk	w10, #32766, lsl #16
	lsr	x9, x10, x9
	tbnz	w9, #0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x20, _param@GOTPAGE
Lloh3:
	ldr	x20, [x20, _param@GOTPAGEOFF]
	ldr	x9, [x20]
	ldp	x10, x9, [x9]
	ldp	w11, w10, [x10]
	and	w11, w8, w11
	and	w8, w10, w8, lsr #3
	and	w10, w11, #0x7
	ldp	w11, w9, [x9]
	lsl	w21, w10, w11
	and	w8, w8, #0x1
	lsl	w22, w8, w9
Lloh4:
	adrp	x23, _data@GOTPAGE
Lloh5:
	ldr	x23, [x23, _data@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x0, x8, #8
	bl	_mutex_lock
Lloh6:
	adrp	x24, _client@GOTPAGE
Lloh7:
	ldr	x24, [x24, _client@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	ldr	x1, [x8]
	bl	_read_byte
	ldr	x8, [x20]
	ldp	x9, x10, [x8]
	ldp	w11, w9, [x9]
	ldp	w12, w10, [x10]
	lsl	w11, w11, w12
	bic	w11, w0, w11
	orr	w11, w11, w21
	lsl	w9, w9, w10
	bic	w9, w11, w9
	orr	w2, w9, w22
	ldr	x9, [x23]
	ldr	x9, [x9]
	ldr	x8, [x8, #16]
	ldr	x1, [x8]
	str	w2, [x9, x1, lsl #2]
	ldr	w0, [x24]
	bl	_write_byte
	ldr	x8, [x23]
	add	x0, x8, #8
	bl	_mutex_unlock
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_5:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @store_pwm_ac.map
_store_pwm_ac.map:
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	255                             ; 0xff
	.long	2                               ; 0x2
	.long	255                             ; 0xff
	.long	5                               ; 0x5
	.long	6                               ; 0x6
	.long	8                               ; 0x8
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	15                              ; 0xf
	.long	7                               ; 0x7
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	3                               ; 0x3

	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_param,8,3                      ; @param
	.comm	_data,8,3                       ; @data
	.comm	_client,4,2                     ; @client
	.no_dead_strip	_store_pwm_ac
.subsections_via_symbols
