	.file	"extr_ch.c_ch_set_voltag.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"alternate"
.LC1:
	.string	"primary"
.LC2:
	.string	"clear"
.LC3:
	.string	"set"
.LC4:
	.string	"%s %s voltag: 0x%x => \"%s\"\n"
	.text
	.p2align 4
	.type	ch_set_voltag, @function
ch_set_voltag:
.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
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	edi, 512
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	DWORD PTR 12[rsp], edx
	mov	DWORD PTR 8[rsp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	kzalloc@PLT
	test	rax, rax
	je	.L15
	mov	rbp, rax
	mov	eax, DWORD PTR 12[rsp]
	mov	ecx, DWORD PTR 8[rsp]
	mov	r8, r13
	lea	rdx, .LC0[rip]
	lea	rsi, .LC2[rip]
	test	eax, eax
	lea	rax, .LC1[rip]
	lea	rdi, .LC4[rip]
	cmove	rdx, rax
	test	ecx, ecx
	lea	r14, 16[rsp]
	mov	ecx, ebx
	lea	rax, .LC3[rip]
	cmove	rsi, rax
	call	DPRINTK@PLT
	xor	esi, esi
	mov	edx, 48
	mov	rdi, r14
	call	memset@PLT
	mov	eax, DWORD PTR SEND_VOLUME_TAG[rip]
	mov	esi, ebx
	mov	rdi, r12
	mov	DWORD PTR 16[rsp], eax
	mov	rax, QWORD PTR [r12]
	mov	r15d, DWORD PTR [rax]
	call	ch_elem_to_typecode@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	edi, DWORD PTR 8[rsp]
	sal	r15d, 5
	movzx	r15d, r15b
	or	r15d, eax
	movzx	eax, bh
	and	ebx, 255
	mov	DWORD PTR 24[rsp], eax
	xor	eax, eax
	test	esi, esi
	mov	DWORD PTR 20[rsp], r15d
	setne	al
	mov	DWORD PTR 28[rsp], ebx
	test	edi, edi
	jne	.L16
	add	eax, 10
.L7:
	mov	edx, 32
	mov	rsi, r13
	mov	rdi, rbp
	mov	DWORD PTR 36[rsp], eax
	mov	DWORD PTR 52[rsp], 255
	call	memcpy@PLT
	mov	rdi, rbp
	call	ch_check_voltag@PLT
	mov	rdi, r12
	mov	rcx, rbp
	mov	edx, 12
	mov	r9d, DWORD PTR DMA_TO_DEVICE[rip]
	mov	r8d, 256
	mov	rsi, r14
	call	ch_do_scsi@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	kfree@PLT
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	add	eax, 12
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ch_set_voltag, .-ch_set_voltag
	.comm	SEND_VOLUME_TAG,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DMA_TO_DEVICE,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_ch.c_ch_set_voltag.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"clear\000"
	.align	2
.LC1:
	.ascii	"set\000"
	.align	2
.LC2:
	.ascii	"alternate\000"
	.align	2
.LC3:
	.ascii	"primary\000"
	.align	2
.LC4:
	.ascii	"%s %s voltag: 0x%x => \"%s\"\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ch_set_voltag, %function
ch_set_voltag:
	@ args = 4, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	ldr	r1, .L18
	mov	r8, r3
	ldr	r3, .L18+4
	sub	sp, sp, #64
	mov	r7, r0
	ldr	r1, [r1]
	mov	r0, #512
	mov	r9, r2
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	ldr	r10, [sp, #96]
	bl	kzalloc
	subs	r5, r0, #0
	beq	.L15
	ldr	r0, .L18+8
	ldr	r3, .L18+12
	cmp	r8, #0
	ldr	r1, .L18+16
	movne	r1, r0
	cmp	r9, #0
	ldr	r2, .L18+20
	ldr	r0, .L18+24
	moveq	r2, r3
	str	r10, [sp]
	mov	r3, r4
	bl	DPRINTK
	mov	r2, #44
	mov	r1, #0
	add	r0, sp, #16
	bl	memset
	ldr	r2, .L18+28
	ldr	r3, [r7]
	ldr	r2, [r2]
	mov	r1, r4
	str	r2, [sp, #12]
	mov	r0, r7
	ldr	r6, [r3]
	bl	ch_elem_to_typecode
	lsl	r6, r6, #5
	asr	r3, r4, #8
	and	r6, r6, #255
	orr	r6, r6, r0
	and	r3, r3, #255
	and	r4, r4, #255
	cmp	r8, #0
	str	r6, [sp, #16]
	str	r3, [sp, #20]
	str	r4, [sp, #24]
	bne	.L16
	cmp	r9, #0
	movne	r0, #11
	moveq	r0, #10
.L7:
	mov	r3, #255
	mov	r1, r10
	mov	r2, #32
	str	r0, [sp, #32]
	mov	r0, r5
	str	r3, [sp, #48]
	bl	memcpy
	mov	r0, r5
	bl	ch_check_voltag
	mov	r2, #256
	ldr	r3, .L18+32
	mov	r0, r7
	ldr	r3, [r3]
	stm	sp, {r2, r3}
	mov	r2, #12
	mov	r3, r5
	add	r1, sp, r2
	bl	ch_do_scsi
	mov	r4, r0
	mov	r0, r5
	bl	kfree
.L1:
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #64
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	cmp	r9, #0
	movne	r0, #13
	moveq	r0, #12
	b	.L7
.L15:
	ldr	r3, .L18+36
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	GFP_KERNEL
	.word	.LC5
	.word	.LC0
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.word	.LC4
	.word	SEND_VOLUME_TAG
	.word	DMA_TO_DEVICE
	.word	ENOMEM
	.size	ch_set_voltag, .-ch_set_voltag
	.comm	SEND_VOLUME_TAG,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DMA_TO_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
