	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_set_ciphersuite
_test_set_ciphersuite:                  ## @test_set_ciphersuite
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -64(%rbp)
	xorl	%r14d, %r14d
	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
	movq	_cert@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_privkey@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	-56(%rbp), %r8
	leaq	-48(%rbp), %r9
	movl	%r12d, %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_18
## %bb.1:
	movq	-56(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_SSL_CTX_set_ciphersuites
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_18
## %bb.2:
	movl	%r15d, %eax
	andl	$-4, %eax
	cmpl	$4, %eax
	jne	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_SSL_CTX_set_cipher_list
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_18
LBB0_4:
	movl	%r15d, %eax
	andl	$-5, %eax
	cmpl	$1, %eax
	je	LBB0_7
## %bb.5:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	-48(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	movq	-48(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
LBB0_8:
	callq	_SSL_CTX_set_ciphersuites
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_18
LBB0_9:
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rsi
	xorl	%r14d, %r14d
	leaq	-64(%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_18
## %bb.10:
	movl	%r15d, %eax
	andl	$-2, %eax
	cmpl	$8, %eax
	jne	LBB0_12
## %bb.11:
	movq	-40(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_SSL_set_cipher_list
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_18
LBB0_12:
	cmpl	$9, %r15d
	ja	LBB0_17
## %bb.13:
	movl	$324, %eax                      ## imm = 0x144
	btl	%r15d, %eax
	jb	LBB0_19
## %bb.14:
	movl	$648, %eax                      ## imm = 0x288
	btl	%r15d, %eax
	jae	LBB0_17
## %bb.15:
	movq	-40(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_16
LBB0_19:
	movq	-40(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
LBB0_16:
	callq	_SSL_set_ciphersuites
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_18
LBB0_17:
	movq	-64(%rbp), %rdi
	movq	-40(%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_18:
	movq	-64(%rbp), %rdi
	callq	_SSL_free
	movq	-40(%rbp), %rdi
	callq	_SSL_free
	movq	-56(%rbp), %rdi
	callq	_SSL_CTX_free
	movq	-48(%rbp), %rdi
	callq	_SSL_CTX_free
	movl	%r14d, %eax
	addq	$32, %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,4,2                       ## @cert
	.comm	_privkey,4,2                    ## @privkey
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLS_AES_128_GCM_SHA256:TLS_AES_128_CCM_SHA256"

L_.str.1:                               ## @.str.1
	.asciz	"AES256-GCM-SHA384"

L_.str.2:                               ## @.str.2
	.asciz	"TLS_AES_128_GCM_SHA256"

L_.str.3:                               ## @.str.3
	.asciz	"TLS_AES_128_CCM_SHA256"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_set_ciphersuite
_test_set_ciphersuite:                  ; @test_set_ciphersuite
	.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:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _cert@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cert@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
Lloh6:
	adrp	x8, _privkey@GOTPAGE
Lloh7:
	ldr	x8, [x8, _privkey@GOTPAGEOFF]
Lloh8:
	ldr	w7, [x8]
	add	x4, sp, #16
	add	x5, sp, #24
	mov	x0, x20
	mov	w3, #0
	bl	_create_ssl_ctx_pair
	bl	_TEST_true
	cbz	w0, LBB0_19
; %bb.1:
	ldr	x0, [sp, #16]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_SSL_CTX_set_ciphersuites
	bl	_TEST_true
	cbz	w0, LBB0_19
; %bb.2:
	and	w8, w19, #0xfffffffc
	cmp	w8, #4
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [sp, #24]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_SSL_CTX_set_cipher_list
	bl	_TEST_true
	cbz	w0, LBB0_19
LBB0_4:
	and	w8, w19, #0xfffffffb
	cmp	w8, #1
	b.eq	LBB0_7
; %bb.5:
	cbnz	w8, LBB0_9
; %bb.6:
	ldr	x0, [sp, #24]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
	ldr	x0, [sp, #24]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_8:
	bl	_SSL_CTX_set_ciphersuites
	bl	_TEST_true
	cbz	w0, LBB0_19
LBB0_9:
	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_19
; %bb.10:
	and	w8, w19, #0xfffffffe
	cmp	w8, #8
	b.ne	LBB0_12
; %bb.11:
	ldr	x0, [sp, #8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_SSL_set_cipher_list
	bl	_TEST_true
	cbz	w0, LBB0_19
LBB0_12:
	cmp	w19, #9
	b.hi	LBB0_18
; %bb.13:
	mov	w8, #1
	lsl	w8, w8, w19
	mov	w9, #324
	tst	w8, w9
	b.ne	LBB0_16
; %bb.14:
	mov	w9, #648
	tst	w8, w9
	b.eq	LBB0_18
; %bb.15:
	ldr	x0, [sp, #8]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_16:
	ldr	x0, [sp, #8]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_17:
	bl	_SSL_set_ciphersuites
	bl	_TEST_true
	cbz	w0, LBB0_19
LBB0_18:
	ldp	x0, x1, [sp]
Lloh23:
	adrp	x8, _SSL_ERROR_NONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SSL_ERROR_NONE@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	bl	_create_ssl_connection
	bl	_TEST_true
	cmp	w0, #0
	cset	w19, ne
	b	LBB0_20
LBB0_19:
	mov	w19, #0
LBB0_20:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS1_VERSION,4,2               ; @TLS1_VERSION
	.comm	_cert,4,2                       ; @cert
	.comm	_privkey,4,2                    ; @privkey
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLS_AES_128_GCM_SHA256:TLS_AES_128_CCM_SHA256"

l_.str.1:                               ; @.str.1
	.asciz	"AES256-GCM-SHA384"

l_.str.2:                               ; @.str.2
	.asciz	"TLS_AES_128_GCM_SHA256"

l_.str.3:                               ; @.str.3
	.asciz	"TLS_AES_128_CCM_SHA256"

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