	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_parse_signature_algorithms_ext
_ssl_parse_signature_algorithms_ext:    ## @ssl_parse_signature_algorithms_ext
	.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, %r14
	movzbl	(%rsi), %ecx
	shlq	$8, %rcx
	movzbl	1(%rsi), %eax
	addq	%rax, %rcx
	addq	$2, %rcx
	cmpq	%rdx, %rcx
	jne	LBB0_14
## %bb.1:
	andl	$1, %eax
	testq	%rax, %rax
	jne	LBB0_14
## %bb.2:
	movq	%rdx, %r15
	xorl	%eax, %eax
	cmpq	$3, %rdx
	jl	LBB0_13
## %bb.3:
	movq	%rsi, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	addq	%rsi, %r15
	addq	$2, %rbx
	movq	_MBEDTLS_PK_NONE@GOTPCREL(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	1(%rbx), %r13d
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$3, %edi
	movq	%r13, %rsi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	addq	$2, %rbx
	cmpq	%r15, %rbx
	jae	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	1(%rbx), %edi
	callq	_mbedtls_ssl_pk_alg_from_sig
	cmpl	(%r14), %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r12d
	movzbl	(%rbx), %edi
	callq	_mbedtls_ssl_md_alg_from_hash
	movq	%rax, %r13
	movq	_MBEDTLS_MD_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%rbx), %r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_mbedtls_ssl_check_sig_hash
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_mbedtls_ssl_sig_hash_set_add
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_MBEDTLS_PK_NONE@GOTPCREL(%rip), %r14
	jmp	LBB0_11
LBB0_14:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	_MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mbedtls_ssl_send_alert_message
	movq	_MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad client hello message"

	.comm	_MBEDTLS_SSL_ALERT_LEVEL_FATAL,4,2 ## @MBEDTLS_SSL_ALERT_LEVEL_FATAL
	.comm	_MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR,4,2 ## @MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR
	.comm	_MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO,4,2 ## @MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO
	.comm	_MBEDTLS_PK_NONE,4,2            ## @MBEDTLS_PK_NONE
	.comm	_MBEDTLS_MD_NONE,8,3            ## @MBEDTLS_MD_NONE
	.no_dead_strip	_ssl_parse_signature_algorithms_ext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_parse_signature_algorithms_ext
_ssl_parse_signature_algorithms_ext:    ; @ssl_parse_signature_algorithms_ext
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldrb	w8, [x1]
	ldrb	w9, [x1, #1]
	and	x10, x9, #0x1
	bfi	x9, x8, #8, #8
	add	x8, x9, #2
	cmp	x8, x2
	ccmp	x10, #0, #0, eq
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh2:
	adrp	x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mbedtls_ssl_send_alert_message
Lloh8:
	adrp	x8, _MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_2:
	cmp	x2, #3
	b.lt	LBB0_11
; %bb.3:
	add	x22, x1, x2
	add	x23, x1, #2
Lloh11:
	adrp	x24, _MBEDTLS_PK_NONE@GOTPAGE
Lloh12:
	ldr	x24, [x24, _MBEDTLS_PK_NONE@GOTPAGEOFF]
Lloh13:
	adrp	x25, _MBEDTLS_MD_NONE@GOTPAGE
Lloh14:
	ldr	x25, [x25, _MBEDTLS_MD_NONE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w20, [x23, #1]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #3
	mov	x1, x20
	bl	_MBEDTLS_SSL_DEBUG_MSG
	add	x23, x23, #2
	cmp	x23, x22
	b.hs	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x23, #1]
	bl	_mbedtls_ssl_pk_alg_from_sig
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	ldrb	w0, [x23]
	bl	_mbedtls_ssl_md_alg_from_hash
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w20, [x23]
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mbedtls_ssl_check_sig_hash
	cbnz	x0, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x19]
	mov	x1, x21
	mov	x2, x20
	bl	_mbedtls_ssl_sig_hash_set_add
	b	LBB0_5
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad client hello message"

	.comm	_MBEDTLS_SSL_ALERT_LEVEL_FATAL,4,2 ; @MBEDTLS_SSL_ALERT_LEVEL_FATAL
	.comm	_MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR,4,2 ; @MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR
	.comm	_MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO,4,2 ; @MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO
	.comm	_MBEDTLS_PK_NONE,4,2            ; @MBEDTLS_PK_NONE
	.comm	_MBEDTLS_MD_NONE,8,3            ; @MBEDTLS_MD_NONE
	.no_dead_strip	_ssl_parse_signature_algorithms_ext
.subsections_via_symbols
