	.file	"extr_ssl_lib.c_SSL_set_rfd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SSL_set_rfd
	.type	SSL_set_rfd, @function
SSL_set_rfd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	SSL_get_wbio@PLT
	test	rax, rax
	je	.L5
	mov	rdi, rax
	mov	rbp, rax
	call	BIO_method_type@PLT
	cmp	rax, QWORD PTR BIO_TYPE_SOCKET[rip]
	je	.L12
.L5:
	xor	eax, eax
	call	BIO_s_socket@PLT
	mov	edi, eax
	call	BIO_new@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L13
	mov	edx, DWORD PTR BIO_NOCLOSE[rip]
	mov	esi, r13d
	mov	rdi, rax
	call	BIO_set_fd@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	SSL_set0_rbio@PLT
	mov	eax, 1
.L1:
	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
.L13:
	.cfi_restore_state
	mov	esi, DWORD PTR ERR_R_BUF_LIB[rip]
	mov	edi, DWORD PTR SSL_F_SSL_SET_RFD[rip]
	call	SSLerr@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, rbp
	call	BIO_get_fd@PLT
	cmp	r13d, eax
	jne	.L5
	mov	rdi, rbp
	call	BIO_up_ref@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	SSL_set0_rbio@PLT
	mov	eax, 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	SSL_set_rfd, .-SSL_set_rfd
	.comm	SSL_F_SSL_SET_RFD,4,4
	.comm	ERR_R_BUF_LIB,4,4
	.comm	BIO_TYPE_SOCKET,8,8
	.comm	BIO_NOCLOSE,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_ssl_lib.c_SSL_set_rfd.c"
	.text
	.align	2
	.global	SSL_set_rfd
	.syntax unified
	.arm
	.fpu softvfp
	.type	SSL_set_rfd, %function
SSL_set_rfd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r1
	mov	r5, r0
	bl	SSL_get_wbio
	subs	r4, r0, #0
	beq	.L5
	bl	BIO_method_type
	ldr	r3, .L14
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L12
.L5:
	bl	BIO_s_socket
	bl	BIO_new
	subs	r4, r0, #0
	beq	.L13
	ldr	r3, .L14+4
	mov	r1, r6
	ldr	r2, [r3]
	bl	BIO_set_fd
	mov	r1, r4
	mov	r0, r5
	bl	SSL_set0_rbio
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r2, .L14+8
	ldr	r3, .L14+12
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	SSLerr
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L12:
	mov	r1, #0
	mov	r0, r4
	bl	BIO_get_fd
	cmp	r0, r6
	bne	.L5
	mov	r0, r4
	bl	BIO_up_ref
	mov	r1, r4
	mov	r0, r5
	bl	SSL_set0_rbio
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L15:
	.align	2
.L14:
	.word	BIO_TYPE_SOCKET
	.word	BIO_NOCLOSE
	.word	ERR_R_BUF_LIB
	.word	SSL_F_SSL_SET_RFD
	.size	SSL_set_rfd, .-SSL_set_rfd
	.comm	SSL_F_SSL_SET_RFD,4,4
	.comm	ERR_R_BUF_LIB,4,4
	.comm	BIO_TYPE_SOCKET,4,4
	.comm	BIO_NOCLOSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
