	.file	"extr_dme1737.c_dme1737_create_files.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Device is locked. Some attributes will be read-only.\n"
	.text
	.p2align 4
	.type	dme1737_create_files, @function
dme1737_create_files:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	dev_get_drvdata@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR 32[rax]
	test	eax, eax
	jne	.L6
	lea	rsi, dev_attr_name[rip]
	mov	rdi, r12
	call	sysfs_create_file@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
.L6:
	lea	rsi, dme1737_group[rip]
	mov	rdi, r12
	call	sysfs_create_group@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L3
	mov	rax, QWORD PTR sch5027[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L57
.L7:
	cmp	QWORD PTR dme1737[rip], rax
	je	.L8
.L10:
	mov	rdi, QWORD PTR dme1737_fan_group[rip]
	xor	ebx, ebx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	add	rbx, 1
.L9:
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	jle	.L58
	mov	eax, DWORD PTR 8[rbp]
	mov	rdi, QWORD PTR dme1737_fan_group[rip]
	bt	eax, ebx
	jnc	.L11
	lea	rsi, [rdi+rbx*4]
	mov	rdi, r12
	call	sysfs_create_group@PLT
	test	eax, eax
	jne	.L33
	mov	rdi, QWORD PTR dme1737_fan_group[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rsi, dme1737_vid_group[rip]
	mov	rdi, r12
	call	sysfs_create_group@PLT
	test	eax, eax
	je	.L10
	.p2align 4,,10
	.p2align 3
.L33:
	mov	r13d, eax
.L3:
	mov	rdi, r12
	call	dme1737_remove_files@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L57:
	.cfi_restore_state
	lea	rsi, dme1737_misc_group[rip]
	mov	rdi, r12
	call	sysfs_create_group@PLT
	test	eax, eax
	jne	.L33
	mov	rax, QWORD PTR 0[rbp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L58:
	mov	rdi, QWORD PTR dme1737_pwm_group[rip]
	xor	ebx, ebx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	add	rbx, 1
.L13:
	mov	r14d, ebx
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	jle	.L59
	mov	eax, DWORD PTR 12[rbp]
	mov	rdi, QWORD PTR dme1737_pwm_group[rip]
	bt	eax, ebx
	jnc	.L14
	lea	rsi, [rdi+rbx*4]
	mov	rdi, r12
	call	sysfs_create_group@PLT
	test	eax, eax
	jne	.L33
	mov	rax, QWORD PTR sch5027[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L54
	cmp	r14d, 2
	jle	.L15
.L54:
	mov	rdi, QWORD PTR dme1737_pwm_group[rip]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR dme1737_pwm_misc_attr[rip]
	mov	rdi, r12
	mov	rsi, QWORD PTR [rax+rbx*8]
	call	sysfs_create_file@PLT
	test	eax, eax
	je	.L54
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L59:
	test	BYTE PTR 16[rbp], 2
	jne	.L60
	mov	edx, DWORD PTR S_IRUGO[rip]
	lea	rsi, dme1737_zone_chmod_group[rip]
	mov	rdi, r12
	or	edx, DWORD PTR S_IWUSR[rip]
	call	dme1737_chmod_group@PLT
	mov	rax, QWORD PTR sch5027[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L19
	mov	edx, DWORD PTR S_IRUGO[rip]
	lea	rsi, dme1737_misc_group[rip]
	mov	rdi, r12
	or	edx, DWORD PTR S_IWUSR[rip]
	call	dme1737_chmod_group@PLT
.L19:
	mov	rdi, QWORD PTR dme1737_pwm_chmod_group[rip]
	xor	ebx, ebx
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L21:
	add	rbx, 1
.L20:
	mov	r13d, ebx
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	jle	.L61
	mov	eax, DWORD PTR 12[rbp]
	mov	rdi, QWORD PTR dme1737_pwm_chmod_group[rip]
	bt	eax, ebx
	jnc	.L21
	mov	edx, DWORD PTR S_IRUGO[rip]
	lea	rsi, [rdi+rbx*4]
	or	edx, DWORD PTR S_IWUSR[rip]
	mov	rdi, r12
	call	dme1737_chmod_group@PLT
	mov	rax, QWORD PTR sch5027[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L55
	cmp	r13d, 2
	jg	.L55
	mov	rax, QWORD PTR dme1737_pwm_misc_attr[rip]
	mov	edx, DWORD PTR S_IRUGO[rip]
	mov	rdi, r12
	or	edx, DWORD PTR S_IWUSR[rip]
	mov	rsi, QWORD PTR [rax+rbx*8]
	call	dme1737_chmod_file@PLT
.L55:
	mov	rdi, QWORD PTR dme1737_pwm_chmod_group[rip]
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L60:
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	call	dev_info@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L61:
	.cfi_restore_state
	xor	ebx, ebx
.L28:
	mov	eax, DWORD PTR 12[rbp]
	bt	eax, ebx
	jc	.L62
.L26:
	add	rbx, 1
	cmp	rbx, 3
	jne	.L28
	xor	r13d, r13d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r13d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L62:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rbp]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	PWM_EN_FROM_REG@PLT
	cmp	eax, 1
	jne	.L26
	mov	rax, QWORD PTR dme1737_pwm_chmod_attr[rip]
	mov	edx, DWORD PTR S_IRUGO[rip]
	mov	rdi, r12
	or	edx, DWORD PTR S_IWUSR[rip]
	mov	rsi, QWORD PTR [rax+rbx*8]
	call	dme1737_chmod_file@PLT
	jmp	.L26
	.cfi_endproc
.LFE0:
	.size	dme1737_create_files, .-dme1737_create_files
	.comm	sch5027,8,8
	.comm	dme1737_zone_chmod_group,4,4
	.comm	dme1737_vid_group,4,4
	.comm	dme1737_pwm_misc_attr,8,8
	.comm	dme1737_pwm_group,8,8
	.comm	dme1737_pwm_chmod_group,8,8
	.comm	dme1737_pwm_chmod_attr,8,8
	.comm	dme1737_misc_group,4,4
	.comm	dme1737_group,4,4
	.comm	dme1737_fan_group,8,8
	.comm	dme1737,8,8
	.comm	dev_attr_name,4,4
	.comm	S_IWUSR,4,4
	.comm	S_IRUGO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dme1737.c_dme1737_create_files.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Device is locked. Some attributes will be read-only"
	.ascii	".\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dme1737_create_files, %function
dme1737_create_files:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	bl	dev_get_drvdata
	ldr	r3, [r0, #20]
	mov	r5, r0
	cmp	r3, #0
	bne	.L6
	mov	r0, r6
	ldr	r1, .L53
	bl	sysfs_create_file
	subs	r8, r0, #0
	bne	.L1
.L6:
	mov	r0, r6
	ldr	r1, .L53+4
	bl	sysfs_create_group
	subs	r8, r0, #0
	bne	.L3
	ldr	r9, .L53+8
	ldr	r2, [r5]
	ldr	r3, [r9]
	cmp	r2, r3
	bne	.L47
.L7:
	ldr	r2, .L53+12
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L8
.L10:
	ldr	r7, .L53+16
	mov	r4, #0
	ldr	r0, [r7]
	b	.L9
.L11:
	add	r4, r4, #1
.L9:
	bl	ARRAY_SIZE
	cmp	r0, r4
	ble	.L48
	ldr	r3, [r5, #4]
	ldr	r0, [r7]
	asr	r3, r3, r4
	tst	r3, #1
	beq	.L11
	add	r1, r0, r4, lsl #2
	mov	r0, r6
	bl	sysfs_create_group
	cmp	r0, #0
	bne	.L31
	ldr	r0, [r7]
	b	.L11
.L8:
	mov	r0, r6
	ldr	r1, .L53+20
	bl	sysfs_create_group
	cmp	r0, #0
	beq	.L10
.L31:
	mov	r8, r0
.L3:
	mov	r0, r6
	bl	dme1737_remove_files
.L1:
	mov	r0, r8
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L47:
	mov	r0, r6
	ldr	r1, .L53+24
	bl	sysfs_create_group
	cmp	r0, #0
	bne	.L31
	ldr	r3, [r5]
	b	.L7
.L48:
	ldr	r7, .L53+28
	mov	r4, #0
	ldr	r0, [r7]
	ldr	r10, .L53+32
	b	.L13
.L14:
	add	r4, r4, #1
.L13:
	bl	ARRAY_SIZE
	cmp	r0, r4
	ble	.L49
	ldr	r3, [r5, #8]
	ldr	r0, [r7]
	asr	r3, r3, r4
	tst	r3, #1
	beq	.L14
	add	r1, r0, r4, lsl #2
	mov	r0, r6
	bl	sysfs_create_group
	cmp	r0, #0
	lsl	r1, r4, #2
	bne	.L31
	ldr	r3, [r5]
	ldr	r2, [r9]
	subs	r3, r3, r2
	movne	r3, #1
	cmp	r4, #2
	movgt	r3, #0
	cmp	r3, #0
	bne	.L15
.L44:
	ldr	r0, [r7]
	b	.L14
.L15:
	ldr	r3, [r10]
	mov	r0, r6
	ldr	r1, [r3, r1]
	bl	sysfs_create_file
	cmp	r0, #0
	beq	.L44
	b	.L31
.L49:
	ldr	r3, [r5, #12]
	tst	r3, #2
	bne	.L50
	ldr	r8, .L53+36
	ldr	r10, .L53+40
	ldr	r2, [r8]
	ldr	r3, [r10]
	mov	r0, r6
	orr	r2, r2, r3
	ldr	r1, .L53+44
	bl	dme1737_chmod_group
	ldr	r2, [r5]
	ldr	r3, [r9]
	cmp	r2, r3
	beq	.L18
	ldr	r2, [r8]
	ldr	r3, [r10]
	mov	r0, r6
	ldr	r1, .L53+24
	orr	r2, r2, r3
	bl	dme1737_chmod_group
.L18:
	ldr	r7, .L53+48
	mov	r4, #0
	ldr	r0, [r7]
	ldr	fp, .L53+32
	b	.L19
.L20:
	add	r4, r4, #1
.L19:
	bl	ARRAY_SIZE
	cmp	r0, r4
	ble	.L51
	ldr	r3, [r5, #8]
	ldr	r0, [r7]
	asr	r3, r3, r4
	tst	r3, #1
	beq	.L20
	ldr	r3, [r10]
	ldr	r2, [r8]
	add	r1, r0, r4, lsl #2
	orr	r2, r2, r3
	mov	r0, r6
	bl	dme1737_chmod_group
	ldr	r3, [r5]
	ldr	r2, [r9]
	subs	r3, r3, r2
	movne	r3, #1
	cmp	r4, #2
	movgt	r3, #0
	cmp	r3, #0
	bne	.L21
.L45:
	ldr	r0, [r7]
	b	.L20
.L50:
	mov	r0, r6
	ldr	r1, .L53+52
	bl	dev_info
	mov	r0, r8
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L51:
	mov	r4, #0
	ldr	r7, .L53+56
.L26:
	ldr	r3, [r5, #8]
	asr	r3, r3, r4
	tst	r3, #1
	bne	.L52
.L24:
	add	r4, r4, #1
	cmp	r4, #3
	bne	.L26
	mov	r8, #0
	mov	r0, r8
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L52:
	ldr	r3, [r5, #16]
	ldr	r0, [r3, r4, lsl #2]
	bl	PWM_EN_FROM_REG
	cmp	r0, #1
	bne	.L24
	ldr	r1, [r8]
	ldr	r2, [r10]
	ldr	r3, [r7]
	orr	r2, r1, r2
	mov	r0, r6
	ldr	r1, [r3, r4, lsl #2]
	bl	dme1737_chmod_file
	b	.L24
.L21:
	ldr	r1, [r8]
	ldr	r2, [r10]
	ldr	r3, [fp]
	orr	r2, r1, r2
	mov	r0, r6
	ldr	r1, [r3, r4, lsl #2]
	bl	dme1737_chmod_file
	b	.L45
.L54:
	.align	2
.L53:
	.word	dev_attr_name
	.word	dme1737_group
	.word	sch5027
	.word	dme1737
	.word	dme1737_fan_group
	.word	dme1737_vid_group
	.word	dme1737_misc_group
	.word	dme1737_pwm_group
	.word	dme1737_pwm_misc_attr
	.word	S_IRUGO
	.word	S_IWUSR
	.word	dme1737_zone_chmod_group
	.word	dme1737_pwm_chmod_group
	.word	.LC0
	.word	dme1737_pwm_chmod_attr
	.size	dme1737_create_files, .-dme1737_create_files
	.comm	sch5027,4,4
	.comm	dme1737_zone_chmod_group,4,4
	.comm	dme1737_vid_group,4,4
	.comm	dme1737_pwm_misc_attr,4,4
	.comm	dme1737_pwm_group,4,4
	.comm	dme1737_pwm_chmod_group,4,4
	.comm	dme1737_pwm_chmod_attr,4,4
	.comm	dme1737_misc_group,4,4
	.comm	dme1737_group,4,4
	.comm	dme1737_fan_group,4,4
	.comm	dme1737,4,4
	.comm	dev_attr_name,4,4
	.comm	S_IWUSR,4,4
	.comm	S_IRUGO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
