	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwm1_enable_store
_pwm1_enable_store:                     ## @pwm1_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, %r12
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	8(%rax), %r15
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	4(%r13), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	cmpq	$3, %rax
	jne	LBB0_11
## %bb.5:
	movl	$1, %eax
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %r12d
	jmp	LBB0_10
LBB0_3:
	xorl	%eax, %eax
LBB0_6:
	movl	%eax, (%r13)
	movq	_REG_FAN_CONF1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_read_u8_from_i2c
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r12d
	jmp	LBB0_9
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subq	(%rax), %r12
	jmp	LBB0_9
LBB0_8:
	xorl	%edx, %edx
	cmpl	$0, (%r13)
	setne	%dl
	movl	$-129, %eax
	andl	-44(%rbp), %eax
	shll	$7, %edx
	orl	%eax, %edx
	movl	%edx, -44(%rbp)
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte_data
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_10:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_REG_FAN_CONF1,4,2              ## @REG_FAN_CONF1
	.no_dead_strip	_pwm1_enable_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwm1_enable_store
_pwm1_enable_store:                     ; @pwm1_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	x20, x2
	bl	_dev_get_drvdata
	mov	x22, x0
	ldr	x21, [x0, #8]
	add	x2, sp, #8
	mov	x0, x20
	mov	w1, #10
	bl	_kstrtol
	tbnz	w0, #31, LBB0_6
; %bb.1:
	add	x20, x22, #4
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_4
; %bb.2:
	cmp	x8, #3
	b.ne	LBB0_7
; %bb.3:
	mov	w8, #1
LBB0_4:
	str	w8, [x22]
Lloh0:
	adrp	x23, _REG_FAN_CONF1@GOTPAGE
Lloh1:
	ldr	x23, [x23, _REG_FAN_CONF1@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #4
	mov	x0, x21
	bl	_read_u8_from_i2c
	cbz	w0, LBB0_8
; %bb.5:
	mov	w19, w0
	b	LBB0_9
LBB0_6:
	mov	x19, x0
	b	LBB0_10
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_9
LBB0_8:
	ldr	w8, [x22]
	cmp	w8, #0
	cset	w8, ne
	ldr	w2, [sp, #4]
	bfi	w2, w8, #7, #1
	str	w2, [sp, #4]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_i2c_smbus_write_byte_data
LBB0_9:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_REG_FAN_CONF1,4,2              ; @REG_FAN_CONF1
	.no_dead_strip	_pwm1_enable_store
.subsections_via_symbols
