	.file	"extr_adc.c_s3c_adc_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to allocate adc_device\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"failed to get adc irq\n"
.LC2:
	.string	"failed to attach adc irq\n"
.LC3:
	.string	"adc"
.LC4:
	.string	"failed to get adc clock\n"
.LC5:
	.string	"failed to find registers\n"
.LC6:
	.string	"failed to map registers\n"
.LC7:
	.string	"attached adc driver\n"
	.text
	.p2align 4
	.type	s3c_adc_probe, @function
s3c_adc_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	mov	edi, 32
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	kzalloc@PLT
	test	rax, rax
	je	.L14
	mov	QWORD PTR 24[rax], r12
	mov	edi, 49
	mov	rbp, rax
	call	S3C2410_ADCCON_PRSCVL@PLT
	mov	esi, 1
	mov	rdi, r12
	mov	DWORD PTR 0[rbp], eax
	call	platform_get_irq@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	jle	.L15
	mov	rdi, r12
	call	dev_name@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	r8, rbp
	xor	edx, edx
	mov	esi, DWORD PTR s3c_adc_irq[rip]
	mov	ecx, eax
	call	request_irq@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L16
	mov	rdi, r12
	lea	rsi, .LC3[rip]
	call	clk_get@PLT
	mov	DWORD PTR 16[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L17
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, r12
	call	platform_get_resource@PLT
	mov	r13, rax
	test	rax, rax
	je	.L18
	mov	rdi, rax
	call	resource_size@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	esi, eax
	call	ioremap@PLT
	mov	DWORD PTR 20[rbp], eax
	test	eax, eax
	je	.L19
	mov	edi, DWORD PTR 16[rbp]
	xor	r13d, r13d
	call	clk_enable@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR S3C2410_ADCCON[rip]
	or	edi, DWORD PTR S3C2410_ADCCON_PRSCEN[rip]
	add	esi, DWORD PTR 20[rbp]
	call	writel@PLT
	mov	rdi, r12
	lea	rsi, .LC7[rip]
	call	dev_info@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	platform_set_drvdata@PLT
	mov	eax, r13d
	mov	QWORD PTR adc_dev[rip], rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	call	dev_err@PLT
	mov	r13d, DWORD PTR ENOENT[rip]
	neg	r13d
.L5:
	mov	rdi, rbp
	call	kfree@PLT
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	call	dev_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rsi, .LC6[rip]
	mov	rdi, r12
	call	dev_err@PLT
	mov	r13d, DWORD PTR ENXIO[rip]
	neg	r13d
.L10:
	mov	edi, DWORD PTR 16[rbp]
	call	clk_put@PLT
.L8:
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, rbp
	call	free_irq@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	neg	r13d
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	lea	rsi, .LC4[rip]
	mov	rdi, r12
	call	dev_err@PLT
	mov	edi, DWORD PTR 16[rbp]
	call	PTR_ERR@PLT
	mov	r13d, eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rsi, .LC5[rip]
	mov	rdi, r12
	call	dev_err@PLT
	mov	r13d, DWORD PTR ENXIO[rip]
	neg	r13d
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	s3c_adc_probe, .-s3c_adc_probe
	.comm	s3c_adc_irq,4,4
	.comm	adc_dev,8,8
	.comm	S3C2410_ADCCON_PRSCEN,4,4
	.comm	S3C2410_ADCCON,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	ENOENT,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_adc.c_s3c_adc_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to allocate adc_device\012\000"
	.align	2
.LC1:
	.ascii	"failed to get adc irq\012\000"
	.align	2
.LC2:
	.ascii	"failed to attach adc irq\012\000"
	.align	2
.LC3:
	.ascii	"adc\000"
	.align	2
.LC4:
	.ascii	"failed to get adc clock\012\000"
	.align	2
.LC5:
	.ascii	"failed to find registers\012\000"
	.align	2
.LC6:
	.ascii	"failed to map registers\012\000"
	.align	2
.LC7:
	.ascii	"attached adc driver\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s3c_adc_probe, %function
s3c_adc_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, .L20
	mov	r6, r0
	ldr	r1, [r2]
	mov	r0, #20
	sub	sp, sp, #12
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L14
	mov	r0, #49
	str	r6, [r4, #16]
	bl	S3C2410_ADCCON_PRSCVL
	mov	r1, #1
	str	r0, [r4]
	mov	r0, r6
	bl	platform_get_irq
	cmp	r0, #0
	mov	r5, r0
	str	r0, [r4, #4]
	ble	.L15
	ldr	r3, .L20+4
	mov	r0, r6
	ldr	r7, [r3]
	bl	dev_name
	mov	r1, r7
	mov	r3, r0
	mov	r2, #0
	mov	r0, r5
	str	r4, [sp]
	bl	request_irq
	subs	r5, r0, #0
	blt	.L16
	ldr	r1, .L20+8
	mov	r0, r6
	bl	clk_get
	str	r0, [r4, #8]
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L17
	ldr	r3, .L20+12
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, r6
	bl	platform_get_resource
	subs	r3, r0, #0
	beq	.L18
	ldr	r7, [r3]
	bl	resource_size
	mov	r1, r0
	mov	r0, r7
	bl	ioremap
	cmp	r0, #0
	str	r0, [r4, #12]
	beq	.L19
	ldr	r0, [r4, #8]
	bl	clk_enable
	ldr	r2, .L20+16
	ldr	r3, .L20+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r4, #12]
	ldr	r0, [r4]
	add	r1, r1, r2
	orr	r0, r0, r3
	bl	writel
	mov	r0, r6
	ldr	r1, .L20+24
	bl	dev_info
	mov	r1, r4
	mov	r0, r6
	bl	platform_set_drvdata
	mov	r0, r5
	ldr	r3, .L20+28
	str	r4, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L15:
	mov	r0, r6
	ldr	r1, .L20+32
	bl	dev_err
	ldr	r3, .L20+36
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L5:
	mov	r0, r4
	bl	kfree
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L16:
	mov	r0, r6
	ldr	r1, .L20+40
	bl	dev_err
	b	.L5
.L19:
	mov	r0, r6
	ldr	r1, .L20+44
	bl	dev_err
	ldr	r3, .L20+48
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L10:
	ldr	r0, [r4, #8]
	bl	clk_put
.L8:
	mov	r1, r4
	ldr	r0, [r4, #4]
	bl	free_irq
	b	.L5
.L14:
	mov	r0, r6
	ldr	r1, .L20+52
	bl	dev_err
	ldr	r3, .L20+56
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L17:
	ldr	r1, .L20+60
	mov	r0, r6
	bl	dev_err
	ldr	r0, [r4, #8]
	bl	PTR_ERR
	mov	r5, r0
	b	.L8
.L18:
	mov	r0, r6
	ldr	r1, .L20+64
	bl	dev_err
	ldr	r3, .L20+48
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L10
.L21:
	.align	2
.L20:
	.word	GFP_KERNEL
	.word	s3c_adc_irq
	.word	.LC3
	.word	IORESOURCE_MEM
	.word	S3C2410_ADCCON
	.word	S3C2410_ADCCON_PRSCEN
	.word	.LC7
	.word	adc_dev
	.word	.LC1
	.word	ENOENT
	.word	.LC2
	.word	.LC6
	.word	ENXIO
	.word	.LC0
	.word	ENOMEM
	.word	.LC4
	.word	.LC5
	.size	s3c_adc_probe, .-s3c_adc_probe
	.comm	s3c_adc_irq,4,4
	.comm	adc_dev,4,4
	.comm	S3C2410_ADCCON_PRSCEN,4,4
	.comm	S3C2410_ADCCON,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
