	.file	"extr_extcon-ptn5150.c_ptn5150_i2c_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"int"
.LC1:
	.string	"failed to get INT GPIO\n"
.LC2:
	.string	"vbus"
.LC3:
	.string	"failed to get VBUS GPIO\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"failed to set VBUS GPIO direction\n"
	.align 8
.LC5:
	.string	"failed to allocate register map: %d\n"
	.section	.rodata.str1.1
.LC6:
	.string	"failed to get INTB IRQ\n"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"failed to request handler for INTB IRQ\n"
	.align 8
.LC8:
	.string	"failed to allocate memory for extcon\n"
	.align 8
.LC9:
	.string	"failed to register extcon device\n"
	.text
	.p2align 4
	.type	ptn5150_i2c_probe, @function
ptn5150_i2c_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR 8[rdi], 0
	je	.L20
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	lea	r13, 8[rdi]
	mov	rbx, rdi
	mov	esi, 64
	mov	rdi, r13
	call	devm_kzalloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L21
	mov	rsi, rax
	mov	rdi, rbx
	call	i2c_set_clientdata@PLT
	mov	QWORD PTR 8[rbp], r13
	mov	edx, DWORD PTR GPIOD_IN[rip]
	mov	rdi, r13
	mov	QWORD PTR 56[rbp], rbx
	lea	rsi, .LC0[rip]
	call	devm_gpiod_get@PLT
	mov	QWORD PTR 24[rbp], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L24
	mov	edx, DWORD PTR GPIOD_IN[rip]
	mov	rdi, r13
	lea	rsi, .LC2[rip]
	call	devm_gpiod_get@PLT
	mov	QWORD PTR 48[rbp], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L25
	mov	rdi, QWORD PTR 48[rbp]
	xor	esi, esi
	call	gpiod_direction_output@PLT
	test	eax, eax
	jne	.L26
	lea	rdi, 44[rbp]
	call	mutex_init@PLT
	mov	esi, DWORD PTR ptn5150_irq_work[rip]
	lea	rdi, 40[rbp]
	call	INIT_WORK@PLT
	mov	rdi, rbx
	lea	rsi, ptn5150_regmap_config[rip]
	call	devm_regmap_init_i2c@PLT
	mov	QWORD PTR 32[rbp], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L27
	mov	rdi, QWORD PTR 24[rbp]
	test	rdi, rdi
	je	.L9
	call	gpiod_to_irq@PLT
	mov	QWORD PTR 0[rbp], rax
	test	rax, rax
	js	.L28
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	ecx, DWORD PTR ptn5150_irq_handler[rip]
	xor	edx, edx
	mov	esi, eax
	push	rbp
	.cfi_def_cfa_offset 64
	mov	r9d, DWORD PTR [rbx]
	mov	rdi, r13
	mov	r8d, DWORD PTR IRQF_TRIGGER_FALLING[rip]
	or	r8d, DWORD PTR IRQF_ONESHOT[rip]
	call	devm_request_threaded_irq@PLT
	mov	r12d, eax
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	test	r12d, r12d
	js	.L29
.L9:
	mov	rdi, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR ptn5150_extcon_cable[rip]
	call	devm_extcon_dev_allocate@PLT
	mov	QWORD PTR 16[rbp], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L30
	mov	rsi, QWORD PTR 16[rbp]
	mov	rdi, QWORD PTR 8[rbp]
	call	devm_extcon_dev_register@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L31
	mov	rdi, rbp
	call	ptn5150_init_dev_type@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
.L20:
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbp]
	lea	rsi, .LC8[rip]
	xor	eax, eax
	call	dev_err@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	lea	rsi, .LC4[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, r13
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 24[rbp]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	rdi, r13
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 48[rbp]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbp]
	lea	rsi, .LC9[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
.L29:
	lea	rsi, .LC7[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, QWORD PTR 32[rbp]
	call	PTR_ERR@PLT
	mov	rdi, QWORD PTR 8[rbp]
	lea	rsi, .LC5[rip]
	mov	r12d, eax
	mov	edx, eax
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	lea	rsi, .LC6[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR 0[rbp]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ptn5150_i2c_probe, .-ptn5150_i2c_probe
	.comm	ptn5150_regmap_config,4,4
	.comm	ptn5150_irq_work,4,4
	.comm	ptn5150_irq_handler,4,4
	.comm	ptn5150_extcon_cable,4,4
	.comm	IRQF_TRIGGER_FALLING,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	GPIOD_IN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_extcon-ptn5150.c_ptn5150_i2c_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"int\000"
	.align	2
.LC1:
	.ascii	"failed to get INT GPIO\012\000"
	.align	2
.LC2:
	.ascii	"vbus\000"
	.align	2
.LC3:
	.ascii	"failed to get VBUS GPIO\012\000"
	.align	2
.LC4:
	.ascii	"failed to set VBUS GPIO direction\012\000"
	.align	2
.LC5:
	.ascii	"failed to allocate register map: %d\012\000"
	.align	2
.LC6:
	.ascii	"failed to get INTB IRQ\012\000"
	.align	2
.LC7:
	.ascii	"failed to request handler for INTB IRQ\012\000"
	.align	2
.LC8:
	.ascii	"failed to allocate memory for extcon\012\000"
	.align	2
.LC9:
	.ascii	"failed to register extcon device\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ptn5150_i2c_probe, %function
ptn5150_i2c_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r0, #4]
	sub	sp, sp, #20
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L32
	add	r6, r0, #4
	mov	r5, r0
	mov	r1, #36
	mov	r0, r6
	ldr	r2, [r3]
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L23
	ldr	r7, .L32+4
	mov	r1, r4
	mov	r0, r5
	bl	i2c_set_clientdata
	ldr	r2, [r7]
	ldr	r1, .L32+8
	mov	r0, r6
	str	r6, [r4, #4]
	str	r5, [r4, #32]
	bl	devm_gpiod_get
	str	r0, [r4, #12]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L24
	ldr	r1, .L32+12
	ldr	r2, [r7]
	mov	r0, r6
	bl	devm_gpiod_get
	str	r0, [r4, #28]
	bl	IS_ERR
	subs	r1, r0, #0
	bne	.L25
	ldr	r0, [r4, #28]
	bl	gpiod_direction_output
	cmp	r0, #0
	bne	.L26
	add	r0, r4, #24
	bl	mutex_init
	ldr	r3, .L32+16
	add	r0, r4, #20
	ldr	r1, [r3]
	bl	INIT_WORK
	ldr	r1, .L32+20
	mov	r0, r5
	bl	devm_regmap_init_i2c
	str	r0, [r4, #16]
	bl	IS_ERR
	subs	r7, r0, #0
	bne	.L27
	ldr	r0, [r4, #12]
	cmp	r0, #0
	beq	.L9
	bl	gpiod_to_irq
	cmp	r0, #0
	mov	r1, r0
	str	r0, [r4]
	blt	.L28
	ldr	r2, .L32+24
	ldr	r3, .L32+28
	ldr	r0, [r2]
	ldr	r2, [r5]
	ldr	r3, [r3]
	stmib	sp, {r2, r4}
	orr	r3, r3, r0
	ldr	r0, .L32+32
	str	r3, [sp]
	ldr	r3, [r0]
	mov	r2, r7
	mov	r0, r6
	bl	devm_request_threaded_irq
	subs	r5, r0, #0
	blt	.L29
.L9:
	ldr	r3, .L32+36
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	bl	devm_extcon_dev_allocate
	str	r0, [r4, #8]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L30
	ldmib	r4, {r0, r1}
	bl	devm_extcon_dev_register
	subs	r5, r0, #0
	bne	.L31
	mov	r0, r4
	bl	ptn5150_init_dev_type
	subs	r5, r0, #0
	ldrne	r3, .L32+40
	ldrne	r5, [r3]
	rsbne	r5, r5, #0
	b	.L1
.L23:
	ldr	r3, .L32+44
	ldr	r0, [r3]
	rsb	r5, r0, #0
.L1:
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L26:
	mov	r0, r6
	ldr	r1, .L32+48
	bl	dev_err
.L20:
	ldr	r3, .L32+40
	ldr	r0, [r3]
	rsb	r5, r0, #0
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L24:
	mov	r0, r6
	ldr	r1, .L32+52
	bl	dev_err
	ldr	r0, [r4, #12]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	PTR_ERR
.L25:
	mov	r0, r6
	ldr	r1, .L32+56
	bl	dev_err
	ldr	r0, [r4, #28]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	PTR_ERR
.L31:
	ldr	r0, [r4, #4]
	ldr	r1, .L32+60
	bl	dev_err
	b	.L1
.L29:
	mov	r0, r6
	ldr	r1, .L32+64
	bl	dev_err
	b	.L1
.L27:
	ldr	r0, [r4, #16]
	bl	PTR_ERR
	mov	r5, r0
	ldr	r1, .L32+68
	mov	r2, r5
	ldr	r0, [r4, #4]
	bl	dev_err
	b	.L1
.L30:
	ldr	r0, [r4, #4]
	ldr	r1, .L32+72
	bl	dev_err
	ldr	r3, .L32+44
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L28:
	mov	r0, r6
	ldr	r1, .L32+76
	bl	dev_err
	ldr	r5, [r4]
	b	.L1
.L33:
	.align	2
.L32:
	.word	GFP_KERNEL
	.word	GPIOD_IN
	.word	.LC0
	.word	.LC2
	.word	ptn5150_irq_work
	.word	ptn5150_regmap_config
	.word	IRQF_ONESHOT
	.word	IRQF_TRIGGER_FALLING
	.word	ptn5150_irq_handler
	.word	ptn5150_extcon_cable
	.word	EINVAL
	.word	ENOMEM
	.word	.LC4
	.word	.LC1
	.word	.LC3
	.word	.LC9
	.word	.LC7
	.word	.LC5
	.word	.LC8
	.word	.LC6
	.size	ptn5150_i2c_probe, .-ptn5150_i2c_probe
	.comm	ptn5150_regmap_config,4,4
	.comm	ptn5150_irq_work,4,4
	.comm	ptn5150_irq_handler,4,4
	.comm	ptn5150_extcon_cable,4,4
	.comm	IRQF_TRIGGER_FALLING,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	GPIOD_IN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
