	.file	"extr_ads111x.c_ads111x_setup_channel.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"channel data"
.LC2:
	.string	"gain_index"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"programmable gain amp setting, 0-7"
	.section	.rodata.str1.1
.LC4:
	.string	"I"
.LC5:
	.string	"rate_index"
.LC6:
	.string	"sample rate setting, 0-7"
.LC7:
	.string	"voltage"
.LC8:
	.string	"sampled voltage in microvolts"
	.text
	.p2align 4
	.type	ads111x_setup_channel, @function
ads111x_setup_channel:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	movsx	rax, esi
	lea	rsi, [rax+rax*2]
	mov	rax, QWORD PTR 8[rdi]
	lea	r12, [rax+rsi*4]
	mov	eax, DWORD PTR 8[r12]
	mov	DWORD PTR [r12], edx
	mov	DWORD PTR 4[r12], ecx
	test	eax, eax
	jne	.L1
	mov	rbx, rdi
	mov	edi, DWORD PTR [rdi]
	lea	r15, 20[rsp]
	call	device_get_sysctl_ctx@PLT
	mov	edi, DWORD PTR [rbx]
	mov	r13, rax
	call	device_get_sysctl_tree@PLT
	mov	ecx, ebp
	mov	esi, 4
	mov	rdi, r15
	lea	rdx, .LC0[rip]
	mov	r14, rax
	call	snprintf@PLT
	mov	r8d, DWORD PTR CTLFLAG_RD[rip]
	mov	edx, DWORD PTR OID_AUTO[rip]
	mov	rdi, r14
	mov	DWORD PTR 12[rsp], r8d
	mov	DWORD PTR 8[rsp], edx
	call	SYSCTL_CHILDREN@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	xor	r9d, r9d
	mov	rcx, r15
	mov	esi, eax
	lea	rax, .LC1[rip]
	mov	rdi, r13
	push	rax
	.cfi_def_cfa_offset 112
	mov	r8d, DWORD PTR 28[rsp]
	mov	edx, DWORD PTR 24[rsp]
	call	SYSCTL_ADD_NODE@PLT
	mov	ecx, DWORD PTR ads111x_sysctl_gainidx[rip]
	mov	edx, DWORD PTR OID_AUTO[rip]
	mov	rdi, rax
	mov	r15, rax
	mov	r14d, DWORD PTR CTLTYPE_INT[rip]
	or	r14d, DWORD PTR CTLFLAG_RWTUN[rip]
	mov	DWORD PTR 28[rsp], ecx
	mov	DWORD PTR 24[rsp], edx
	call	SYSCTL_CHILDREN@PLT
	mov	r8d, r14d
	mov	r9, rbx
	mov	rdi, r13
	mov	esi, eax
	lea	r10, .LC4[rip]
	lea	rax, .LC3[rip]
	push	rax
	.cfi_def_cfa_offset 120
	push	r10
	.cfi_def_cfa_offset 128
	mov	ecx, DWORD PTR 44[rsp]
	push	rcx
	.cfi_def_cfa_offset 136
	lea	rcx, .LC2[rip]
	push	rbp
	.cfi_def_cfa_offset 144
	mov	edx, DWORD PTR 56[rsp]
	call	SYSCTL_ADD_PROC@PLT
	mov	ecx, DWORD PTR ads111x_sysctl_rateidx[rip]
	mov	rdi, r15
	mov	edx, DWORD PTR OID_AUTO[rip]
	mov	r14d, DWORD PTR CTLTYPE_INT[rip]
	or	r14d, DWORD PTR CTLFLAG_RWTUN[rip]
	mov	DWORD PTR 60[rsp], ecx
	mov	DWORD PTR 56[rsp], edx
	add	rsp, 48
	.cfi_def_cfa_offset 96
	call	SYSCTL_CHILDREN@PLT
	mov	r8d, r14d
	mov	r9, rbx
	mov	rdi, r13
	mov	esi, eax
	lea	r10, .LC4[rip]
	lea	rax, .LC6[rip]
	push	rax
	.cfi_def_cfa_offset 104
	push	r10
	.cfi_def_cfa_offset 112
	mov	ecx, DWORD PTR 28[rsp]
	push	rcx
	.cfi_def_cfa_offset 120
	lea	rcx, .LC5[rip]
	push	rbp
	.cfi_def_cfa_offset 128
	mov	edx, DWORD PTR 40[rsp]
	call	SYSCTL_ADD_PROC@PLT
	mov	ecx, DWORD PTR ads111x_sysctl_voltage[rip]
	mov	rdi, r15
	mov	edx, DWORD PTR OID_AUTO[rip]
	mov	r14d, DWORD PTR CTLTYPE_INT[rip]
	or	r14d, DWORD PTR CTLFLAG_RD[rip]
	mov	DWORD PTR 44[rsp], ecx
	or	r14d, DWORD PTR CTLFLAG_SKIP[rip]
	mov	DWORD PTR 40[rsp], edx
	add	rsp, 32
	.cfi_def_cfa_offset 96
	call	SYSCTL_CHILDREN@PLT
	mov	r9, rbx
	mov	r8d, r14d
	mov	rdi, r13
	mov	esi, eax
	lea	r10, .LC4[rip]
	lea	rax, .LC8[rip]
	push	rax
	.cfi_def_cfa_offset 104
	push	r10
	.cfi_def_cfa_offset 112
	mov	ecx, DWORD PTR 28[rsp]
	push	rcx
	.cfi_def_cfa_offset 120
	lea	rcx, .LC7[rip]
	push	rbp
	.cfi_def_cfa_offset 128
	mov	edx, DWORD PTR 40[rsp]
	call	SYSCTL_ADD_PROC@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 8[r12], 1
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ads111x_setup_channel, .-ads111x_setup_channel
	.comm	ads111x_sysctl_voltage,4,4
	.comm	ads111x_sysctl_rateidx,4,4
	.comm	ads111x_sysctl_gainidx,4,4
	.comm	OID_AUTO,4,4
	.comm	CTLTYPE_INT,4,4
	.comm	CTLFLAG_SKIP,4,4
	.comm	CTLFLAG_RWTUN,4,4
	.comm	CTLFLAG_RD,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_ads111x.c_ads111x_setup_channel.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"channel data\000"
	.align	2
.LC2:
	.ascii	"gain_index\000"
	.align	2
.LC3:
	.ascii	"programmable gain amp setting, 0-7\000"
	.align	2
.LC4:
	.ascii	"I\000"
	.align	2
.LC5:
	.ascii	"rate_index\000"
	.align	2
.LC6:
	.ascii	"sample rate setting, 0-7\000"
	.align	2
.LC7:
	.ascii	"voltage\000"
	.align	2
.LC8:
	.ascii	"sampled voltage in microvolts\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ads111x_setup_channel, %function
ads111x_setup_channel:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	ldr	r1, [r0, #4]
	mov	r5, r0
	add	r0, r4, r4, lsl #1
	add	r6, r1, r0, lsl #2
	ldr	r9, [r6, #8]
	ldr	ip, .L8
	sub	sp, sp, #36
	cmp	r9, #0
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	str	r2, [r1, r0, lsl #2]
	str	r3, [r6, #4]
	bne	.L1
	ldr	r0, [r5]
	bl	device_get_sysctl_ctx
	mov	r7, r0
	ldr	r0, [r5]
	bl	device_get_sysctl_tree
	mov	r8, r0
	mov	r3, r4
	mov	r1, #4
	ldr	r2, .L8+4
	add	r0, sp, #24
	bl	snprintf
	mov	r0, r8
	bl	SYSCTL_CHILDREN
	ldr	r3, .L8+8
	ldr	r8, .L8+12
	ldr	r2, [r3]
	ldr	ip, .L8+16
	str	r9, [sp, #4]
	str	r2, [sp]
	mov	r1, r0
	ldr	r2, [r8]
	add	r3, sp, #24
	str	ip, [sp, #8]
	mov	r0, r7
	bl	SYSCTL_ADD_NODE
	mov	r9, r0
	bl	SYSCTL_CHILDREN
	ldr	r10, .L8+20
	ldr	fp, .L8+24
	mov	r1, r0
	ldr	r3, [r10]
	ldr	r0, [fp]
	ldr	r2, .L8+28
	orr	r3, r3, r0
	ldr	r2, [r2]
	stm	sp, {r3, r5}
	ldr	ip, .L8+32
	ldr	r3, .L8+36
	str	r4, [sp, #8]
	str	r2, [sp, #12]
	ldr	r2, [r8]
	mov	r0, r7
	str	ip, [sp, #20]
	str	r3, [sp, #16]
	ldr	r3, .L8+40
	bl	SYSCTL_ADD_PROC
	mov	r0, r9
	bl	SYSCTL_CHILDREN
	ldr	r3, [r10]
	mov	r1, r0
	ldr	r0, [fp]
	ldr	r2, .L8+44
	orr	r3, r3, r0
	ldr	r2, [r2]
	ldr	fp, .L8+36
	stm	sp, {r3, r5}
	ldr	ip, .L8+48
	str	fp, [sp, #16]
	str	r4, [sp, #8]
	str	r2, [sp, #12]
	ldr	r2, [r8]
	ldr	r3, .L8+52
	str	ip, [sp, #20]
	mov	r0, r7
	bl	SYSCTL_ADD_PROC
	mov	r0, r9
	bl	SYSCTL_CHILDREN
	mov	r1, r0
	ldr	r0, .L8+8
	ldr	r2, .L8+56
	ldr	ip, [r0]
	ldr	r3, [r10]
	ldr	r0, .L8+60
	ldr	r2, [r2]
	ldr	lr, [r0]
	orr	r3, r3, ip
	ldr	ip, .L8+64
	orr	r3, r3, r2
	str	fp, [sp, #16]
	ldr	r2, [r8]
	mov	r0, r7
	stm	sp, {r3, r5}
	str	r4, [sp, #8]
	ldr	r3, .L8+68
	str	lr, [sp, #12]
	str	ip, [sp, #20]
	bl	SYSCTL_ADD_PROC
	mov	r3, #1
	str	r3, [r6, #8]
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC9
	.word	.LC0
	.word	CTLFLAG_RD
	.word	OID_AUTO
	.word	.LC1
	.word	CTLTYPE_INT
	.word	CTLFLAG_RWTUN
	.word	ads111x_sysctl_gainidx
	.word	.LC3
	.word	.LC4
	.word	.LC2
	.word	ads111x_sysctl_rateidx
	.word	.LC6
	.word	.LC5
	.word	CTLFLAG_SKIP
	.word	ads111x_sysctl_voltage
	.word	.LC8
	.word	.LC7
	.size	ads111x_setup_channel, .-ads111x_setup_channel
	.comm	ads111x_sysctl_voltage,4,4
	.comm	ads111x_sysctl_rateidx,4,4
	.comm	ads111x_sysctl_gainidx,4,4
	.comm	OID_AUTO,4,4
	.comm	CTLTYPE_INT,4,4
	.comm	CTLFLAG_SKIP,4,4
	.comm	CTLFLAG_RWTUN,4,4
	.comm	CTLFLAG_RD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
