	.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
	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	_dev_get_drvdata
	movq	%rax, %r12
	movq	8(%rax), %r15
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_AMC6821_REG_CONF1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	-48(%rbp), %rax
	cmpq	$3, %rax
	je	LBB0_8
## %bb.4:
	cmpq	$2, %rax
	je	LBB0_7
## %bb.5:
	cmpq	$1, %rax
	jne	LBB0_15
## %bb.6:
	movq	_AMC6821_CONF1_FDRC0@GOTPCREL(%rip), %rax
	movq	_AMC6821_CONF1_FDRC1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %ebx
	jmp	LBB0_10
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movl	%ebx, %r14d
	jmp	LBB0_13
LBB0_8:
	movq	_AMC6821_CONF1_FDRC0@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	movq	_AMC6821_CONF1_FDRC0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
LBB0_9:
	movq	_AMC6821_CONF1_FDRC1@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_10:
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%r14d, %r14d
	subq	(%rax), %r14
LBB0_13:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMC6821_REG_CONF1,4,2          ## @AMC6821_REG_CONF1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading configuration register, aborting.\n"

	.comm	_AMC6821_CONF1_FDRC0,4,2        ## @AMC6821_CONF1_FDRC0
	.comm	_AMC6821_CONF1_FDRC1,4,2        ## @AMC6821_CONF1_FDRC1
	.comm	_EINVAL,8,3                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Configuration register write error, aborting.\n"

	.comm	_EIO,8,3                        ## @EIO
	.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	x20, x3
	mov	x22, x2
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	x21, [x0, #8]
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtol
	cbnz	w0, LBB0_15
; %bb.1:
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x23, _AMC6821_REG_CONF1@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AMC6821_REG_CONF1@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	x8, [sp, #8]
	cmp	x8, #3
	b.eq	LBB0_7
; %bb.3:
	cmp	x8, #2
	b.eq	LBB0_8
; %bb.4:
	cmp	x8, #1
	b.ne	LBB0_12
; %bb.5:
Lloh2:
	adrp	x8, _AMC6821_CONF1_FDRC0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AMC6821_CONF1_FDRC0@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _AMC6821_CONF1_FDRC1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AMC6821_CONF1_FDRC1@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w2, w22, w8
	b	LBB0_10
LBB0_6:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	mov	w20, w22
	b	LBB0_14
LBB0_7:
Lloh10:
	adrp	x8, _AMC6821_CONF1_FDRC0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AMC6821_CONF1_FDRC0@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w8, w8, w22
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _AMC6821_CONF1_FDRC0@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AMC6821_CONF1_FDRC0@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w8, w22, w8
LBB0_9:
Lloh16:
	adrp	x9, _AMC6821_CONF1_FDRC1@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AMC6821_CONF1_FDRC1@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w2, w8, w9
LBB0_10:
	ldr	w1, [x23]
	mov	x0, x21
	bl	_i2c_smbus_write_byte_data
	cbz	x0, LBB0_14
; %bb.11:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	x8, [x8]
	neg	x20, x8
LBB0_14:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
LBB0_15:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_AMC6821_REG_CONF1,4,2          ; @AMC6821_REG_CONF1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading configuration register, aborting.\n"

	.comm	_AMC6821_CONF1_FDRC0,4,2        ; @AMC6821_CONF1_FDRC0
	.comm	_AMC6821_CONF1_FDRC1,4,2        ; @AMC6821_CONF1_FDRC1
	.comm	_EINVAL,8,3                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Configuration register write error, aborting.\n"

	.comm	_EIO,8,3                        ; @EIO
	.no_dead_strip	_pwm1_enable_store
.subsections_via_symbols
