	.file	"extr_dme1737.c_show_pwm.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Unknown function %d.\n"
.LC1:
	.string	"%d\n"
	.text
	.p2align 4
	.type	show_pwm, @function
show_pwm:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	dme1737_update_device@PLT
	mov	rdi, r13
	mov	rbx, rax
	call	to_sensor_dev_attr_2@PLT
	mov	edx, DWORD PTR 4[rax]
	movsx	r13, DWORD PTR [rax]
	lea	eax, -128[rdx]
	cmp	eax, 7
	ja	.L2
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L11-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L14-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 24[rbx]
	mov	esi, r13d
	mov	edi, DWORD PTR [rax]
	call	PWM_OFF_FROM_REG@PLT
	mov	edx, eax
	test	eax, eax
	je	.L7
.L6:
	mov	rax, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR [rax+r13*4]
.L7:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	sprintf@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edx, 255
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 40[rbx]
	mov	edi, DWORD PTR [rax+r13*4]
	call	PWM_FREQ_FROM_REG@PLT
	mov	edx, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, 1
	cmp	r13d, 2
	jg	.L7
	mov	rax, QWORD PTR 32[rbx]
	mov	edi, DWORD PTR [rax+r13*4]
	call	PWM_EN_FROM_REG@PLT
	mov	edx, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 32[rbx]
	mov	edi, DWORD PTR [rax+r13*4]
	call	PWM_EN_FROM_REG@PLT
	cmp	eax, 2
	je	.L23
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rax+r13*4]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 32[rbx]
	mov	edi, DWORD PTR [rax+r13*4]
	call	PWM_EN_FROM_REG@PLT
	mov	edx, 255
	test	eax, eax
	je	.L7
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR [rax+r13*4]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR 24[rbx]
	test	r13d, r13d
	mov	esi, r13d
	lea	rdx, 4[rax]
	cmovg	rax, rdx
	mov	edi, DWORD PTR [rax]
	call	PWM_RR_FROM_REG@PLT
	mov	edx, eax
	jmp	.L7
.L2:
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	dev_dbg@PLT
	xor	edx, edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rax, QWORD PTR 32[rbx]
	mov	edi, DWORD PTR [rax+r13*4]
	call	PWM_ACZ_FROM_REG@PLT
	mov	edx, eax
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	show_pwm, .-show_pwm
	.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_show_pwm.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unknown function %d.\012\000"
	.align	2
.LC1:
	.ascii	"%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_pwm, %function
show_pwm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, r2
	mov	r6, r0
	bl	dme1737_update_device
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	to_sensor_dev_attr_2
	ldr	r2, [r0, #4]
	ldr	r7, [r0]
	sub	r3, r2, #128
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L15
	.word	.L6
	.word	.L5
	.word	.L3
.L15:
	mov	r2, #255
.L7:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L23
	b	sprintf
.L8:
	ldr	r3, [r4, #12]
	mov	r1, r7
	ldr	r0, [r3]
	bl	PWM_OFF_FROM_REG
	subs	r2, r0, #0
	beq	.L7
.L6:
	ldr	r3, [r4, #8]
	mov	r0, r5
	ldr	r2, [r3, r7, lsl #2]
	ldr	r1, .L23
	pop	{r4, r5, r6, r7, r8, lr}
	b	sprintf
.L5:
	ldr	r3, [r4, #16]
	ldr	r0, [r3, r7, lsl #2]
	bl	PWM_EN_FROM_REG
	cmp	r0, #2
	beq	.L22
	ldr	r3, [r4, #4]
	ldr	r2, [r3, r7, lsl #2]
	b	.L7
.L3:
	ldr	r3, [r4, #16]
	ldr	r0, [r3, r7, lsl #2]
	bl	PWM_EN_FROM_REG
	cmp	r0, #0
	beq	.L15
	ldr	r3, [r4]
	ldr	r2, [r3, r7, lsl #2]
	b	.L7
.L11:
	ldr	r3, [r4, #12]
	cmp	r7, #0
	addgt	r3, r3, #4
	mov	r1, r7
	ldr	r0, [r3]
	bl	PWM_RR_FROM_REG
	ldr	r1, .L23
	mov	r2, r0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	sprintf
.L10:
	ldr	r3, [r4, #20]
	ldr	r0, [r3, r7, lsl #2]
	bl	PWM_FREQ_FROM_REG
	ldr	r1, .L23
	mov	r2, r0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	sprintf
.L9:
	cmp	r7, #2
	movgt	r2, #1
	bgt	.L7
	ldr	r3, [r4, #16]
	ldr	r0, [r3, r7, lsl #2]
	bl	PWM_EN_FROM_REG
	mov	r2, r0
	b	.L7
.L22:
	ldr	r3, [r4, #16]
	ldr	r0, [r3, r7, lsl #2]
	bl	PWM_ACZ_FROM_REG
	mov	r2, r0
	b	.L7
.L2:
	mov	r0, r6
	ldr	r1, .L23+4
	bl	dev_dbg
	mov	r2, #0
	b	.L7
.L24:
	.align	2
.L23:
	.word	.LC1
	.word	.LC0
	.size	show_pwm, .-show_pwm
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
