	.file	"extr_extcon-usbc-cros-ec.c_cros_ec_pd_command.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cros_ec_pd_command, @function
cros_ec_pd_command:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	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
	mov	r12d, edx
	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
	mov	rbx, rdi
	mov	edi, r8d
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14d, DWORD PTR GFP_KERNEL[rip]
	mov	r13d, DWORD PTR 80[rsp]
	mov	QWORD PTR [rsp], rcx
	mov	QWORD PTR 8[rsp], r9
	mov	esi, r13d
	call	max@PLT
	mov	esi, r14d
	lea	rdi, 24[rax]
	call	kzalloc@PLT
	test	rax, rax
	je	.L14
	mov	DWORD PTR [rax], r12d
	mov	r14, rax
	mov	DWORD PTR 4[rax], ebp
	mov	DWORD PTR 8[rax], r15d
	mov	DWORD PTR 12[rax], r13d
	test	r15d, r15d
	jne	.L15
.L4:
	mov	edi, DWORD PTR [rbx]
	mov	rsi, r14
	call	cros_ec_cmd_xfer_status@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L5
	test	r13d, r13d
	jne	.L16
.L5:
	mov	rdi, r14
	call	kfree@PLT
.L1:
	add	rsp, 24
	.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
	mov	rsi, QWORD PTR 16[r14]
	mov	rdi, QWORD PTR 8[rsp]
	mov	edx, r13d
	call	memcpy@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, QWORD PTR 16[rax]
	mov	rsi, QWORD PTR [rsp]
	mov	edx, r15d
	call	memcpy@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	cros_ec_pd_command, .-cros_ec_pd_command
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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-usbc-cros-ec.c_cros_ec_pd_command.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cros_ec_pd_command, %function
cros_ec_pd_command:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, [sp, #32]
	ldr	r6, [sp, #40]
	mov	r7, r0
	mov	r8, r1
	mov	r0, r5
	mov	r1, r6
	mov	r9, r2
	mov	r10, r3
	bl	max
	ldr	r3, .L17
	add	r0, r0, #20
	ldr	r1, [r3]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L14
	cmp	r5, #0
	str	r9, [r4]
	str	r8, [r4, #4]
	str	r5, [r4, #8]
	str	r6, [r4, #12]
	bne	.L15
.L4:
	mov	r1, r4
	ldr	r0, [r7]
	bl	cros_ec_cmd_xfer_status
	mvn	r3, r0
	cmp	r6, #0
	lsr	r3, r3, #31
	moveq	r3, #0
	cmp	r3, #0
	mov	r5, r0
	bne	.L16
.L5:
	mov	r0, r4
	bl	kfree
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	mov	r2, r5
	mov	r1, r10
	ldr	r0, [r4, #16]
	bl	memcpy
	b	.L4
.L16:
	mov	r2, r6
	ldr	r1, [r4, #16]
	ldr	r0, [sp, #36]
	bl	memcpy
	b	.L5
.L14:
	ldr	r3, .L17+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	.align	2
.L17:
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	cros_ec_pd_command, .-cros_ec_pd_command
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
