	.file	"extr_tls_openssl.c_tls_connection_peer_serial_num.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tls_connection_peer_serial_num
	.type	tls_connection_peer_serial_num, @function
tls_connection_peer_serial_num:
.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
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR [rsi]
	test	edi, edi
	je	.L4
	call	X509_get_serialNumber@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L4
	mov	rdi, rax
	call	ASN1_STRING_length@PLT
	lea	r13d, 1[rax+rax]
	movsx	r13, r13d
	mov	rdi, r13
	call	os_malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	rdi, rbp
	call	ASN1_STRING_length@PLT
	mov	rdi, rbp
	mov	r14d, eax
	call	ASN1_STRING_get0_data@PLT
	mov	ecx, r14d
	mov	rsi, r13
	mov	rdi, r12
	mov	edx, eax
	call	wpa_snprintf_hex_uppercase@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L4:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	r12d, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	tls_connection_peer_serial_num, .-tls_connection_peer_serial_num
	.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_tls_openssl.c_tls_connection_peer_serial_num.c"
	.text
	.align	2
	.global	tls_connection_peer_serial_num
	.syntax unified
	.arm
	.fpu softvfp
	.type	tls_connection_peer_serial_num, %function
tls_connection_peer_serial_num:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r0, [r1]
	push	{r4, r5, r6, lr}
	cmp	r0, #0
	beq	.L4
	bl	X509_get_serialNumber
	subs	r6, r0, #0
	beq	.L4
	bl	ASN1_STRING_length
	lsl	r5, r0, #1
	add	r5, r5, #1
	mov	r0, r5
	bl	os_malloc
	subs	r4, r0, #0
	beq	.L1
	mov	r0, r6
	bl	ASN1_STRING_get0_data
	mov	r2, r0
	mov	r0, r6
	mov	r6, r2
	bl	ASN1_STRING_length
	mov	r2, r6
	mov	r3, r0
	mov	r1, r5
	mov	r0, r4
	bl	wpa_snprintf_hex_uppercase
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L4:
	mov	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
	.size	tls_connection_peer_serial_num, .-tls_connection_peer_serial_num
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
