	.file	"extr_extcon.c_extcon_set_property_capability.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	extcon_set_property_capability
	.type	extcon_set_property_capability, @function
extcon_set_property_capability:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	rdi, rdi
	je	.L9
	mov	r12d, esi
	mov	rbx, rdi
	mov	esi, edx
	mov	ebp, edx
	mov	edi, r12d
	call	is_extcon_property_supported@PLT
	test	eax, eax
	jne	.L4
.L9:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, r12d
	mov	rdi, rbx
	call	find_cable_index_by_id@PLT
	movsx	r12, eax
	test	r12d, r12d
	js	.L1
	mov	edi, ebp
	call	get_extcon_type@PLT
	test	eax, eax
	js	.L11
	sal	r12, 4
	add	r12, QWORD PTR [rbx]
	cmp	eax, 130
	je	.L5
	jg	.L6
	cmp	eax, 128
	je	.L7
	cmp	eax, 129
	jne	.L9
	mov	esi, DWORD PTR 4[r12]
	mov	edi, ebp
	sub	edi, DWORD PTR EXTCON_PROP_JACK_MIN[rip]
	xor	r12d, r12d
	call	__set_bit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	eax, 131
	jne	.L9
	mov	esi, DWORD PTR 8[r12]
	mov	edi, ebp
	sub	edi, DWORD PTR EXTCON_PROP_CHG_MIN[rip]
	xor	r12d, r12d
	call	__set_bit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR [r12]
	mov	edi, ebp
	sub	edi, DWORD PTR EXTCON_PROP_DISP_MIN[rip]
	xor	r12d, r12d
	call	__set_bit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR 12[r12]
	mov	edi, ebp
	sub	edi, DWORD PTR EXTCON_PROP_USB_MIN[rip]
	xor	r12d, r12d
	call	__set_bit@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	extcon_set_property_capability, .-extcon_set_property_capability
	.comm	EXTCON_PROP_USB_MIN,4,4
	.comm	EXTCON_PROP_JACK_MIN,4,4
	.comm	EXTCON_PROP_DISP_MIN,4,4
	.comm	EXTCON_PROP_CHG_MIN,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.c_extcon_set_property_capability.c"
	.text
	.align	2
	.global	extcon_set_property_capability
	.syntax unified
	.arm
	.fpu softvfp
	.type	extcon_set_property_capability, %function
extcon_set_property_capability:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r5, r0, #0
	beq	.L5
	mov	r4, r1
	mov	r1, r2
	mov	r0, r4
	mov	r6, r2
	bl	is_extcon_property_supported
	cmp	r0, #0
	bne	.L4
.L5:
	ldr	r3, .L15
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L4:
	mov	r1, r4
	mov	r0, r5
	bl	find_cable_index_by_id
	subs	r4, r0, #0
	blt	.L1
	mov	r0, r6
	bl	get_extcon_type
	cmp	r0, #0
	movlt	r4, r0
	blt	.L1
	ldr	r3, [r5]
	sub	r0, r0, #128
	add	r2, r3, r4, lsl #4
	cmp	r0, #3
	ldrls	pc, [pc, r0, asl #2]
	b	.L5
.L7:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L6:
	ldr	r3, .L15+4
	ldr	r1, [r2, #8]
	ldr	r0, [r3]
	mov	r4, #0
	sub	r0, r6, r0
	bl	__set_bit
	b	.L1
.L8:
	ldr	r2, .L15+8
	ldr	r1, [r3, r4, lsl #4]
	ldr	r0, [r2]
	mov	r4, #0
	sub	r0, r6, r0
	bl	__set_bit
	b	.L1
.L9:
	ldr	r3, .L15+12
	ldr	r1, [r2, #4]
	ldr	r0, [r3]
	mov	r4, #0
	sub	r0, r6, r0
	bl	__set_bit
	b	.L1
.L10:
	ldr	r3, .L15+16
	ldr	r1, [r2, #12]
	ldr	r0, [r3]
	mov	r4, #0
	sub	r0, r6, r0
	bl	__set_bit
	b	.L1
.L16:
	.align	2
.L15:
	.word	EINVAL
	.word	EXTCON_PROP_CHG_MIN
	.word	EXTCON_PROP_DISP_MIN
	.word	EXTCON_PROP_JACK_MIN
	.word	EXTCON_PROP_USB_MIN
	.size	extcon_set_property_capability, .-extcon_set_property_capability
	.comm	EXTCON_PROP_USB_MIN,4,4
	.comm	EXTCON_PROP_JACK_MIN,4,4
	.comm	EXTCON_PROP_DISP_MIN,4,4
	.comm	EXTCON_PROP_CHG_MIN,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
