	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwm_enable_store
_pwm_enable_store:                      ## @pwm_enable_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	%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, %r15
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	8(%rax), %rbx
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_LM93_PWM_CTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %r15d
	movl	%r12d, %edi
	callq	_LM93_REG_PWM_CTL
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_lm93_read_byte
	movl	%eax, %r13d
	movq	-56(%rbp), %rax
	cmpq	$2, %rax
	je	LBB0_5
## %bb.2:
	cmpq	$1, %rax
	je	LBB0_7
## %bb.3:
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	orl	$241, %r13d
	jmp	LBB0_8
LBB0_5:
	andl	$-2, %r13d
	jmp	LBB0_8
LBB0_7:
	orl	$1, %r13d
LBB0_8:
	movq	_LM93_PWM_CTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_LM93_REG_PWM_CTL
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_lm93_write_byte
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	jmp	LBB0_9
LBB0_6:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM93_PWM_CTL2,4,2              ## @LM93_PWM_CTL2
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pwm_enable_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwm_enable_store
_pwm_enable_store:                      ; @pwm_enable_store
	.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	x23, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	ldr	w21, [x0]
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	x22, [x0, #8]
	add	x2, sp, #8
	mov	x0, x23
	mov	w1, #10
	bl	_kstrtoul
	cbnz	w0, LBB0_9
; %bb.1:
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x24, _LM93_PWM_CTL2@GOTPAGE
Lloh1:
	ldr	x24, [x24, _LM93_PWM_CTL2@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_LM93_REG_PWM_CTL
	mov	x1, x0
	mov	x0, x22
	bl	_lm93_read_byte
	ldr	x8, [sp, #8]
	cmp	x8, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	x8, #1
	b.eq	LBB0_6
; %bb.3:
	cbnz	x8, LBB0_8
; %bb.4:
	mov	w8, #241
	orr	w23, w0, w8
	b	LBB0_7
LBB0_5:
	and	w23, w0, #0xfffffffe
	b	LBB0_7
LBB0_6:
	orr	w23, w0, #0x1
LBB0_7:
	ldr	w1, [x24]
	mov	x0, x21
	bl	_LM93_REG_PWM_CTL
	mov	x1, x0
	mov	x0, x22
	mov	x2, x23
	bl	_lm93_write_byte
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_mutex_unlock
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LM93_PWM_CTL2,4,2              ; @LM93_PWM_CTL2
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pwm_enable_store
.subsections_via_symbols
