	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls1_set_server_sigalgs        ## -- Begin function tls1_set_server_sigalgs
	.p2align	4, 0x90
_tls1_set_server_sigalgs:               ## @tls1_set_server_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	callq	_OPENSSL_free
	movq	$0, (%r15)
	movq	$0, 32(%r15)
	movq	_SSL_PKEY_NUM@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_3
## %bb.1:
	movq	8(%r15), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rax,%rcx,8)
	incq	%rcx
	cmpq	(%r13), %rcx
	jb	LBB0_2
LBB0_3:
	cmpq	$0, 24(%r15)
	jne	LBB0_14
## %bb.4:
	cmpq	$0, 16(%r15)
	je	LBB0_5
LBB0_14:
	movq	%r15, %rdi
	callq	_tls1_process_sigalgs
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	$1, %r14d
	cmpq	$0, (%r15)
	jne	LBB0_19
## %bb.17:
	movq	_SSL_AD_HANDSHAKE_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS1_SET_SERVER_SIGALGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_NO_SHARED_SIGNATURE_ALGORITHMS@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_15:
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS1_SET_SERVER_SIGALGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	xorl	%r14d, %r14d
LBB0_19:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$1, %r14d
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_tls12_get_psigalgs
	cmpq	$0, (%r13)
	je	LBB0_19
## %bb.6:
	movq	%rax, %r12
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_CERT_PKEY_SIGN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpq	(%r13), %rbx
	jae	LBB0_19
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_tls1_get_legacy_sigalg
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	testq	%r12, %r12
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	(%rcx,%rdx,8), %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=2
	incq	%rdx
	cmpq	%rdx, %r12
	jne	LBB0_11
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_PKEY_NUM,8,3               ## @SSL_PKEY_NUM
	.comm	_CERT_PKEY_SIGN,8,3             ## @CERT_PKEY_SIGN
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS1_SET_SERVER_SIGALGS,4,2 ## @SSL_F_TLS1_SET_SERVER_SIGALGS
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.comm	_SSL_AD_HANDSHAKE_FAILURE,4,2   ## @SSL_AD_HANDSHAKE_FAILURE
	.comm	_SSL_R_NO_SHARED_SIGNATURE_ALGORITHMS,4,2 ## @SSL_R_NO_SHARED_SIGNATURE_ALGORITHMS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls1_set_server_sigalgs        ; -- Begin function tls1_set_server_sigalgs
	.p2align	2
_tls1_set_server_sigalgs:               ; @tls1_set_server_sigalgs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x0, [x0]
	bl	_OPENSSL_free
	str	xzr, [x19]
	str	xzr, [x19, #32]
Lloh0:
	adrp	x22, _SSL_PKEY_NUM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SSL_PKEY_NUM@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x8, #0
	ldr	x9, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x9, x8, lsl #3]
	add	x8, x8, #1
	ldr	x10, [x22]
	cmp	x8, x10
	b.lo	LBB0_2
LBB0_3:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
LBB0_5:
	mov	x0, x19
	bl	_tls1_process_sigalgs
	cbz	w0, LBB0_8
; %bb.6:
	ldr	x8, [x19]
	cbz	x8, LBB0_9
LBB0_7:
	mov	w0, #1
	b	LBB0_11
LBB0_8:
Lloh2:
	adrp	x8, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _SSL_F_TLS1_SET_SERVER_SIGALGS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSL_F_TLS1_SET_SERVER_SIGALGS@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh10:
	adrp	x8, _SSL_AD_HANDSHAKE_FAILURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSL_AD_HANDSHAKE_FAILURE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _SSL_F_TLS1_SET_SERVER_SIGALGS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SSL_F_TLS1_SET_SERVER_SIGALGS@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _SSL_R_NO_SHARED_SIGNATURE_ALGORITHMS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SSL_R_NO_SHARED_SIGNATURE_ALGORITHMS@GOTPAGEOFF]
LBB0_10:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #0
LBB0_11:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #1
	bl	_tls12_get_psigalgs
	ldr	x8, [x22]
	cbz	x8, LBB0_7
; %bb.13:
	mov	x20, x0
	mov	x21, #0
Lloh18:
	adrp	x23, _CERT_PKEY_SIGN@GOTPAGE
Lloh19:
	ldr	x23, [x23, _CERT_PKEY_SIGN@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x19, #8]
	str	x8, [x9, x21, lsl #3]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x21, x21, #1
	ldr	x8, [x22]
	cmp	x21, x8
	b.hs	LBB0_7
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	mov	x0, x19
	mov	x1, x21
	bl	_tls1_get_legacy_sigalg
	cbz	x0, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	cbz	x20, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x0]
	ldr	x9, [sp, #8]
	mov	x10, x20
LBB0_19:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x9]
	cmp	x8, x11
	b.eq	LBB0_14
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	add	x9, x9, #8
	subs	x10, x10, #1
	b.ne	LBB0_19
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_PKEY_NUM,8,3               ; @SSL_PKEY_NUM
	.comm	_CERT_PKEY_SIGN,8,3             ; @CERT_PKEY_SIGN
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS1_SET_SERVER_SIGALGS,4,2 ; @SSL_F_TLS1_SET_SERVER_SIGALGS
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.comm	_SSL_AD_HANDSHAKE_FAILURE,4,2   ; @SSL_AD_HANDSHAKE_FAILURE
	.comm	_SSL_R_NO_SHARED_SIGNATURE_ALGORITHMS,4,2 ; @SSL_R_NO_SHARED_SIGNATURE_ALGORITHMS
.subsections_via_symbols
