	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_connection_shutdown        ## -- Begin function tls_connection_shutdown
	.p2align	4, 0x90
_tls_connection_shutdown:               ## @tls_connection_shutdown
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r15d
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %edi
	movq	_GNUTLS_SHUT_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_gnutls_bye
	movq	24(%rbx), %rdi
	callq	_wpabuf_free
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movl	(%rbx), %edi
	callq	_gnutls_deinit
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_tls_gnutls_init_session
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_9
LBB0_3:
	movl	(%rbx), %edi
	movq	_GNUTLS_CRD_CERTIFICATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	4(%rbx), %rax
	cmpq	$0, 8(%rbx)
	leaq	16(%r14), %rcx
	cmoveq	%rcx, %rax
	movl	(%rax), %edx
	callq	_gnutls_credentials_set
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	8(%r14), %rsi
	xorl	%r15d, %r15d
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.6:
	movl	(%rbx), %edi
	movl	(%r14), %edx
	callq	_gnutls_session_set_data
	testl	%eax, %eax
	jns	LBB0_10
## %bb.7:
	movq	_MSG_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_gnutls_strerror
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_4:
	movq	_MSG_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_gnutls_strerror
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_9:
	movl	$-1, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GNUTLS_SHUT_RDWR,4,2           ## @GNUTLS_SHUT_RDWR
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GnuTLS: Failed to preparare new session for session resumption use"

	.comm	_GNUTLS_CRD_CERTIFICATE,4,2     ## @GNUTLS_CRD_CERTIFICATE
L_.str.1:                               ## @.str.1
	.asciz	"GnuTLS: Failed to configure credentials for session resumption: %s"

L_.str.2:                               ## @.str.2
	.asciz	"GnuTLS: Failed to set session data: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_connection_shutdown        ; -- Begin function tls_connection_shutdown
	.p2align	2
_tls_connection_shutdown:               ; @tls_connection_shutdown
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x1, LBB0_11
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1]
Lloh0:
	adrp	x8, _GNUTLS_SHUT_RDWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GNUTLS_SHUT_RDWR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_gnutls_bye
	ldr	x0, [x20, #24]
	bl	_wpabuf_free
	stp	xzr, xzr, [x20, #16]
	ldr	w0, [x20]
	bl	_gnutls_deinit
	mov	x0, x19
	mov	x1, x20
	bl	_tls_gnutls_init_session
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_3:
	ldr	w0, [x20]
Lloh8:
	adrp	x8, _GNUTLS_CRD_CERTIFICATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GNUTLS_CRD_CERTIFICATE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x8, [x20, #8]
	add	x9, x20, #4
	add	x10, x19, #16
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w2, [x8]
	bl	_gnutls_credentials_set
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_6
; %bb.5:
	ldr	w0, [x20]
	ldr	w2, [x19]
	bl	_gnutls_session_set_data
	tbnz	w0, #31, LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_12
LBB0_7:
Lloh11:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
	bl	_gnutls_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh18:
	ldr	w19, [x8]
	bl	_gnutls_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x19
LBB0_10:
	bl	_wpa_printf
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GNUTLS_SHUT_RDWR,4,2           ; @GNUTLS_SHUT_RDWR
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GnuTLS: Failed to preparare new session for session resumption use"

	.comm	_GNUTLS_CRD_CERTIFICATE,4,2     ; @GNUTLS_CRD_CERTIFICATE
l_.str.1:                               ; @.str.1
	.asciz	"GnuTLS: Failed to configure credentials for session resumption: %s"

l_.str.2:                               ; @.str.2
	.asciz	"GnuTLS: Failed to set session data: %s"

.subsections_via_symbols
