	.file	"extr_af_unix.c_unix_stream_sendpage.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	unix_stream_sendpage, @function
unix_stream_sendpage:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	QWORD PTR 32[rsp], rdi
	mov	QWORD PTR 16[rsp], rsi
	mov	DWORD PTR 28[rsp], edx
	mov	QWORD PTR 8[rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	test	DWORD PTR MSG_OOB[rip], r8d
	je	.L2
	mov	rax, QWORD PTR EOPNOTSUPP[rip]
	neg	rax
.L1:
	mov	rbx, QWORD PTR 56[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L49
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR 32[rsp]
	mov	ebx, r8d
	mov	r14, QWORD PTR [rax]
	mov	rdi, r14
	call	unix_peer@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR TCP_ESTABLISHED[rip]
	cmp	QWORD PTR [r14], rax
	jne	.L4
	lea	rax, 52[rsp]
	mov	DWORD PTR [rsp], 1
	xor	r13d, r13d
	xor	r12d, r12d
	mov	QWORD PTR 40[rsp], rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L53:
	cmp	r13, rax
	jne	.L19
	mov	r13, r12
.L17:
	mov	rcx, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR 28[rsp]
	mov	rdi, r13
	mov	rsi, QWORD PTR 16[rsp]
	call	skb_append_pagefrags@PLT
	test	rax, rax
	je	.L50
.L6:
	mov	rdi, rbp
	call	unix_state_unlock@PLT
	mov	rdi, rbp
	call	unix_sk@PLT
	mov	rdi, rax
	call	mutex_unlock@PLT
	mov	ecx, DWORD PTR MSG_DONTWAIT[rip]
	xor	r9d, r9d
	xor	edx, edx
	lea	r8, 48[rsp]
	xor	esi, esi
	mov	rdi, r14
	and	ecx, ebx
	call	sock_alloc_send_pskb@PLT
	mov	r12, rax
	test	rax, rax
	je	.L7
	mov	DWORD PTR [rsp], 0
.L5:
	mov	rdi, rbp
	call	unix_sk@PLT
	mov	rdi, rax
	call	mutex_lock_interruptible@PLT
	mov	DWORD PTR 48[rsp], eax
	test	eax, eax
	jne	.L51
	mov	eax, DWORD PTR 8[r14]
	test	DWORD PTR SEND_SHUTDOWN[rip], eax
	jne	.L52
	mov	rdi, rbp
	call	unix_state_lock@PLT
	mov	esi, DWORD PTR SOCK_DEAD[rip]
	mov	rdi, rbp
	call	sock_flag@PLT
	test	rax, rax
	jne	.L14
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR RCV_SHUTDOWN[rip], eax
	jne	.L14
	mov	edx, DWORD PTR [rsp]
	test	edx, edx
	je	.L21
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, QWORD PTR 40[rsp]
	mov	rdx, rbp
	call	maybe_init_creds@PLT
	mov	DWORD PTR 48[rsp], eax
	test	eax, eax
	jne	.L20
.L21:
	lea	r15, 24[rbp]
	mov	rdi, r15
	call	skb_peek_tail@PLT
	mov	rdx, rax
	test	r13, r13
	jne	.L53
.L19:
	test	rdx, rdx
	je	.L23
	mov	rsi, QWORD PTR 40[rsp]
	mov	rdi, rdx
	mov	QWORD PTR [rsp], rdx
	call	unix_skb_scm_eq@PLT
	mov	rdx, QWORD PTR [rsp]
	test	eax, eax
	je	.L23
	mov	r13, rdx
	test	r12, r12
	je	.L17
	mov	rdi, r12
	xor	r12d, r12d
	call	consume_skb@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L23:
	mov	r13, r12
	test	r12, r12
	jne	.L17
	mov	r13, rdx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR ENOTCONN[rip]
	neg	rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR EPIPE[rip]
	mov	rdi, rbp
	neg	eax
	mov	DWORD PTR 48[rsp], eax
	call	unix_state_unlock@PLT
.L47:
	mov	rdi, rbp
	call	unix_sk@PLT
	mov	rdi, rax
	call	mutex_unlock@PLT
	mov	rdi, r12
	call	kfree_skb@PLT
	test	DWORD PTR MSG_NOSIGNAL[rip], ebx
	je	.L54
.L11:
	mov	eax, DWORD PTR [rsp]
	test	eax, eax
	je	.L26
.L25:
	movsx	rax, DWORD PTR 48[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	xor	edi, edi
	call	kfree_skb@PLT
.L26:
	lea	rdi, 52[rsp]
	call	scm_destroy@PLT
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L51:
	test	DWORD PTR MSG_DONTWAIT[rip], ebx
	je	.L9
	mov	eax, DWORD PTR EAGAIN[rip]
	neg	eax
.L10:
	mov	rdi, r12
	mov	DWORD PTR 48[rsp], eax
	call	kfree_skb@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L52:
	mov	eax, DWORD PTR EPIPE[rip]
	neg	eax
	mov	DWORD PTR 48[rsp], eax
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L54:
	mov	esi, DWORD PTR current[rip]
	mov	edi, DWORD PTR SIGPIPE[rip]
	xor	edx, edx
	call	send_sig@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L50:
	mov	rdi, QWORD PTR 8[rsp]
	add	QWORD PTR 0[r13], rdi
	lea	rsi, 28[r14]
	lea	r14, 52[rsp]
	add	QWORD PTR 8[r13], rdi
	add	QWORD PTR 16[r13], rdi
	call	refcount_add@PLT
	test	r12, r12
	je	.L24
	xor	edx, edx
	mov	rsi, r13
	mov	rdi, r14
	call	unix_scm_to_skb@PLT
	mov	DWORD PTR [rsp], 0
	mov	DWORD PTR 48[rsp], eax
	test	eax, eax
	jne	.L20
	mov	rdi, r15
	call	spin_lock@PLT
	mov	rdi, r15
	mov	rsi, r12
	call	__skb_queue_tail@PLT
	mov	rdi, r15
	call	spin_unlock@PLT
.L24:
	mov	rdi, rbp
	call	unix_state_unlock@PLT
	mov	rdi, rbp
	call	unix_sk@PLT
	mov	rdi, rax
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	[QWORD PTR 16[rbp]]
	mov	rdi, r14
	call	scm_destroy@PLT
	mov	rax, QWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, rbp
	call	unix_state_unlock@PLT
	mov	rdi, rbp
	call	unix_sk@PLT
	mov	rdi, rax
	call	mutex_unlock@PLT
	mov	rdi, r12
	call	kfree_skb@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR ERESTARTSYS[rip]
	neg	eax
	jmp	.L10
.L49:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	unix_stream_sendpage, .-unix_stream_sendpage
	.comm	current,4,4
	.comm	TCP_ESTABLISHED,8,8
	.comm	SOCK_DEAD,4,4
	.comm	SIGPIPE,4,4
	.comm	SEND_SHUTDOWN,4,4
	.comm	RCV_SHUTDOWN,4,4
	.comm	MSG_OOB,4,4
	.comm	MSG_NOSIGNAL,4,4
	.comm	MSG_DONTWAIT,4,4
	.comm	ERESTARTSYS,4,4
	.comm	EPIPE,4,4
	.comm	EOPNOTSUPP,8,8
	.comm	ENOTCONN,8,8
	.comm	EAGAIN,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_af_unix.c_unix_stream_sendpage.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	unix_stream_sendpage, %function
unix_stream_sendpage:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, .L48
	sub	sp, sp, #44
	str	r0, [sp, #12]
	ldr	r6, [ip]
	ldr	r0, [sp, #80]
	mov	r8, r3
	ldr	r3, .L48+4
	ands	r6, r0, r6
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	beq	.L2
	ldr	r3, .L48+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L48+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L43
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, [sp, #12]
	mov	r10, r1
	ldr	r9, [r3]
	mov	fp, r2
	mov	r0, r9
	bl	unix_peer
	subs	r5, r0, #0
	beq	.L4
	ldr	r3, .L48+12
	ldr	r2, [r9]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L4
	mov	r4, #1
	mov	r7, r6
	add	r3, r5, #12
	str	r3, [sp, #16]
.L5:
	mov	r0, r5
	bl	unix_sk
	bl	mutex_lock_interruptible
	cmp	r0, #0
	str	r0, [sp, #28]
	bne	.L44
	ldr	r3, .L48+16
	ldr	r2, [r9, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L45
	mov	r0, r5
	bl	unix_state_lock
	ldr	r3, .L48+20
	mov	r0, r5
	ldr	r1, [r3]
	bl	sock_flag
	cmp	r0, #0
	bne	.L14
	ldr	r3, .L48+24
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L14
	cmp	r4, #0
	beq	.L20
	mov	r2, r5
	ldr	r1, [sp, #12]
	add	r0, sp, #32
	bl	maybe_init_creds
	cmp	r0, #0
	str	r0, [sp, #28]
	bne	.L19
.L20:
	ldr	r0, [sp, #16]
	bl	skb_peek_tail
	sub	r3, r6, r0
	clz	r3, r3
	cmp	r6, #0
	lsr	r3, r3, #5
	moveq	r3, #0
	cmp	r3, #0
	mov	r4, r0
	bne	.L29
	cmp	r0, #0
	beq	.L22
	add	r1, sp, #32
	str	r3, [sp, #20]
	bl	unix_skb_scm_eq
	cmp	r0, #0
	beq	.L22
	cmp	r7, #0
	moveq	r6, r4
	beq	.L17
	mov	r0, r7
	bl	consume_skb
	ldr	r3, [sp, #20]
	mov	r6, r4
	mov	r7, r3
.L17:
	mov	r3, r8
	mov	r2, fp
	mov	r1, r10
	mov	r0, r6
	bl	skb_append_pagefrags
	subs	r4, r0, #0
	beq	.L46
.L6:
	mov	r4, #0
	mov	r0, r5
	bl	unix_state_unlock
	mov	r0, r5
	bl	unix_sk
	bl	mutex_unlock
	ldr	r3, .L48+28
	ldr	ip, [sp, #80]
	ldr	r3, [r3]
	add	r0, sp, #28
	str	r0, [sp]
	mov	r2, r4
	mov	r1, r4
	mov	r0, r9
	str	r4, [sp, #4]
	and	r3, r3, ip
	bl	sock_alloc_send_pskb
	subs	r7, r0, #0
	bne	.L5
	bl	kfree_skb
.L25:
	add	r0, sp, #32
	bl	scm_destroy
	b	.L24
.L22:
	cmp	r7, #0
	moveq	r6, r4
	beq	.L6
.L29:
	mov	r6, r7
	b	.L17
.L4:
	ldr	r3, .L48+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L14:
	ldr	r3, .L48+36
	mov	r0, r5
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [sp, #28]
	bl	unix_state_unlock
	mov	r0, r5
	bl	unix_sk
	bl	mutex_unlock
	mov	r0, r7
	bl	kfree_skb
.L13:
	ldr	r3, .L48+40
	ldr	r2, [r3]
	ldr	r3, [sp, #80]
	ands	r2, r3, r2
	beq	.L47
.L11:
	cmp	r4, #0
	beq	.L25
.L24:
	ldr	r0, [sp, #28]
	b	.L1
.L44:
	ldr	r3, .L48+28
	ldr	r2, [sp, #80]
	ldr	r3, [r3]
	mov	r0, r7
	tst	r2, r3
	ldrne	r3, .L48+44
	ldreq	r3, .L48+48
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [sp, #28]
	bl	kfree_skb
	b	.L11
.L45:
	ldr	r3, .L48+36
	mov	r0, r5
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [sp, #28]
	bl	unix_sk
	bl	mutex_unlock
	mov	r0, r7
	bl	kfree_skb
	b	.L13
.L47:
	ldr	r3, .L48+52
	ldr	r1, .L48+56
	ldr	r0, [r3]
	ldr	r1, [r1]
	bl	send_sig
	b	.L11
.L46:
	ldm	r6, {r0, r2, r3}
	add	r0, r0, r8
	add	r2, r2, r8
	add	r3, r3, r8
	stm	r6, {r0, r2, r3}
	add	r1, r9, #16
	mov	r0, r8
	bl	refcount_add
	cmp	r7, #0
	add	r9, sp, #32
	beq	.L23
	mov	r1, r6
	mov	r0, r9
	mov	r2, r4
	bl	unix_scm_to_skb
	cmp	r0, #0
	str	r0, [sp, #28]
	bne	.L19
	ldr	r4, [sp, #16]
	mov	r0, r4
	bl	spin_lock
	mov	r1, r7
	mov	r0, r4
	bl	__skb_queue_tail
	mov	r0, r4
	bl	spin_unlock
.L23:
	mov	r0, r5
	bl	unix_state_unlock
	mov	r0, r5
	bl	unix_sk
	bl	mutex_unlock
	ldr	r3, [r5, #8]
	mov	r0, r5
	blx	r3
	mov	r0, r9
	bl	scm_destroy
	mov	r0, r8
	b	.L1
.L19:
	mov	r0, r5
	bl	unix_state_unlock
	mov	r0, r5
	bl	unix_sk
	bl	mutex_unlock
	mov	r0, r7
	bl	kfree_skb
	b	.L11
.L43:
	bl	__stack_chk_fail
.L49:
	.align	2
.L48:
	.word	MSG_OOB
	.word	.LC0
	.word	EOPNOTSUPP
	.word	TCP_ESTABLISHED
	.word	SEND_SHUTDOWN
	.word	SOCK_DEAD
	.word	RCV_SHUTDOWN
	.word	MSG_DONTWAIT
	.word	ENOTCONN
	.word	EPIPE
	.word	MSG_NOSIGNAL
	.word	EAGAIN
	.word	ERESTARTSYS
	.word	SIGPIPE
	.word	current
	.size	unix_stream_sendpage, .-unix_stream_sendpage
	.comm	current,4,4
	.comm	TCP_ESTABLISHED,4,4
	.comm	SOCK_DEAD,4,4
	.comm	SIGPIPE,4,4
	.comm	SEND_SHUTDOWN,4,4
	.comm	RCV_SHUTDOWN,4,4
	.comm	MSG_OOB,4,4
	.comm	MSG_NOSIGNAL,4,4
	.comm	MSG_DONTWAIT,4,4
	.comm	ERESTARTSYS,4,4
	.comm	EPIPE,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENOTCONN,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
