	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_set_sigalgs
_test_set_sigalgs:                      ## @test_set_sigalgs
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r13d
	movq	$0, -48(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -72(%rbp)
	movslq	%edi, %rbx
	movq	_testsigalgs@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_OSSL_NELEM
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %esi
	movq	%rbx, %rdi
	callq	_TEST_size_t_le
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	(%r14), %rdi
	callq	_OSSL_NELEM
	movq	(%r14), %r14
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	%r13d, %eax
	ja	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_OSSL_NELEM
	movl	%r13d, %ecx
	subl	%eax, %ecx
	movslq	%ecx, %rbx
LBB0_3:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	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
	movq	_cert@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_privkey@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	-80(%rbp), %r8
	leaq	-48(%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_24
## %bb.4:
	movq	-48(%rbp), %rdi
	movq	_TLS1_2_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSL_CTX_set_max_proto_version
	cmpl	%r13d, -52(%rbp)                ## 4-byte Folded Reload
	movq	%r14, %r15
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	jbe	LBB0_11
## %bb.5:
	movq	%r14, %rbx
	shlq	$5, %rbx
	movq	24(%r15,%rbx), %rsi
	movq	-48(%rbp), %rdi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.6:
	movl	20(%r15,%rbx), %edx
	callq	_SSL_CTX_set1_sigalgs
	jmp	LBB0_9
LBB0_7:
	xorl	%r12d, %r12d
	jmp	LBB0_24
LBB0_8:
	movl	16(%r15,%rbx), %esi
	callq	_SSL_CTX_set1_sigalgs_list
LBB0_9:
	movq	8(%r15,%rbx), %rcx
	testl	%eax, %eax
	je	LBB0_15
## %bb.10:
	testq	%rcx, %rcx
	je	LBB0_17
LBB0_11:
	movq	-80(%rbp), %rdi
	movq	-48(%rbp), %rsi
	xorl	%r12d, %r12d
	leaq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_create_ssl_objects
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_23
## %bb.12:
	cmpl	%r13d, -52(%rbp)                ## 4-byte Folded Reload
	ja	LBB0_22
## %bb.13:
	movq	%r14, %rbx
	shlq	$5, %rbx
	movq	24(%r15,%rbx), %rsi
	movq	-64(%rbp), %rdi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.14:
	movl	20(%r15,%rbx), %edx
	callq	_SSL_set1_sigalgs
	jmp	LBB0_20
LBB0_15:
	testq	%rcx, %rcx
	je	LBB0_28
## %bb.16:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_18
LBB0_17:
	leaq	L_.str.1(%rip), %rdi
LBB0_18:
	movl	%r13d, %esi
	callq	_TEST_info
	xorl	%r12d, %r12d
	jmp	LBB0_23
LBB0_19:
	movl	16(%r15,%rbx), %esi
	callq	_SSL_set1_sigalgs_list
LBB0_20:
	movq	8(%r15,%rbx), %rcx
	testl	%eax, %eax
	je	LBB0_25
## %bb.21:
	testq	%rcx, %rcx
	je	LBB0_23
LBB0_22:
	movq	-72(%rbp), %rdi
	movq	-64(%rbp), %rsi
	movq	_SSL_ERROR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_create_ssl_connection
	shlq	$5, %r14
	movl	(%r15,%r14), %esi
	movl	%eax, %edi
	callq	_TEST_int_eq
	xorl	%r12d, %r12d
	testl	%eax, %eax
	setne	%r12b
	jmp	LBB0_23
LBB0_25:
	testq	%rcx, %rcx
	je	LBB0_28
## %bb.26:
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	callq	_TEST_info
	jmp	LBB0_23
LBB0_28:
	movl	$1, %r12d
LBB0_23:
	movq	-72(%rbp), %rdi
	callq	_SSL_free
	movq	-64(%rbp), %rdi
	callq	_SSL_free
	movq	-80(%rbp), %rdi
	callq	_SSL_CTX_free
	movq	-48(%rbp), %rdi
	callq	_SSL_CTX_free
LBB0_24:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_testsigalgs,8,3                ## @testsigalgs
	.comm	_TLS1_VERSION,4,2               ## @TLS1_VERSION
	.comm	_cert,4,2                       ## @cert
	.comm	_privkey,4,2                    ## @privkey
	.comm	_TLS1_2_VERSION,4,2             ## @TLS1_2_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failure setting sigalgs in SSL_CTX (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Not-failed setting sigalgs in SSL_CTX (%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failure setting sigalgs in SSL (%d)\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_set_sigalgs
_test_set_sigalgs:                      ; @test_set_sigalgs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
	stp	xzr, xzr, [sp]
	sxtw	x20, w19
Lloh0:
	adrp	x21, _testsigalgs@GOTPAGE
Lloh1:
	ldr	x21, [x21, _testsigalgs@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_OSSL_NELEM
	lsl	w1, w0, #1
	mov	x0, x20
	bl	_TEST_size_t_le
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x0, [x21]
	bl	_OSSL_NELEM
	mov	x22, x0
	ldr	x21, [x21]
	cmp	w0, w19
	b.hi	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_OSSL_NELEM
	sub	w8, w19, w0
	sxtw	x20, w8
LBB0_3:
	bl	_TLS_server_method
	mov	x23, x0
	bl	_TLS_client_method
	mov	x1, x0
Lloh2:
	adrp	x8, _TLS1_VERSION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TLS1_VERSION@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _cert@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cert@GOTPAGEOFF]
Lloh7:
	ldr	w6, [x8]
Lloh8:
	adrp	x8, _privkey@GOTPAGE
Lloh9:
	ldr	x8, [x8, _privkey@GOTPAGEOFF]
Lloh10:
	ldr	w7, [x8]
	add	x4, sp, #16
	add	x5, sp, #24
	mov	x0, x23
	mov	w3, #0
	bl	_create_ssl_ctx_pair
	bl	_TEST_true
	cbz	w0, LBB0_7
; %bb.4:
	ldr	x0, [sp, #24]
Lloh11:
	adrp	x8, _TLS1_2_VERSION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TLS1_2_VERSION@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_SSL_CTX_set_max_proto_version
	cmp	w22, w19
	b.ls	LBB0_11
; %bb.5:
	add	x8, x21, x20, lsl #5
	ldr	x1, [x8, #24]
	ldr	x0, [sp, #24]
	cbz	x1, LBB0_8
; %bb.6:
	ldr	w2, [x8, #20]
	bl	_SSL_CTX_set1_sigalgs
	b	LBB0_9
LBB0_7:
	mov	w19, #0
	b	LBB0_27
LBB0_8:
	ldr	w1, [x8, #16]
	bl	_SSL_CTX_set1_sigalgs_list
LBB0_9:
	add	x8, x21, x20, lsl #5
	ldr	x8, [x8, #8]
	cbz	w0, LBB0_15
; %bb.10:
	cbz	x8, LBB0_17
LBB0_11:
	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_25
; %bb.12:
	cmp	w22, w19
	b.hi	LBB0_21
; %bb.13:
	add	x8, x21, x20, lsl #5
	ldr	x1, [x8, #24]
	ldr	x0, [sp, #8]
	cbz	x1, LBB0_18
; %bb.14:
	ldr	w2, [x8, #20]
	bl	_SSL_set1_sigalgs
	b	LBB0_19
LBB0_15:
	cbz	x8, LBB0_28
; %bb.16:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_24
LBB0_17:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_18:
	ldr	w1, [x8, #16]
	bl	_SSL_set1_sigalgs_list
LBB0_19:
	add	x8, x21, x20, lsl #5
	ldr	x8, [x8, #8]
	cbz	w0, LBB0_22
; %bb.20:
	cbz	x8, LBB0_25
LBB0_21:
	ldp	x0, x1, [sp]
Lloh18:
	adrp	x8, _SSL_ERROR_NONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSL_ERROR_NONE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	bl	_create_ssl_connection
	lsl	x8, x20, #5
	ldr	w1, [x21, x8]
	bl	_TEST_int_eq
	cmp	w0, #0
	cset	w19, ne
	b	LBB0_26
LBB0_22:
	cbz	x8, LBB0_28
; %bb.23:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_24:
	mov	x1, x19
	bl	_TEST_info
LBB0_25:
	mov	w19, #0
LBB0_26:
	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
LBB0_27:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_28:
	mov	w19, #1
	b	LBB0_26
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_testsigalgs,8,3                ; @testsigalgs
	.comm	_TLS1_VERSION,4,2               ; @TLS1_VERSION
	.comm	_cert,4,2                       ; @cert
	.comm	_privkey,4,2                    ; @privkey
	.comm	_TLS1_2_VERSION,4,2             ; @TLS1_2_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failure setting sigalgs in SSL_CTX (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Not-failed setting sigalgs in SSL_CTX (%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failure setting sigalgs in SSL (%d)\n"

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