	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_peer_cert_event
_tls_peer_cert_event:                   ## @tls_peer_cert_event
	.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
	subq	$176, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	cmpq	$0, 8(%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	-208(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_os_memset
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	cmpq	$0, (%rax)
	jne	LBB0_5
LBB0_3:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
LBB0_5:
	movl	4(%r14), %esi
	movl	8(%r14), %edi
	callq	_wpabuf_alloc_copy
	movq	%rax, %r12
	movq	%rax, -184(%rbp)
	jmp	LBB0_6
LBB0_4:
	xorl	%r12d, %r12d
LBB0_6:
	movl	%r15d, -204(%rbp)
	leaq	-176(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$128, %edx
	callq	_x509_name_string
	movq	%r15, -200(%rbp)
	movl	(%rbx), %edi
	movq	_TLS_PEER_CERTIFICATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-208(%rbp), %rdx
	callq	*8(%rbx)
	movq	%r12, %rdi
	callq	_wpabuf_free
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$176, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS_PEER_CERTIFICATE,4,2       ## @TLS_PEER_CERTIFICATE
	.no_dead_strip	_tls_peer_cert_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_peer_cert_event
_tls_peer_cert_event:                   ; @tls_peer_cert_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #32
	bl	_os_memset
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_4
LBB0_3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
LBB0_4:
	ldp	w1, w0, [x20, #4]
	bl	_wpabuf_alloc_copy
	mov	x22, x0
	str	x0, [sp, #32]
	b	LBB0_6
LBB0_5:
	mov	x22, #0
LBB0_6:
	str	w21, [sp, #12]
	add	x21, sp, #40
	add	x1, sp, #40
	mov	x0, x20
	mov	w2, #128
	bl	_x509_name_string
	str	x21, [sp, #16]
	ldr	x8, [x19, #8]
	ldr	w0, [x19]
Lloh3:
	adrp	x9, _TLS_PEER_CERTIFICATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TLS_PEER_CERTIFICATE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	add	x2, sp, #8
	blr	x8
	mov	x0, x22
	bl	_wpabuf_free
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS_PEER_CERTIFICATE,4,2       ; @TLS_PEER_CERTIFICATE
	.no_dead_strip	_tls_peer_cert_event
.subsections_via_symbols
