	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_connection_peer_serial_num ## -- Begin function tls_connection_peer_serial_num
	.p2align	4, 0x90
_tls_connection_peer_serial_num:        ## @tls_connection_peer_serial_num
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.1:
	callq	_X509_get_serialNumber
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ASN1_STRING_length
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	incl	%eax
	movslq	%eax, %r15
	movq	%r15, %rdi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_ASN1_STRING_get0_data
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_ASN1_STRING_length
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_wpa_snprintf_hex_uppercase
	jmp	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_connection_peer_serial_num ; -- Begin function tls_connection_peer_serial_num
	.p2align	2
_tls_connection_peer_serial_num:        ; @tls_connection_peer_serial_num
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w0, [x1]
	cbz	w0, LBB0_4
; %bb.1:
	bl	_X509_get_serialNumber
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	bl	_ASN1_STRING_length
	mov	w8, #1
	bfi	w8, w0, #1, #31
	sxtw	x21, w8
	mov	x0, x21
	bl	_os_malloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_ASN1_STRING_get0_data
	mov	x22, x0
	mov	x0, x20
	bl	_ASN1_STRING_length
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_wpa_snprintf_hex_uppercase
	b	LBB0_5
LBB0_4:
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
