	.file	"extr_mb86a16.c_mb86a16_set_tone.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"I2C transfer error"
	.text
	.p2align 4
	.type	mb86a16_set_tone, @function
mb86a16_set_tone:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, QWORD PTR [rdi]
	cmp	esi, 128
	je	.L2
	cmp	esi, 129
	je	.L3
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR MB86A16_TONEOUT2[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	mb86a16_write@PLT
	test	eax, eax
	js	.L5
	mov	esi, DWORD PTR MB86A16_DCC1[rip]
	mov	edx, DWORD PTR MB86A16_DCC1_DISTA[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR MB86A16_DCC1_CTOE[rip]
	call	mb86a16_write@PLT
	test	eax, eax
	js	.L5
	mov	edx, DWORD PTR MB86A16_DCCOUT_DISEN[rip]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR MB86A16_TONEOUT2[rip]
	mov	edx, 4
	mov	rdi, rbp
	call	mb86a16_write@PLT
	test	eax, eax
	jns	.L12
.L5:
	mov	esi, DWORD PTR MB86A16_ERROR[rip]
	mov	edi, DWORD PTR verbose[rip]
	mov	edx, 1
	lea	rcx, .LC0[rip]
	call	dprintk@PLT
	mov	eax, DWORD PTR EREMOTEIO[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edx, DWORD PTR MB86A16_DCC1_DISTA[rip]
	mov	esi, DWORD PTR MB86A16_DCC1[rip]
	mov	rdi, rbp
	call	mb86a16_write@PLT
	xor	edx, edx
	test	eax, eax
	js	.L5
.L10:
	mov	esi, DWORD PTR MB86A16_DCCOUT[rip]
	mov	rdi, rbp
	call	mb86a16_write@PLT
	test	eax, eax
	js	.L5
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mb86a16_set_tone, .-mb86a16_set_tone
	.comm	verbose,4,4
	.comm	MB86A16_TONEOUT2,4,4
	.comm	MB86A16_ERROR,4,4
	.comm	MB86A16_DCCOUT_DISEN,4,4
	.comm	MB86A16_DCCOUT,4,4
	.comm	MB86A16_DCC1_DISTA,4,4
	.comm	MB86A16_DCC1_CTOE,4,4
	.comm	MB86A16_DCC1,4,4
	.comm	EREMOTEIO,4,4
	.comm	EINVAL,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_mb86a16.c_mb86a16_set_tone.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"I2C transfer error\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mb86a16_set_tone, %function
mb86a16_set_tone:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #128
	push	{r4, lr}
	ldr	r4, [r0]
	beq	.L2
	cmp	r1, #129
	beq	.L3
	ldr	r3, .L11
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L2:
	ldr	r3, .L11+4
	mov	r2, #0
	mov	r0, r4
	ldr	r1, [r3]
	bl	mb86a16_write
	cmp	r0, #0
	blt	.L5
	ldr	r2, .L11+8
	ldr	r3, .L11+12
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L11+16
	orr	r2, r1, r2
	mov	r0, r4
	ldr	r1, [r3]
	bl	mb86a16_write
	cmp	r0, #0
	blt	.L5
	ldr	r3, .L11+20
	ldr	r2, .L11+24
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	mb86a16_write
	cmp	r0, #0
	bge	.L7
.L5:
	ldr	r2, .L11+28
	ldr	r3, .L11+32
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	r2, #1
	ldr	r3, .L11+36
	bl	dprintk
	ldr	r3, .L11+40
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L3:
	ldr	r3, .L11+4
	mov	r2, #4
	mov	r0, r4
	ldr	r1, [r3]
	bl	mb86a16_write
	cmp	r0, #0
	blt	.L5
	ldr	r3, .L11+16
	ldr	r2, .L11+8
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	mb86a16_write
	cmp	r0, #0
	blt	.L5
	ldr	r3, .L11+20
	mov	r0, r4
	mov	r2, #0
	ldr	r1, [r3]
	bl	mb86a16_write
	cmp	r0, #0
	blt	.L5
.L7:
	mov	r0, #0
	pop	{r4, pc}
.L12:
	.align	2
.L11:
	.word	EINVAL
	.word	MB86A16_TONEOUT2
	.word	MB86A16_DCC1_DISTA
	.word	MB86A16_DCC1_CTOE
	.word	MB86A16_DCC1
	.word	MB86A16_DCCOUT
	.word	MB86A16_DCCOUT_DISEN
	.word	MB86A16_ERROR
	.word	verbose
	.word	.LC0
	.word	EREMOTEIO
	.size	mb86a16_set_tone, .-mb86a16_set_tone
	.comm	verbose,4,4
	.comm	MB86A16_TONEOUT2,4,4
	.comm	MB86A16_ERROR,4,4
	.comm	MB86A16_DCCOUT_DISEN,4,4
	.comm	MB86A16_DCCOUT,4,4
	.comm	MB86A16_DCC1_DISTA,4,4
	.comm	MB86A16_DCC1_CTOE,4,4
	.comm	MB86A16_DCC1,4,4
	.comm	EREMOTEIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
