	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_cert_cb_int
_test_cert_cb_int:                      ## @test_cert_cb_int
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movl	%edi, %r14d
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -48(%rbp)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_TLS_server_method
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_TLS_client_method
	movq	_TLS1_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	leaq	-56(%rbp), %r8
	leaq	-64(%rbp), %r9
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r14d, %ecx
	callq	_create_ssl_ctx_pair
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_cert_cb_cnt@GOTPCREL(%rip), %rax
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.2:
	cmpl	$3, %r12d
	jl	LBB0_6
## %bb.3:
	movl	$3, (%rax)
	jmp	LBB0_8
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_22
LBB0_5:
	movl	$-1, (%rax)
	jmp	LBB0_8
LBB0_6:
	movl	$0, (%rax)
	cmpl	$2, %r12d
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_TLS_server_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	movq	%rax, %r14
	jmp	LBB0_9
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movq	-56(%rbp), %rdi
	movq	_cert_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_SSL_CTX_set_cert_cb
	movq	-56(%rbp), %rdi
	movq	-64(%rbp), %rsi
	xorl	%r15d, %r15d
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_create_ssl_objects
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_22
## %bb.10:
	cmpl	$5, %r12d
	je	LBB0_13
## %bb.11:
	cmpl	$4, %r12d
	jne	LBB0_16
## %bb.12:
	movq	-40(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_14
LBB0_13:
	movq	-40(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_14:
	callq	_SSL_set1_sigalgs_list
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_22
## %bb.15:
	movq	-48(%rbp), %rdi
	movq	-40(%rbp), %rsi
	movq	_SSL_ERROR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_create_ssl_connection
	jmp	LBB0_17
LBB0_16:
	movq	-48(%rbp), %rdi
	movq	-40(%rbp), %rsi
	movq	_SSL_ERROR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_create_ssl_connection
	testl	%r12d, %r12d
	jne	LBB0_18
LBB0_17:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, %eax
LBB0_18:
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_22
## %bb.19:
	testl	%r12d, %r12d
	jle	LBB0_21
## %bb.20:
	movq	_cert_cb_cnt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leal	-2(%rdi), %eax
	addl	$-3, %edi
	imull	%eax, %edi
	xorl	%r15d, %r15d
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_22
LBB0_21:
	movl	$1, %r15d
LBB0_22:
	movq	-48(%rbp), %rdi
	callq	_SSL_free
	movq	-40(%rbp), %rdi
	callq	_SSL_free
	movq	-56(%rbp), %rdi
	callq	_SSL_CTX_free
	movq	-64(%rbp), %rdi
	callq	_SSL_CTX_free
	movq	%r14, %rdi
	callq	_SSL_CTX_free
	movl	%r15d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS1_VERSION,4,2               ## @TLS1_VERSION
	.comm	_cert_cb_cnt,4,2                ## @cert_cb_cnt
	.comm	_cert_cb,4,2                    ## @cert_cb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ecdsa_secp256r1_sha256"

L_.str.1:                               ## @.str.1
	.asciz	"rsa_pss_rsae_sha256:rsa_pkcs1_sha256"

	.comm	_SSL_ERROR_NONE,4,2             ## @SSL_ERROR_NONE
	.no_dead_strip	_test_cert_cb_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_cert_cb_int
_test_cert_cb_int:                      ; @test_cert_cb_int
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
	stp	xzr, xzr, [sp]
	bl	_TLS_server_method
	mov	x21, x0
	bl	_TLS_client_method
	mov	x1, x0
Lloh0:
	adrp	x8, _TLS1_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLS1_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x4, sp, #16
	add	x5, sp, #24
	mov	x0, x21
	mov	x3, x19
	mov	x6, #0
	mov	x7, #0
	bl	_create_ssl_ctx_pair
	bl	_TEST_true
	cbz	w0, LBB0_4
; %bb.1:
	cbz	w20, LBB0_5
; %bb.2:
	cmp	w20, #3
	b.lt	LBB0_6
; %bb.3:
	mov	x19, #0
Lloh3:
	adrp	x8, _cert_cb_cnt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cert_cb_cnt@GOTPAGEOFF]
	mov	w9, #3
Lloh5:
	str	w9, [x8]
	b	LBB0_9
LBB0_4:
	mov	w20, #0
	mov	x19, #0
	b	LBB0_23
LBB0_5:
	mov	x19, #0
Lloh6:
	adrp	x8, _cert_cb_cnt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cert_cb_cnt@GOTPAGEOFF]
	mov	w9, #-1
Lloh8:
	str	w9, [x8]
	b	LBB0_9
LBB0_6:
Lloh9:
	adrp	x8, _cert_cb_cnt@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cert_cb_cnt@GOTPAGEOFF]
Lloh11:
	str	wzr, [x8]
	cmp	w20, #2
	b.ne	LBB0_8
; %bb.7:
	bl	_TLS_server_method
	bl	_SSL_CTX_new
	mov	x19, x0
	b	LBB0_9
LBB0_8:
	mov	x19, #0
LBB0_9:
	ldr	x0, [sp, #16]
Lloh12:
	adrp	x8, _cert_cb@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cert_cb@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_SSL_CTX_set_cert_cb
	ldp	x0, x1, [sp, #16]
	mov	x2, sp
	add	x3, sp, #8
	mov	x4, #0
	mov	x5, #0
	bl	_create_ssl_objects
	bl	_TEST_true
	cbz	w0, LBB0_22
; %bb.10:
	cmp	w20, #5
	b.eq	LBB0_13
; %bb.11:
	cmp	w20, #4
	b.ne	LBB0_16
; %bb.12:
	ldr	x0, [sp, #8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_13:
	ldr	x0, [sp, #8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_14:
	bl	_SSL_set1_sigalgs_list
	bl	_TEST_true
	cbz	w0, LBB0_22
; %bb.15:
	ldp	x0, x1, [sp]
Lloh19:
	adrp	x8, _SSL_ERROR_NONE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SSL_ERROR_NONE@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	bl	_create_ssl_connection
	b	LBB0_17
LBB0_16:
	ldp	x0, x1, [sp]
Lloh22:
	adrp	x8, _SSL_ERROR_NONE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SSL_ERROR_NONE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_create_ssl_connection
	cbnz	w20, LBB0_18
LBB0_17:
	cmp	w0, #0
	cset	w0, eq
LBB0_18:
	bl	_TEST_true
	cbz	w0, LBB0_22
; %bb.19:
	cmp	w20, #1
	b.lt	LBB0_21
; %bb.20:
Lloh25:
	adrp	x8, _cert_cb_cnt@GOTPAGE
Lloh26:
	ldr	x8, [x8, _cert_cb_cnt@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	sub	w9, w8, #2
	sub	w8, w8, #3
	mul	w0, w9, w8
	mov	w1, #0
	bl	_TEST_int_eq
	cbz	w0, LBB0_22
LBB0_21:
	mov	w20, #1
	b	LBB0_23
LBB0_22:
	mov	w20, #0
LBB0_23:
	ldr	x0, [sp]
	bl	_SSL_free
	ldr	x0, [sp, #8]
	bl	_SSL_free
	ldr	x0, [sp, #16]
	bl	_SSL_CTX_free
	ldr	x0, [sp, #24]
	bl	_SSL_CTX_free
	mov	x0, x19
	bl	_SSL_CTX_free
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS1_VERSION,4,2               ; @TLS1_VERSION
	.comm	_cert_cb_cnt,4,2                ; @cert_cb_cnt
	.comm	_cert_cb,4,2                    ; @cert_cb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ecdsa_secp256r1_sha256"

l_.str.1:                               ; @.str.1
	.asciz	"rsa_pss_rsae_sha256:rsa_pkcs1_sha256"

	.comm	_SSL_ERROR_NONE,4,2             ; @SSL_ERROR_NONE
	.no_dead_strip	_test_cert_cb_int
.subsections_via_symbols
