	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_shutdown
_test_shutdown:                         ## @test_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	%r12
	pushq	%rbx
	subq	$160, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	$0, -176(%rbp)
	movq	$0, -184(%rbp)
	movq	$0, -160(%rbp)
	movq	$0, -152(%rbp)
	movabsq	$28542640894207341, %rax        ## imm = 0x6567617373656D
	movq	%rax, -49(%rbp)
	movabsq	$7863412988361056321, %rax      ## imm = 0x6D20747365742041
	movq	%rax, -56(%rbp)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_TLS_server_method
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_TLS_client_method
	movq	_TLS1_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	$2, %r14d
	jge	LBB0_2
## %bb.1:
	movq	_TLS1_2_VERSION@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_TLS1_3_VERSION@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movq	_cert@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	movq	_privkey@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	leaq	-184(%rbp), %r8
	leaq	-176(%rbp), %r9
	movl	%r12d, %edi
	movl	%eax, %esi
	pushq	%rbx
	pushq	%r10
	callq	_create_ssl_ctx_pair
	addq	$16, %rsp
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_62
## %bb.4:
	cmpl	$5, %r14d
	jne	LBB0_6
## %bb.5:
	movq	-176(%rbp), %rdi
	movl	$1, %esi
	callq	_SSL_CTX_set_post_handshake_auth
LBB0_6:
	movq	-184(%rbp), %rdi
	movq	-176(%rbp), %rsi
	xorl	%r15d, %r15d
	leaq	-152(%rbp), %rdx
	leaq	-160(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_create_ssl_objects
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_62
## %bb.7:
	movq	-152(%rbp), %rdi
	movq	-160(%rbp), %rsi
	movq	_SSL_ERROR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	$3, %r14d
	jne	LBB0_11
## %bb.8:
	movl	$1, %ecx
	callq	_create_bare_ssl_connection
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_62
## %bb.9:
	movq	-160(%rbp), %rdi
	callq	_SSL_get_session
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_TEST_ptr_ne
	testl	%eax, %eax
	je	LBB0_62
## %bb.10:
	movq	%rbx, %rdi
	callq	_SSL_SESSION_is_resumable
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_62
LBB0_11:
	callq	_create_ssl_connection
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_62
## %bb.12:
	movq	-160(%rbp), %rdi
	callq	_SSL_get_session
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_TEST_ptr_ne
	testl	%eax, %eax
	je	LBB0_62
## %bb.13:
	movq	%rbx, %rdi
	callq	_SSL_SESSION_is_resumable
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_62
LBB0_14:
	movq	-160(%rbp), %rdi
	callq	_SSL_shutdown
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_61
## %bb.15:
	cmpl	$4, %r14d
	jl	LBB0_41
## %bb.16:
	movq	-152(%rbp), %rdi
	leaq	-144(%rbp), %rsi
	leaq	-168(%rbp), %rcx
	movl	$80, %edx
	callq	_SSL_read_ex
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_61
## %bb.17:
	movq	-152(%rbp), %rdi
	xorl	%esi, %esi
	callq	_SSL_get_error
	movq	_SSL_ERROR_ZERO_RETURN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_61
## %bb.18:
	movq	-152(%rbp), %rdi
	callq	_SSL_get_shutdown
	movq	_SSL_RECEIVED_SHUTDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_61
## %bb.19:
	movq	-152(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	movl	$15, %edx
	callq	_SSL_write
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_61
## %bb.20:
	cmpl	$4, %r14d
	jne	LBB0_22
## %bb.21:
	movq	-152(%rbp), %rdi
	movq	_SSL_KEY_UPDATE_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSL_key_update
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_61
LBB0_22:
	cmpl	$5, %r14d
	jne	LBB0_29
## %bb.23:
	movq	-152(%rbp), %rdi
	movq	_SSL_VERIFY_PEER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	callq	_SSL_set_verify
	movq	-152(%rbp), %rdi
	callq	_SSL_verify_client_post_handshake
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	jne	LBB0_30
	jmp	LBB0_62
LBB0_29:
	movl	%r14d, %eax
	andl	$-2, %eax
	cmpl	$4, %eax
	jne	LBB0_32
LBB0_30:
	movq	-152(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	movl	$15, %edx
	callq	_SSL_write
	movl	%eax, %edi
	callq	_TEST_true
	movb	$1, %bl
	testl	%eax, %eax
	jne	LBB0_33
	jmp	LBB0_61
LBB0_32:
	xorl	%ebx, %ebx
LBB0_33:
	movq	-152(%rbp), %rdi
	callq	_SSL_shutdown
	movl	%eax, %edi
	movl	$1, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_61
## %bb.34:
	testb	%bl, %bl
	je	LBB0_41
## %bb.35:
	movq	-160(%rbp), %rdi
	leaq	-144(%rbp), %rsi
	leaq	-168(%rbp), %rcx
	movl	$80, %edx
	callq	_SSL_read_ex
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_61
## %bb.36:
	movq	-168(%rbp), %rdi
	movl	$15, %esi
	callq	_TEST_size_t_eq
	movl	$0, %r15d
	testl	%eax, %eax
	je	LBB0_62
## %bb.37:
	movq	-168(%rbp), %rdx
	leaq	-56(%rbp), %rdi
	leaq	-144(%rbp), %rsi
	callq	_memcmp
	xorl	%r15d, %r15d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_62
## %bb.38:
	movq	-160(%rbp), %rdi
	leaq	-144(%rbp), %rsi
	leaq	-168(%rbp), %rcx
	movl	$80, %edx
	callq	_SSL_read_ex
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_62
## %bb.39:
	movq	-168(%rbp), %rdi
	movl	$15, %esi
	callq	_TEST_size_t_eq
	testl	%eax, %eax
	je	LBB0_62
## %bb.40:
	movq	-168(%rbp), %rdx
	leaq	-56(%rbp), %rdi
	leaq	-144(%rbp), %rsi
	callq	_memcmp
	xorl	%r15d, %r15d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_62
LBB0_41:
	movq	-160(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-192(%rbp), %rcx
	movl	$15, %edx
	callq	_SSL_write_ex
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_61
## %bb.42:
	cmpl	$3, %r14d
	jg	LBB0_50
## %bb.43:
	movq	-152(%rbp), %rdi
	callq	_SSL_shutdown
	xorl	%r15d, %r15d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_62
## %bb.44:
	movq	-152(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-192(%rbp), %rcx
	movl	$15, %edx
	callq	_SSL_write_ex
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_62
## %bb.45:
	movq	-160(%rbp), %rdi
	callq	_SSL_shutdown
	movl	%eax, %edi
	movl	$1, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_62
## %bb.46:
	movq	-160(%rbp), %rdi
	callq	_SSL_get_session
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_TEST_ptr_ne
	testl	%eax, %eax
	je	LBB0_62
## %bb.47:
	movq	%rbx, %rdi
	callq	_SSL_SESSION_is_resumable
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_62
## %bb.48:
	movq	-152(%rbp), %rdi
	callq	_SSL_shutdown
	movl	%eax, %edi
	movl	$1, %esi
	callq	_TEST_int_eq
	jmp	LBB0_56
LBB0_50:
	andl	$-2, %r14d
	movq	-160(%rbp), %rdi
	callq	_SSL_shutdown
	movl	%eax, %edi
	cmpl	$4, %r14d
	jne	LBB0_54
## %bb.51:
	movl	$1, %esi
	callq	_TEST_int_eq
	movl	$0, %r15d
	testl	%eax, %eax
	je	LBB0_62
## %bb.52:
	movq	-160(%rbp), %rdi
	callq	_SSL_get_session
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_TEST_ptr_ne
	testl	%eax, %eax
	je	LBB0_62
## %bb.53:
	movq	%rbx, %rdi
	callq	_SSL_SESSION_is_resumable
	movl	%eax, %edi
	callq	_TEST_true
	jmp	LBB0_56
LBB0_54:
	movl	$-1, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_61
## %bb.55:
	movq	-160(%rbp), %rdi
	movl	$-1, %esi
	callq	_SSL_get_error
	movq	_SSL_ERROR_SSL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_TEST_int_eq
	movl	$0, %r15d
LBB0_56:
	testl	%eax, %eax
	je	LBB0_62
## %bb.57:
	movl	$1, %r15d
	jmp	LBB0_62
LBB0_61:
	xorl	%r15d, %r15d
LBB0_62:
	movq	-152(%rbp), %rdi
	callq	_SSL_free
	movq	-160(%rbp), %rdi
	callq	_SSL_free
	movq	-184(%rbp), %rdi
	callq	_SSL_CTX_free
	movq	-176(%rbp), %rdi
	callq	_SSL_CTX_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_64
## %bb.63:
	movl	%r15d, %eax
	addq	$160, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_64:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L___const.test_shutdown.msg:            ## @__const.test_shutdown.msg
	.asciz	"A test message"

	.comm	_TLS1_VERSION,4,2               ## @TLS1_VERSION
	.comm	_TLS1_2_VERSION,4,2             ## @TLS1_2_VERSION
	.comm	_TLS1_3_VERSION,4,2             ## @TLS1_3_VERSION
	.comm	_cert,4,2                       ## @cert
	.comm	_privkey,4,2                    ## @privkey
	.comm	_SSL_ERROR_NONE,4,2             ## @SSL_ERROR_NONE
	.comm	_SSL_ERROR_ZERO_RETURN,4,2      ## @SSL_ERROR_ZERO_RETURN
	.comm	_SSL_RECEIVED_SHUTDOWN,4,2      ## @SSL_RECEIVED_SHUTDOWN
	.comm	_SSL_KEY_UPDATE_REQUESTED,4,2   ## @SSL_KEY_UPDATE_REQUESTED
	.comm	_SSL_VERIFY_PEER,4,2            ## @SSL_VERIFY_PEER
	.comm	_SSL_ERROR_SSL,4,2              ## @SSL_ERROR_SSL
	.no_dead_strip	_test_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_shutdown
_test_shutdown:                         ; @test_shutdown
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	stp	xzr, xzr, [sp, #40]
	stp	xzr, xzr, [sp, #24]
Lloh3:
	adrp	x8, l___const.test_shutdown.msg@PAGE
Lloh4:
	add	x8, x8, l___const.test_shutdown.msg@PAGEOFF
	ldr	x9, [x8]
	stur	x9, [x29, #-40]
	ldur	x8, [x8, #7]
	stur	x8, [x29, #-33]
	bl	_TLS_server_method
	mov	x20, x0
	bl	_TLS_client_method
	mov	x1, x0
Lloh5:
	adrp	x8, _TLS1_VERSION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TLS1_VERSION@GOTPAGEOFF]
Lloh7:
	adrp	x9, _TLS1_2_VERSION@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TLS1_2_VERSION@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _TLS1_3_VERSION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TLS1_3_VERSION@GOTPAGEOFF]
	cmp	w19, #2
	csel	x8, x9, x8, lt
	ldr	w3, [x8]
Lloh12:
	adrp	x8, _cert@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cert@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
Lloh15:
	adrp	x8, _privkey@GOTPAGE
Lloh16:
	ldr	x8, [x8, _privkey@GOTPAGEOFF]
Lloh17:
	ldr	w7, [x8]
	add	x4, sp, #40
	add	x5, sp, #48
	mov	x0, x20
	bl	_create_ssl_ctx_pair
	bl	_TEST_true
	cbz	w0, LBB0_48
; %bb.1:
	cmp	w19, #5
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [sp, #48]
	mov	w1, #1
	bl	_SSL_CTX_set_post_handshake_auth
LBB0_3:
	ldp	x0, x1, [sp, #40]
	add	x2, sp, #24
	add	x3, sp, #32
	mov	x4, #0
	mov	x5, #0
	bl	_create_ssl_objects
	bl	_TEST_true
	cbz	w0, LBB0_48
; %bb.4:
	ldp	x0, x1, [sp, #24]
Lloh18:
	adrp	x8, _SSL_ERROR_NONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSL_ERROR_NONE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	cmp	w19, #3
	b.ne	LBB0_8
; %bb.5:
	mov	w3, #1
	bl	_create_bare_ssl_connection
	bl	_TEST_true
	cbz	w0, LBB0_48
; %bb.6:
	ldr	x0, [sp, #32]
	bl	_SSL_get_session
	mov	x20, x0
	mov	x1, #0
	bl	_TEST_ptr_ne
	cbz	w0, LBB0_48
; %bb.7:
	mov	x0, x20
	bl	_SSL_SESSION_is_resumable
	bl	_TEST_false
	cbnz	w0, LBB0_11
	b	LBB0_48
LBB0_8:
	bl	_create_ssl_connection
	bl	_TEST_true
	cbz	w0, LBB0_48
; %bb.9:
	ldr	x0, [sp, #32]
	bl	_SSL_get_session
	mov	x20, x0
	mov	x1, #0
	bl	_TEST_ptr_ne
	cbz	w0, LBB0_48
; %bb.10:
	mov	x0, x20
	bl	_SSL_SESSION_is_resumable
	bl	_TEST_true
	cbz	w0, LBB0_48
LBB0_11:
	ldr	x0, [sp, #32]
	bl	_SSL_shutdown
	mov	w1, #0
	bl	_TEST_int_eq
	cbz	w0, LBB0_48
; %bb.12:
	cmp	w19, #4
	b.lt	LBB0_33
; %bb.13:
	ldr	x0, [sp, #24]
	add	x1, sp, #56
	add	x3, sp, #8
	mov	w2, #80
	bl	_SSL_read_ex
	bl	_TEST_false
	cbz	w0, LBB0_48
; %bb.14:
	ldr	x0, [sp, #24]
	mov	w1, #0
	bl	_SSL_get_error
Lloh21:
	adrp	x8, _SSL_ERROR_ZERO_RETURN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SSL_ERROR_ZERO_RETURN@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_TEST_int_eq
	cbz	w0, LBB0_48
; %bb.15:
	ldr	x0, [sp, #24]
	bl	_SSL_get_shutdown
Lloh24:
	adrp	x8, _SSL_RECEIVED_SHUTDOWN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SSL_RECEIVED_SHUTDOWN@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_TEST_int_eq
	cbz	w0, LBB0_48
; %bb.16:
	ldr	x0, [sp, #24]
	sub	x1, x29, #40
	mov	w2, #15
	bl	_SSL_write
	bl	_TEST_true
	cbz	w0, LBB0_48
; %bb.17:
	cmp	w19, #4
	b.ne	LBB0_19
; %bb.18:
	ldr	x0, [sp, #24]
Lloh27:
	adrp	x8, _SSL_KEY_UPDATE_REQUESTED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SSL_KEY_UPDATE_REQUESTED@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_SSL_key_update
	bl	_TEST_true
	cbz	w0, LBB0_48
LBB0_19:
	cmp	w19, #5
	b.ne	LBB0_21
; %bb.20:
	ldr	x0, [sp, #24]
Lloh30:
	adrp	x8, _SSL_VERIFY_PEER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SSL_VERIFY_PEER@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_SSL_set_verify
	ldr	x0, [sp, #24]
	bl	_SSL_verify_client_post_handshake
	bl	_TEST_true
	cbnz	w0, LBB0_22
	b	LBB0_48
LBB0_21:
	and	w8, w19, #0xfffffffe
	cmp	w8, #4
	b.ne	LBB0_24
LBB0_22:
	ldr	x0, [sp, #24]
	sub	x1, x29, #40
	mov	w2, #15
	bl	_SSL_write
	bl	_TEST_true
	cbz	w0, LBB0_48
; %bb.23:
	mov	w20, #1
	b	LBB0_25
LBB0_24:
	mov	w20, #0
LBB0_25:
	ldr	x0, [sp, #24]
	bl	_SSL_shutdown
	mov	w1, #1
	bl	_TEST_int_eq
	cbz	w0, LBB0_48
; %bb.26:
	cbz	w20, LBB0_33
; %bb.27:
	ldr	x0, [sp, #32]
	add	x1, sp, #56
	add	x3, sp, #8
	mov	w2, #80
	bl	_SSL_read_ex
	bl	_TEST_true
	cbz	w0, LBB0_48
; %bb.28:
	ldr	x0, [sp, #8]
	mov	w1, #15
	bl	_TEST_size_t_eq
	cbz	w0, LBB0_48
; %bb.29:
	ldr	x2, [sp, #8]
	sub	x0, x29, #40
	add	x1, sp, #56
	bl	_memcmp
	mov	w1, #0
	bl	_TEST_int_eq
	cbz	w0, LBB0_48
; %bb.30:
	ldr	x0, [sp, #32]
	add	x1, sp, #56
	add	x3, sp, #8
	mov	w2, #80
	bl	_SSL_read_ex
	bl	_TEST_true
	cbz	w0, LBB0_48
; %bb.31:
	ldr	x0, [sp, #8]
	mov	w1, #15
	bl	_TEST_size_t_eq
	cbz	w0, LBB0_48
; %bb.32:
	ldr	x2, [sp, #8]
	sub	x0, x29, #40
	add	x1, sp, #56
	bl	_memcmp
	mov	w1, #0
	bl	_TEST_int_eq
	cbz	w0, LBB0_48
LBB0_33:
	ldr	x0, [sp, #32]
	sub	x1, x29, #40
	add	x3, sp, #16
	mov	w2, #15
	bl	_SSL_write_ex
	bl	_TEST_false
	cbz	w0, LBB0_48
; %bb.34:
	cmp	w19, #3
	b.gt	LBB0_41
; %bb.35:
	ldr	x0, [sp, #24]
	bl	_SSL_shutdown
	mov	w1, #0
	bl	_TEST_int_eq
	cbz	w0, LBB0_48
; %bb.36:
	ldr	x0, [sp, #24]
	sub	x1, x29, #40
	add	x3, sp, #16
	mov	w2, #15
	bl	_SSL_write_ex
	bl	_TEST_false
	cbz	w0, LBB0_48
; %bb.37:
	ldr	x0, [sp, #32]
	bl	_SSL_shutdown
	mov	w1, #1
	bl	_TEST_int_eq
	cbz	w0, LBB0_48
; %bb.38:
	ldr	x0, [sp, #32]
	bl	_SSL_get_session
	mov	x19, x0
	mov	x1, #0
	bl	_TEST_ptr_ne
	cbz	w0, LBB0_48
; %bb.39:
	mov	x0, x19
	bl	_SSL_SESSION_is_resumable
	bl	_TEST_true
	cbz	w0, LBB0_48
; %bb.40:
	ldr	x0, [sp, #24]
	bl	_SSL_shutdown
	mov	w1, #1
	bl	_TEST_int_eq
	cbnz	w0, LBB0_47
	b	LBB0_48
LBB0_41:
	and	w19, w19, #0xfffffffe
	ldr	x0, [sp, #32]
	bl	_SSL_shutdown
	cmp	w19, #4
	b.ne	LBB0_45
; %bb.42:
	mov	w1, #1
	bl	_TEST_int_eq
	cbz	w0, LBB0_48
; %bb.43:
	ldr	x0, [sp, #32]
	bl	_SSL_get_session
	mov	x19, x0
	mov	x1, #0
	bl	_TEST_ptr_ne
	cbz	w0, LBB0_48
; %bb.44:
	mov	x0, x19
	bl	_SSL_SESSION_is_resumable
	bl	_TEST_true
	cbnz	w0, LBB0_47
	b	LBB0_48
LBB0_45:
	mov	w1, #-1
	bl	_TEST_int_eq
	cbz	w0, LBB0_48
; %bb.46:
	ldr	x0, [sp, #32]
	mov	w1, #-1
	bl	_SSL_get_error
Lloh33:
	adrp	x8, _SSL_ERROR_SSL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SSL_ERROR_SSL@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_TEST_int_eq
	cbz	w0, LBB0_48
LBB0_47:
	mov	w19, #1
	b	LBB0_49
LBB0_48:
	mov	w19, #0
LBB0_49:
	ldr	x0, [sp, #24]
	bl	_SSL_free
	ldr	x0, [sp, #32]
	bl	_SSL_free
	ldr	x0, [sp, #40]
	bl	_SSL_CTX_free
	ldr	x0, [sp, #48]
	bl	_SSL_CTX_free
	ldur	x8, [x29, #-24]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_51
; %bb.50:
	mov	x0, x19
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_51:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.test_shutdown.msg:            ; @__const.test_shutdown.msg
	.asciz	"A test message"

	.comm	_TLS1_VERSION,4,2               ; @TLS1_VERSION
	.comm	_TLS1_2_VERSION,4,2             ; @TLS1_2_VERSION
	.comm	_TLS1_3_VERSION,4,2             ; @TLS1_3_VERSION
	.comm	_cert,4,2                       ; @cert
	.comm	_privkey,4,2                    ; @privkey
	.comm	_SSL_ERROR_NONE,4,2             ; @SSL_ERROR_NONE
	.comm	_SSL_ERROR_ZERO_RETURN,4,2      ; @SSL_ERROR_ZERO_RETURN
	.comm	_SSL_RECEIVED_SHUTDOWN,4,2      ; @SSL_RECEIVED_SHUTDOWN
	.comm	_SSL_KEY_UPDATE_REQUESTED,4,2   ; @SSL_KEY_UPDATE_REQUESTED
	.comm	_SSL_VERIFY_PEER,4,2            ; @SSL_VERIFY_PEER
	.comm	_SSL_ERROR_SSL,4,2              ; @SSL_ERROR_SSL
	.no_dead_strip	_test_shutdown
.subsections_via_symbols
