	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls1_set_sigalgs               ## -- Begin function tls1_set_sigalgs
	.p2align	4, 0x90
_tls1_set_sigalgs:                      ## @tls1_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	xorl	%r15d, %r15d
	testb	$1, %bl
	jne	LBB0_19
## %bb.1:
	movl	%ecx, %r12d
	movq	%rdi, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r13
	shrq	%r13
	leaq	(,%r13,4), %rdi
	callq	_OPENSSL_malloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_15
## %bb.3:
	xorl	%ecx, %ecx
	movq	_sigalg_lookup_tbl@GOTPCREL(%rip), %r14
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	(%rax), %ebx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %r12d
	movq	(%r14), %r15
	movq	%r15, %rdi
	callq	_OSSL_NELEM
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	$8, %r15
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=2
	incq	%r13
	movq	(%r14), %rdi
	callq	_OSSL_NELEM
	addq	$12, %r15
	cmpq	%rax, %r13
	jae	LBB0_13
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%ebx, -8(%r15)
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpl	%r12d, -4(%r15)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r15), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	addq	$4, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r13d, %r13d
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %rdi
	callq	_OSSL_NELEM
	cmpq	%rax, %r13
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	addq	$2, %rcx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %rcx
	jb	LBB0_6
LBB0_15:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.16:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx), %rdi
	callq	_OPENSSL_free
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rbx)
	jmp	LBB0_18
LBB0_4:
	movq	_SSL_F_TLS1_SET_SIGALGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSLerr
	jmp	LBB0_19
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_OPENSSL_free
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_17:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rdi
	callq	_OPENSSL_free
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
LBB0_18:
	movl	$1, %r15d
LBB0_19:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_F_TLS1_SET_SIGALGS,4,2     ## @SSL_F_TLS1_SET_SIGALGS
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_sigalg_lookup_tbl,8,3          ## @sigalg_lookup_tbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls1_set_sigalgs               ; -- Begin function tls1_set_sigalgs
	.p2align	2
_tls1_set_sigalgs:                      ; @tls1_set_sigalgs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	tbnz	w22, #0, LBB0_16
; %bb.1:
	mov	x21, x3
	mov	x23, x1
	mov	x19, x0
	lsr	x20, x22, #1
	lsl	x0, x20, #2
	bl	_OPENSSL_malloc
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	cbz	x0, LBB0_14
; %bb.2:
	str	w21, [sp, #20]                  ; 4-byte Folded Spill
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	cbz	x22, LBB0_12
; %bb.3:
	mov	x26, #0
Lloh0:
	adrp	x27, _sigalg_lookup_tbl@GOTPAGE
Lloh1:
	ldr	x27, [x27, _sigalg_lookup_tbl@GOTPAGEOFF]
	ldr	x28, [sp, #24]                  ; 8-byte Folded Reload
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldp	w21, w20, [x23]
	ldr	x24, [x27]
	mov	x0, x24
	bl	_OSSL_NELEM
	mov	x25, #0
	cbz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x25, x25, #1
	ldr	x0, [x27]
	bl	_OSSL_NELEM
	add	x24, x24, #12
	cmp	x25, x0
	b.hs	LBB0_10
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w8, [x24, #-8]
	cmp	w8, w21
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldur	w8, [x24, #-4]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
	str	w8, [x28], #4
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x27]
	bl	_OSSL_NELEM
	cmp	x25, x0
	b.eq	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #8
	add	x26, x26, #2
	cmp	x26, x22
	b.lo	LBB0_4
LBB0_12:
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_17
; %bb.13:
	ldr	x0, [x19, #24]
	bl	_OPENSSL_free
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x8, [x19, #24]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [x19]
	b	LBB0_18
LBB0_14:
Lloh2:
	adrp	x8, _SSL_F_TLS1_SET_SIGALGS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSL_F_TLS1_SET_SIGALGS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_SSLerr
	mov	w0, #0
	b	LBB0_19
LBB0_15:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_OPENSSL_free
LBB0_16:
	mov	w0, #0
	b	LBB0_19
LBB0_17:
	ldr	x0, [x19, #16]
	bl	_OPENSSL_free
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	stp	x8, x9, [x19, #8]
LBB0_18:
	mov	w0, #1
LBB0_19:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_F_TLS1_SET_SIGALGS,4,2     ; @SSL_F_TLS1_SET_SIGALGS
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_sigalg_lookup_tbl,8,3          ; @sigalg_lookup_tbl
.subsections_via_symbols
