	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_ssl_pending
_test_ssl_pending:                      ## @test_ssl_pending
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	movabsq	$28542640894207341, %rax        ## imm = 0x6567617373656D
	movq	%rax, -41(%rbp)
	movabsq	$7863412988361056321, %rax      ## imm = 0x6D20747365742041
	movq	%rax, -48(%rbp)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	callq	_DTLS_server_method
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_DTLS_client_method
	movq	_DTLS1_VERSION@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	callq	_TLS_server_method
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_TLS_client_method
	movq	_TLS1_VERSION@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %edx
	movq	_cert@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_privkey@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	-72(%rbp), %r8
	leaq	-80(%rbp), %r9
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	pushq	%rbx
	pushq	%r10
	callq	_create_ssl_ctx_pair
	addq	$16, %rsp
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_16
## %bb.4:
	movq	-72(%rbp), %rdi
	movq	-80(%rbp), %rsi
	xorl	%r14d, %r14d
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_create_ssl_objects
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_16
## %bb.5:
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rsi
	movq	_SSL_ERROR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_create_ssl_connection
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_16
## %bb.6:
	movq	-56(%rbp), %rdi
	callq	_SSL_pending
	xorl	%r14d, %r14d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_16
## %bb.7:
	movq	-56(%rbp), %rdi
	callq	_SSL_has_pending
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_16
## %bb.8:
	movq	-64(%rbp), %rdi
	callq	_SSL_pending
	xorl	%r14d, %r14d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_16
## %bb.9:
	movq	-64(%rbp), %rdi
	callq	_SSL_has_pending
	movl	%eax, %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	movq	-64(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	leaq	-96(%rbp), %rcx
	movl	$15, %edx
	callq	_SSL_write_ex
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:
	movq	-96(%rbp), %rdi
	movl	$15, %esi
	callq	_TEST_size_t_eq
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:
	movq	-56(%rbp), %rdi
	leaq	-101(%rbp), %rsi
	leaq	-88(%rbp), %rcx
	movl	$5, %edx
	callq	_SSL_read_ex
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:
	movq	-88(%rbp), %rdi
	movl	$5, %esi
	callq	_TEST_size_t_eq
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movq	-56(%rbp), %rdi
	callq	_SSL_pending
	movl	-96(%rbp), %esi
	subl	-88(%rbp), %esi
	movl	%eax, %edi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movq	-56(%rbp), %rdi
	callq	_SSL_has_pending
	movl	%eax, %edi
	callq	_TEST_true
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%r14b
LBB0_16:
	movq	-64(%rbp), %rdi
	callq	_SSL_free
	movq	-56(%rbp), %rdi
	callq	_SSL_free
	movq	-72(%rbp), %rdi
	callq	_SSL_CTX_free
	movq	-80(%rbp), %rdi
	callq	_SSL_CTX_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L___const.test_ssl_pending.msg:         ## @__const.test_ssl_pending.msg
	.asciz	"A test message"

	.comm	_TLS1_VERSION,4,2               ## @TLS1_VERSION
	.comm	_cert,4,2                       ## @cert
	.comm	_privkey,4,2                    ## @privkey
	.comm	_DTLS1_VERSION,4,2              ## @DTLS1_VERSION
	.comm	_SSL_ERROR_NONE,4,2             ## @SSL_ERROR_NONE
	.no_dead_strip	_test_ssl_pending
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_ssl_pending
_test_ssl_pending:                      ; @test_ssl_pending
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
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_ssl_pending.msg@PAGE
Lloh4:
	add	x8, x8, l___const.test_ssl_pending.msg@PAGEOFF
	ldr	x9, [x8]
	stur	x9, [x29, #-40]
	ldur	x8, [x8, #7]
	stur	x8, [x29, #-33]
	cbz	w0, LBB0_2
; %bb.1:
	bl	_DTLS_server_method
	mov	x19, x0
	bl	_DTLS_client_method
	mov	x1, x0
Lloh5:
	adrp	x8, _DTLS1_VERSION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DTLS1_VERSION@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	bl	_TLS_server_method
	mov	x19, x0
	bl	_TLS_client_method
	mov	x1, x0
Lloh7:
	adrp	x8, _TLS1_VERSION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TLS1_VERSION@GOTPAGEOFF]
LBB0_3:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _cert@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cert@GOTPAGEOFF]
Lloh11:
	ldr	w6, [x8]
Lloh12:
	adrp	x8, _privkey@GOTPAGE
Lloh13:
	ldr	x8, [x8, _privkey@GOTPAGEOFF]
Lloh14:
	ldr	w7, [x8]
	add	x4, sp, #40
	add	x5, sp, #48
	mov	x0, x19
	mov	w3, #0
	bl	_create_ssl_ctx_pair
	bl	_TEST_true
	cbz	w0, LBB0_16
; %bb.4:
	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_16
; %bb.5:
	ldp	x0, x1, [sp, #24]
Lloh15:
	adrp	x8, _SSL_ERROR_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSL_ERROR_NONE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_create_ssl_connection
	bl	_TEST_true
	cbz	w0, LBB0_16
; %bb.6:
	ldr	x0, [sp, #32]
	bl	_SSL_pending
	mov	w1, #0
	bl	_TEST_int_eq
	cbz	w0, LBB0_16
; %bb.7:
	ldr	x0, [sp, #32]
	bl	_SSL_has_pending
	bl	_TEST_false
	cbz	w0, LBB0_16
; %bb.8:
	ldr	x0, [sp, #24]
	bl	_SSL_pending
	mov	w1, #0
	bl	_TEST_int_eq
	cbz	w0, LBB0_16
; %bb.9:
	ldr	x0, [sp, #24]
	bl	_SSL_has_pending
	bl	_TEST_false
	cbz	w0, LBB0_16
; %bb.10:
	ldr	x0, [sp, #24]
	sub	x1, x29, #40
	add	x3, sp, #8
	mov	w2, #15
	bl	_SSL_write_ex
	bl	_TEST_true
	cbz	w0, LBB0_16
; %bb.11:
	ldr	x0, [sp, #8]
	mov	w1, #15
	bl	_TEST_size_t_eq
	cbz	w0, LBB0_16
; %bb.12:
	ldr	x0, [sp, #32]
	add	x1, sp, #19
	mov	x3, sp
	mov	w2, #5
	bl	_SSL_read_ex
	bl	_TEST_true
	cbz	w0, LBB0_16
; %bb.13:
	ldr	x0, [sp]
	mov	w1, #5
	bl	_TEST_size_t_eq
	cbz	w0, LBB0_16
; %bb.14:
	ldr	x0, [sp, #32]
	bl	_SSL_pending
	ldr	w8, [sp, #8]
	ldr	w9, [sp]
	sub	w1, w8, w9
	bl	_TEST_int_eq
	cbz	w0, LBB0_16
; %bb.15:
	ldr	x0, [sp, #32]
	bl	_SSL_has_pending
	bl	_TEST_true
	cmp	w0, #0
	cset	w19, ne
	b	LBB0_17
LBB0_16:
	mov	w19, #0
LBB0_17:
	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]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.test_ssl_pending.msg:         ; @__const.test_ssl_pending.msg
	.asciz	"A test message"

	.comm	_TLS1_VERSION,4,2               ; @TLS1_VERSION
	.comm	_cert,4,2                       ; @cert
	.comm	_privkey,4,2                    ; @privkey
	.comm	_DTLS1_VERSION,4,2              ; @DTLS1_VERSION
	.comm	_SSL_ERROR_NONE,4,2             ; @SSL_ERROR_NONE
	.no_dead_strip	_test_ssl_pending
.subsections_via_symbols
