	.file	"extr_sslapitest.c_test_set_ciphersuite.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"TLS_AES_128_GCM_SHA256:TLS_AES_128_CCM_SHA256"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"AES256-GCM-SHA384"
.LC2:
	.string	"TLS_AES_128_GCM_SHA256"
.LC3:
	.string	"TLS_AES_128_CCM_SHA256"
	.text
	.p2align 4
	.type	test_set_ciphersuite, @function
test_set_ciphersuite:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edi
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	r14d, DWORD PTR privkey[rip]
	mov	r13d, DWORD PTR cert[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r12d, DWORD PTR TLS1_VERSION[rip]
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 32[rsp], 0
	call	TLS_client_method@PLT
	mov	ebp, eax
	xor	eax, eax
	call	TLS_server_method@PLT
	push	r14
	.cfi_def_cfa_offset 104
	xor	ecx, ecx
	mov	edx, r12d
	push	r13
	.cfi_def_cfa_offset 112
	mov	edi, eax
	mov	esi, ebp
	lea	r9, 24[rsp]
	lea	r8, 32[rsp]
	call	create_ssl_ctx_pair@PLT
	mov	edi, eax
	call	TEST_true@PLT
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	test	eax, eax
	jne	.L2
.L4:
	xor	r12d, r12d
.L3:
	mov	rdi, QWORD PTR 32[rsp]
	call	SSL_free@PLT
	mov	rdi, QWORD PTR 24[rsp]
	call	SSL_free@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	SSL_CTX_free@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	SSL_CTX_free@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L56
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rsp]
	lea	rsi, .LC0[rip]
	call	SSL_CTX_set_ciphersuites@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L4
	lea	eax, -4[rbx]
	mov	rdi, QWORD PTR 8[rsp]
	cmp	eax, 3
	jbe	.L57
.L5:
	mov	ebp, ebx
	lea	rsi, .LC2[rip]
	and	ebp, -5
	je	.L53
	cmp	ebp, 1
	je	.L58
.L7:
	mov	rsi, rdi
	mov	rdi, QWORD PTR 16[rsp]
	xor	r9d, r9d
	xor	r8d, r8d
	lea	rcx, 24[rsp]
	lea	rdx, 32[rsp]
	call	create_ssl_objects@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L4
	lea	eax, -8[rbx]
	cmp	eax, 1
	jbe	.L59
	cmp	ebp, 2
	je	.L12
.L10:
	mov	r8, QWORD PTR 24[rsp]
	cmp	ebx, 9
	je	.L16
	cmp	ebp, 3
	jne	.L13
.L16:
	lea	rsi, .LC3[rip]
	mov	rdi, r8
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L58:
	lea	rsi, .LC3[rip]
.L53:
	call	SSL_CTX_set_ciphersuites@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L4
	mov	rdi, QWORD PTR 8[rsp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L57:
	lea	rsi, .LC1[rip]
	call	SSL_CTX_set_cipher_list@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L4
	mov	rdi, QWORD PTR 8[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L59:
	mov	rdi, QWORD PTR 24[rsp]
	lea	rsi, .LC1[rip]
	call	SSL_set_cipher_list@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L4
	cmp	ebx, 8
	jne	.L10
.L12:
	mov	rdi, QWORD PTR 24[rsp]
	lea	rsi, .LC2[rip]
.L54:
	call	SSL_set_ciphersuites@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L4
	mov	r8, QWORD PTR 24[rsp]
.L13:
	mov	edx, DWORD PTR SSL_ERROR_NONE[rip]
	mov	rdi, QWORD PTR 32[rsp]
	mov	rsi, r8
	xor	r12d, r12d
	call	create_ssl_connection@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	setne	r12b
	jmp	.L3
.L56:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_set_ciphersuite, .-test_set_ciphersuite
	.comm	privkey,4,4
	.comm	cert,4,4
	.comm	TLS1_VERSION,4,4
	.comm	SSL_ERROR_NONE,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_sslapitest.c_test_set_ciphersuite.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TLS_AES_128_GCM_SHA256:TLS_AES_128_CCM_SHA256\000"
	.align	2
.LC1:
	.ascii	"AES256-GCM-SHA384\000"
	.align	2
.LC2:
	.ascii	"TLS_AES_128_GCM_SHA256\000"
	.align	2
.LC3:
	.ascii	"TLS_AES_128_CCM_SHA256\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_set_ciphersuite, %function
test_set_ciphersuite:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, #0
	ldr	r3, .L56
	sub	sp, sp, #40
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r5, r0
	str	r4, [sp, #20]
	str	r4, [sp, #24]
	str	r4, [sp, #28]
	str	r4, [sp, #32]
	bl	TLS_server_method
	mov	r6, r0
	bl	TLS_client_method
	ldr	r2, .L56+4
	ldr	r3, .L56+8
	ldr	lr, [r2]
	ldr	ip, [r3]
	ldr	r2, .L56+12
	str	lr, [sp, #12]
	str	ip, [sp, #8]
	add	lr, sp, #20
	add	ip, sp, #24
	mov	r1, r0
	ldr	r2, [r2]
	mov	r3, r4
	stm	sp, {ip, lr}
	mov	r0, r6
	bl	create_ssl_ctx_pair
	bl	TEST_true
	cmp	r0, r4
	bne	.L2
.L4:
	mov	r4, #0
.L3:
	ldr	r0, [sp, #32]
	bl	SSL_free
	ldr	r0, [sp, #28]
	bl	SSL_free
	ldr	r0, [sp, #24]
	bl	SSL_CTX_free
	ldr	r0, [sp, #20]
	bl	SSL_CTX_free
	ldr	r3, .L56
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L51
	mov	r0, r4
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r1, .L56+16
	ldr	r0, [sp, #24]
	bl	SSL_CTX_set_ciphersuites
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
	sub	r3, r5, #4
	cmp	r3, #3
	ldr	r0, [sp, #20]
	bls	.L52
.L5:
	bics	r4, r5, #4
	beq	.L53
	cmp	r4, #1
	beq	.L54
.L7:
	mov	r3, #0
	mov	r1, r0
	str	r3, [sp, #4]
	str	r3, [sp]
	add	r2, sp, #32
	add	r3, sp, #28
	ldr	r0, [sp, #24]
	bl	create_ssl_objects
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
	sub	r3, r5, #8
	cmp	r3, #1
	bls	.L55
	cmp	r4, #2
	beq	.L12
.L10:
	cmp	r4, #3
	cmpne	r5, #9
	ldr	r1, [sp, #28]
	bne	.L13
	mov	r0, r1
	ldr	r1, .L56+20
	bl	SSL_set_ciphersuites
	bl	TEST_true
	cmp	r0, #0
	bne	.L49
	b	.L4
.L53:
	ldr	r1, .L56+24
	bl	SSL_CTX_set_ciphersuites
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
.L48:
	ldr	r0, [sp, #20]
	b	.L7
.L55:
	ldr	r1, .L56+28
	ldr	r0, [sp, #28]
	bl	SSL_set_cipher_list
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
	cmp	r5, #8
	bne	.L10
.L12:
	ldr	r1, .L56+24
	ldr	r0, [sp, #28]
	bl	SSL_set_ciphersuites
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
.L49:
	ldr	r1, [sp, #28]
.L13:
	ldr	r3, .L56+32
	ldr	r0, [sp, #32]
	ldr	r2, [r3]
	bl	create_ssl_connection
	bl	TEST_true
	subs	r4, r0, #0
	movne	r4, #1
	b	.L3
.L52:
	ldr	r1, .L56+28
	bl	SSL_CTX_set_cipher_list
	bl	TEST_true
	cmp	r0, #0
	beq	.L4
	ldr	r0, [sp, #20]
	b	.L5
.L54:
	ldr	r1, .L56+20
	bl	SSL_CTX_set_ciphersuites
	bl	TEST_true
	cmp	r0, #0
	bne	.L48
	b	.L4
.L51:
	bl	__stack_chk_fail
.L57:
	.align	2
.L56:
	.word	.LC4
	.word	privkey
	.word	cert
	.word	TLS1_VERSION
	.word	.LC0
	.word	.LC3
	.word	.LC2
	.word	.LC1
	.word	SSL_ERROR_NONE
	.size	test_set_ciphersuite, .-test_set_ciphersuite
	.comm	privkey,4,4
	.comm	cert,4,4
	.comm	TLS1_VERSION,4,4
	.comm	SSL_ERROR_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
