	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_ssl_get_shared_ciphers
_test_ssl_get_shared_ciphers:           ## @test_ssl_get_shared_ciphers
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -1088(%rbp)
	movq	$0, -1080(%rbp)
	movq	$0, -1104(%rbp)
	movq	$0, -1096(%rbp)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_TLS_server_method
	movl	%eax, %r13d
	xorl	%eax, %eax
	callq	_TLS_client_method
	movq	_TLS1_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_shared_ciphers_data@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movslq	%r15d, %rsi
	leaq	(%rsi,%rsi,4), %r15
	movl	36(%rcx,%r15,8), %ecx
	movq	_cert@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	movq	_privkey@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	leaq	-1080(%rbp), %r8
	leaq	-1088(%rbp), %r9
	movl	%r13d, %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_13
## %bb.1:
	movq	-1088(%rbp), %rdi
	movq	(%r12), %rax
	movl	32(%rax,%r15,8), %esi
	callq	_SSL_CTX_set_cipher_list
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_13
## %bb.2:
	movq	(%r12), %rax
	movq	24(%rax,%r15,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.3:
	movq	-1088(%rbp), %rdi
	callq	_SSL_CTX_set_ciphersuites
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	movq	(%r12), %rax
LBB0_5:
	movq	-1080(%rbp), %rdi
	movl	16(%rax,%r15,8), %esi
	callq	_SSL_CTX_set_cipher_list
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_13
## %bb.6:
	movq	(%r12), %rax
	movq	8(%rax,%r15,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movq	-1080(%rbp), %rdi
	callq	_SSL_CTX_set_ciphersuites
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_13
LBB0_8:
	movq	-1080(%rbp), %rdi
	movq	-1088(%rbp), %rsi
	xorl	%r14d, %r14d
	leaq	-1096(%rbp), %rdx
	leaq	-1104(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_create_ssl_objects
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movq	-1096(%rbp), %rdi
	movq	-1104(%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_13
## %bb.10:
	movq	-1096(%rbp), %rdi
	leaq	-1072(%rbp), %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_SSL_get_shared_ciphers
	movl	%eax, %edi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	(%r12), %rax
	movl	(%rax,%r15,8), %esi
	leaq	-1072(%rbp), %rdi
	callq	_strcmp
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_eq
	movl	$1, %r14d
	testl	%eax, %eax
	jne	LBB0_13
LBB0_12:
	leaq	L_.str(%rip), %rdi
	leaq	-1072(%rbp), %rsi
	callq	_TEST_info
	xorl	%r14d, %r14d
LBB0_13:
	movq	-1096(%rbp), %rdi
	callq	_SSL_free
	movq	-1104(%rbp), %rdi
	callq	_SSL_free
	movq	-1080(%rbp), %rdi
	callq	_SSL_CTX_free
	movq	-1088(%rbp), %rdi
	callq	_SSL_CTX_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%r14d, %eax
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS1_VERSION,4,2               ## @TLS1_VERSION
	.comm	_shared_ciphers_data,8,3        ## @shared_ciphers_data
	.comm	_cert,4,2                       ## @cert
	.comm	_privkey,4,2                    ## @privkey
	.comm	_SSL_ERROR_NONE,4,2             ## @SSL_ERROR_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Shared ciphers are: %s\n"

	.no_dead_strip	_test_ssl_get_shared_ciphers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_ssl_get_shared_ciphers
_test_ssl_get_shared_ciphers:           ; @test_ssl_get_shared_ciphers
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #1072
	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, #-40]
	stp	xzr, xzr, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	bl	_TLS_server_method
	mov	x20, x0
	bl	_TLS_client_method
	mov	x1, x0
Lloh3:
	adrp	x8, _TLS1_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TLS1_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x21, _shared_ciphers_data@GOTPAGE
Lloh7:
	ldr	x21, [x21, _shared_ciphers_data@GOTPAGEOFF]
	ldr	x8, [x21]
	mov	w9, #40
	smaddl	x8, w19, w9, x8
	ldr	w3, [x8, #36]
Lloh8:
	adrp	x8, _cert@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cert@GOTPAGEOFF]
Lloh10:
	ldr	w6, [x8]
Lloh11:
	adrp	x8, _privkey@GOTPAGE
Lloh12:
	ldr	x8, [x8, _privkey@GOTPAGEOFF]
Lloh13:
	ldr	w7, [x8]
	add	x4, sp, #24
	add	x5, sp, #32
	mov	x0, x20
	bl	_create_ssl_ctx_pair
	bl	_TEST_true
	cbz	w0, LBB0_14
; %bb.1:
	sxtw	x19, w19
	ldr	x0, [sp, #32]
	ldr	x8, [x21]
	mov	w9, #40
	madd	x8, x19, x9, x8
	ldr	w1, [x8, #32]
	bl	_SSL_CTX_set_cipher_list
	bl	_TEST_true
	cbz	w0, LBB0_14
; %bb.2:
	ldr	x8, [x21]
	mov	w9, #40
	madd	x9, x19, x9, x8
	ldr	x1, [x9, #24]
	cbz	x1, LBB0_5
; %bb.3:
	ldr	x0, [sp, #32]
	bl	_SSL_CTX_set_ciphersuites
	bl	_TEST_true
	cbz	w0, LBB0_14
; %bb.4:
	ldr	x8, [x21]
LBB0_5:
	ldr	x0, [sp, #24]
	mov	w9, #40
	madd	x8, x19, x9, x8
	ldr	w1, [x8, #16]
	bl	_SSL_CTX_set_cipher_list
	bl	_TEST_true
	cbz	w0, LBB0_14
; %bb.6:
	ldr	x8, [x21]
	mov	w9, #40
	madd	x8, x19, x9, x8
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_8
; %bb.7:
	ldr	x0, [sp, #24]
	bl	_SSL_CTX_set_ciphersuites
	bl	_TEST_true
	cbz	w0, LBB0_14
LBB0_8:
	ldp	x0, x1, [sp, #24]
	add	x2, sp, #8
	add	x3, sp, #16
	mov	x4, #0
	mov	x5, #0
	bl	_create_ssl_objects
	bl	_TEST_true
	cbz	w0, LBB0_14
; %bb.9:
	ldp	x0, x1, [sp, #8]
Lloh14:
	adrp	x8, _SSL_ERROR_NONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSL_ERROR_NONE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_create_ssl_connection
	bl	_TEST_true
	cbz	w0, LBB0_14
; %bb.10:
	ldr	x0, [sp, #8]
	add	x1, sp, #40
	mov	w2, #1024
	bl	_SSL_get_shared_ciphers
	bl	_TEST_ptr
	cbz	w0, LBB0_13
; %bb.11:
	ldr	x8, [x21]
	mov	w9, #40
	mul	x9, x19, x9
	ldr	w1, [x8, x9]
	add	x0, sp, #40
	bl	_strcmp
	mov	w1, #0
	bl	_TEST_int_eq
	cbz	w0, LBB0_13
; %bb.12:
	mov	w19, #1
	b	LBB0_15
LBB0_13:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #40
	bl	_TEST_info
LBB0_14:
	mov	w19, #0
LBB0_15:
	ldr	x0, [sp, #8]
	bl	_SSL_free
	ldr	x0, [sp, #16]
	bl	_SSL_free
	ldr	x0, [sp, #24]
	bl	_SSL_CTX_free
	ldr	x0, [sp, #32]
	bl	_SSL_CTX_free
	ldur	x8, [x29, #-40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x19
	add	sp, sp, #1072
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS1_VERSION,4,2               ; @TLS1_VERSION
	.comm	_shared_ciphers_data,8,3        ; @shared_ciphers_data
	.comm	_cert,4,2                       ; @cert
	.comm	_privkey,4,2                    ; @privkey
	.comm	_SSL_ERROR_NONE,4,2             ; @SSL_ERROR_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Shared ciphers are: %s\n"

	.no_dead_strip	_test_ssl_get_shared_ciphers
.subsections_via_symbols
