	.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
	subq	$24, %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, %rbx
	callq	_SETUP_STORE_DATA_PARAM
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	jmp	LBB0_13
LBB0_2:
	movl	$255, %edx
	movq	-56(%rbp), %rax
	cmpq	$3, %rax
	ja	LBB0_3
## %bb.5:
	movl	$4, %r15d
	xorl	%r13d, %r13d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movl	$7, %r15d
	jmp	LBB0_9
LBB0_3:
	cmpq	$255, %rax
	jne	LBB0_1
## %bb.4:
	movl	$3, %r15d
LBB0_9:
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_6:
	movl	$1, %edx
	movb	$1, %r13b
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_7:
	movb	$1, %r13b
	xorl	%r15d, %r15d
	xorl	%edx, %edx
LBB0_10:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$8, %rdi
	callq	_mutex_lock
	movq	_param@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rdx
	andl	(%rcx), %r15d
	movb	(%rdx), %cl
	shll	%cl, %r15d
	movq	_client@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	16(%rax), %rax
	movq	(%rax), %rsi
	callq	_read_byte
	movq	(%rbx), %rsi
	movq	(%rsi), %rdx
	movq	8(%rsi), %rdi
	movl	(%rdx), %ebx
	movb	(%rdi), %cl
	shll	%cl, %ebx
	movl	4(%rdx), %edx
	movb	4(%rdi), %cl
	notl	%ebx
	andl	%eax, %ebx
	orl	%r15d, %ebx
	movq	%r12, %r15
	shll	%cl, %edx
	notl	%edx
	andl	%ebx, %edx
	movq	_data@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	16(%rsi), %rcx
	movq	(%rcx), %rsi
	movl	%edx, (%rax,%rsi,4)
	movl	(%r15), %edi
	callq	_write_byte
	testb	%r13b, %r13b
	je	LBB0_12
## %bb.11:
	movq	_param@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rdx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	andl	8(%rcx), %ebx
	movb	8(%rdx), %cl
	shll	%cl, %ebx
	movl	(%r15), %edi
	movq	16(%rax), %rax
	movq	16(%rax), %rsi
	callq	_read_byte
	movq	(%r13), %rsi
	movq	(%rsi), %rcx
	movq	8(%rsi), %rdi
	movl	8(%rcx), %edx
	movb	8(%rdi), %cl
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	orl	%ebx, %edx
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	16(%rsi), %rcx
	movq	16(%rcx), %rsi
	movl	%edx, (%rax,%rsi,4)
	movl	(%r15), %edi
	callq	_write_byte
LBB0_12:
	movq	(%r12), %rdi
	addq	$8, %rdi
	callq	_mutex_unlock
LBB0_13:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_data,8,3                       ## @data
	.comm	_param,8,3                      ## @param
	.comm	_client,4,2                     ## @client
	.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:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_SETUP_STORE_DATA_PARAM
	add	x2, sp, #8
	mov	x0, x20
	mov	w1, #10
	bl	_kstrtol
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_12
LBB0_2:
	ldr	x8, [sp, #8]
	cmp	x8, #3
	b.hi	LBB0_5
; %bb.3:
	mov	w21, #0
	mov	w20, #255
	mov	w23, #4
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	mov	w21, #0
	mov	w20, #255
	mov	w23, #7
	b	LBB0_9
LBB0_5:
	cmp	x8, #255
	b.ne	LBB0_1
; %bb.6:
	mov	w21, #0
	mov	w20, #255
	mov	w23, #3
	b	LBB0_9
LBB0_7:
	mov	w23, #0
	mov	w21, #1
	mov	w20, #1
	b	LBB0_9
LBB0_8:
	mov	w23, #0
	mov	w20, #0
	mov	w21, #1
LBB0_9:
Lloh5:
	adrp	x22, _data@GOTPAGE
Lloh6:
	ldr	x22, [x22, _data@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, #8
	bl	_mutex_lock
Lloh7:
	adrp	x24, _param@GOTPAGE
Lloh8:
	ldr	x24, [x24, _param@GOTPAGEOFF]
	ldr	x8, [x24]
	ldp	x9, x10, [x8]
	ldr	w9, [x9]
	and	w9, w9, w23
	ldr	w10, [x10]
	lsl	w25, w9, w10
Lloh9:
	adrp	x23, _client@GOTPAGE
Lloh10:
	ldr	x23, [x23, _client@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	x8, [x8, #16]
	ldr	x1, [x8]
	bl	_read_byte
	ldr	x8, [x24]
	ldp	x9, x10, [x8]
	ldp	w11, w9, [x9]
	ldp	w12, w10, [x10]
	lsl	w11, w11, w12
	bic	w11, w0, w11
	orr	w11, w11, w25
	lsl	w9, w9, w10
	bic	w2, w11, w9
	ldr	x9, [x22]
	ldr	x9, [x9]
	ldr	x8, [x8, #16]
	ldr	x1, [x8]
	str	w2, [x9, x1, lsl #2]
	ldr	w0, [x23]
	bl	_write_byte
	cbz	w21, LBB0_11
; %bb.10:
	ldr	x8, [x24]
	ldp	x9, x10, [x8]
	ldr	w9, [x9, #8]
	and	w9, w9, w20
	ldr	w10, [x10, #8]
	lsl	w20, w9, w10
	ldr	w0, [x23]
	ldr	x8, [x8, #16]
	ldr	x1, [x8, #16]
	bl	_read_byte
	ldr	x8, [x24]
	ldp	x9, x10, [x8]
	ldr	w9, [x9, #8]
	ldr	w10, [x10, #8]
	lsl	w9, w9, w10
	bic	w9, w0, w9
	orr	w2, w9, w20
	ldr	x9, [x22]
	ldr	x9, [x9]
	ldr	x8, [x8, #16]
	ldr	x1, [x8, #16]
	str	w2, [x9, x1, lsl #2]
	ldr	w0, [x23]
	bl	_write_byte
LBB0_11:
	ldr	x8, [x22]
	add	x0, x8, #8
	bl	_mutex_unlock
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_data,8,3                       ; @data
	.comm	_param,8,3                      ; @param
	.comm	_client,4,2                     ; @client
	.no_dead_strip	_store_pwm_enable
.subsections_via_symbols
