	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_client_cert_cb
_test_client_cert_cb:                   ## @test_client_cert_cb
	.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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_TLS_server_method
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_TLS_client_method
	movq	_TLS1_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%ebx, %ebx
	jne	LBB0_1
## %bb.2:
	movq	_TLS1_2_VERSION@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	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	-32(%rbp), %r8
	leaq	-40(%rbp), %r9
	movl	%r15d, %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_6
## %bb.4:
	movq	-40(%rbp), %rdi
	movq	_client_cert_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSL_CTX_set_client_cert_cb
	movq	-32(%rbp), %rdi
	movq	_SSL_VERIFY_PEER@GOTPCREL(%rip), %rax
	movq	_SSL_VERIFY_FAIL_IF_NO_PEER_CERT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_verify_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_SSL_CTX_set_verify
	movq	-32(%rbp), %rdi
	movq	-40(%rbp), %rsi
	xorl	%r14d, %r14d
	leaq	-48(%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_6
## %bb.5:
	movq	-48(%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
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%r14b
LBB0_6:
	movq	-48(%rbp), %rdi
	callq	_SSL_free
	movq	-56(%rbp), %rdi
	callq	_SSL_free
	movq	-32(%rbp), %rdi
	callq	_SSL_CTX_free
	movq	-40(%rbp), %rdi
	callq	_SSL_CTX_free
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_client_cert_cb,4,2             ## @client_cert_cb
	.comm	_SSL_VERIFY_PEER,4,2            ## @SSL_VERIFY_PEER
	.comm	_SSL_VERIFY_FAIL_IF_NO_PEER_CERT,4,2 ## @SSL_VERIFY_FAIL_IF_NO_PEER_CERT
	.comm	_verify_cb,4,2                  ## @verify_cb
	.comm	_SSL_ERROR_NONE,4,2             ## @SSL_ERROR_NONE
	.no_dead_strip	_test_client_cert_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_client_cert_cb
_test_client_cert_cb:                   ; @test_client_cert_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
	stp	xzr, xzr, [sp]
	bl	_TLS_server_method
	mov	x20, x0
	bl	_TLS_client_method
	mov	x1, x0
Lloh0:
	adrp	x8, _TLS1_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLS1_VERSION@GOTPAGEOFF]
Lloh2:
	adrp	x9, _TLS1_2_VERSION@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TLS1_2_VERSION@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _TLS1_3_VERSION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TLS1_3_VERSION@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x9, x8, eq
	ldr	w3, [x8]
Lloh7:
	adrp	x8, _cert@GOTPAGE
Lloh8:
	ldr	x8, [x8, _cert@GOTPAGEOFF]
Lloh9:
	ldr	w6, [x8]
Lloh10:
	adrp	x8, _privkey@GOTPAGE
Lloh11:
	ldr	x8, [x8, _privkey@GOTPAGEOFF]
Lloh12:
	ldr	w7, [x8]
	add	x4, sp, #16
	add	x5, sp, #24
	mov	x0, x20
	bl	_create_ssl_ctx_pair
	bl	_TEST_true
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x0, [sp, #24]
Lloh13:
	adrp	x8, _client_cert_cb@GOTPAGE
Lloh14:
	ldr	x8, [x8, _client_cert_cb@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_SSL_CTX_set_client_cert_cb
	ldr	x0, [sp, #16]
Lloh16:
	adrp	x8, _SSL_VERIFY_PEER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SSL_VERIFY_PEER@GOTPAGEOFF]
Lloh18:
	adrp	x9, _SSL_VERIFY_FAIL_IF_NO_PEER_CERT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SSL_VERIFY_FAIL_IF_NO_PEER_CERT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh22:
	adrp	x8, _verify_cb@GOTPAGE
Lloh23:
	ldr	x8, [x8, _verify_cb@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_SSL_CTX_set_verify
	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_3
; %bb.2:
	ldp	x0, x1, [sp]
Lloh25:
	adrp	x8, _SSL_ERROR_NONE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SSL_ERROR_NONE@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	bl	_create_ssl_connection
	bl	_TEST_true
	cmp	w0, #0
	cset	w19, ne
	b	LBB0_4
LBB0_3:
	mov	w19, #0
LBB0_4:
	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
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.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	_client_cert_cb,4,2             ; @client_cert_cb
	.comm	_SSL_VERIFY_PEER,4,2            ; @SSL_VERIFY_PEER
	.comm	_SSL_VERIFY_FAIL_IF_NO_PEER_CERT,4,2 ; @SSL_VERIFY_FAIL_IF_NO_PEER_CERT
	.comm	_verify_cb,4,2                  ; @verify_cb
	.comm	_SSL_ERROR_NONE,4,2             ; @SSL_ERROR_NONE
	.no_dead_strip	_test_client_cert_cb
.subsections_via_symbols
