	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_parse_certificate_request
_ssl_parse_certificate_request:         ## @ssl_parse_certificate_request
	.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
	movq	48(%rdi), %rax
	movq	(%rax), %rbx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	%rbx, %rdi
	callq	_mbedtls_ssl_ciphersuite_cert_req_allowed
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_mbedtls_ssl_read_record
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_MBEDTLS_SSL_DEBUG_RET
	jmp	LBB0_12
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	incl	40(%r14)
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_5:
	movq	(%r14), %rax
	movq	_MBEDTLS_SSL_MSG_HANDSHAKE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.6:
	incl	40(%r14)
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movq	_MBEDTLS_SSL_HS_CERTIFICATE_REQUEST@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, 8(%r14)
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.6(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	$3, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	cmpl	$0, 8(%r14)
	je	LBB0_13
## %bb.7:
	movq	16(%r14), %r15
	movq	%r14, %rdi
	callq	_mbedtls_ssl_hs_hdr_len
	cltq
	movzbl	(%r15,%rax), %r12d
	movslq	28(%r14), %rbx
	movq	%r14, %rdi
	callq	_mbedtls_ssl_hs_hdr_len
	cltq
	addq	%r12, %rax
	addq	$2, %rax
	cmpq	%rbx, %rax
	ja	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_mbedtls_ssl_hs_hdr_len
	cltq
	addq	%r12, %rax
	movzbl	1(%r15,%rax), %r13d
	shlq	$8, %r13
	movq	%r14, %rdi
	callq	_mbedtls_ssl_hs_hdr_len
	cltq
	addq	%r12, %rax
	movzbl	2(%r15,%rax), %ebx
	orq	%r13, %rbx
	addq	%r12, %rbx
	movslq	28(%r14), %r15
	movq	%r14, %rdi
	callq	_mbedtls_ssl_hs_hdr_len
	cltq
	addq	%rbx, %rax
	addq	$3, %rax
	cmpq	%r15, %rax
	je	LBB0_14
LBB0_9:
	leaq	L_.str.3(%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_CERTIFICATE_REQUEST@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.3(%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_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mbedtls_ssl_send_alert_message
	movq	_MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	$1, 24(%r14)
LBB0_14:
	leaq	L_.str.7(%rip), %rsi
	movl	$2, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"=> parse certificate request"

L_.str.1:                               ## @.str.1
	.asciz	"<= skip parse certificate request"

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

	.comm	_MBEDTLS_SSL_MSG_HANDSHAKE,8,3  ## @MBEDTLS_SSL_MSG_HANDSHAKE
L_.str.3:                               ## @.str.3
	.asciz	"bad certificate request message"

	.comm	_MBEDTLS_SSL_ALERT_LEVEL_FATAL,4,2 ## @MBEDTLS_SSL_ALERT_LEVEL_FATAL
	.comm	_MBEDTLS_SSL_ALERT_MSG_UNEXPECTED_MESSAGE,4,2 ## @MBEDTLS_SSL_ALERT_MSG_UNEXPECTED_MESSAGE
	.comm	_MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE,4,2 ## @MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE
	.comm	_MBEDTLS_SSL_HS_CERTIFICATE_REQUEST,8,3 ## @MBEDTLS_SSL_HS_CERTIFICATE_REQUEST
L_.str.5:                               ## @.str.5
	.asciz	"a"

L_.str.6:                               ## @.str.6
	.asciz	"no"

	.comm	_MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR,4,2 ## @MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR
	.comm	_MBEDTLS_ERR_SSL_BAD_HS_CERTIFICATE_REQUEST,4,2 ## @MBEDTLS_ERR_SSL_BAD_HS_CERTIFICATE_REQUEST
L_.str.7:                               ## @.str.7
	.asciz	"<= parse certificate request"

	.comm	_MBEDTLS_SSL_MINOR_VERSION_3,8,3 ## @MBEDTLS_SSL_MINOR_VERSION_3
	.no_dead_strip	_ssl_parse_certificate_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_parse_certificate_request
_ssl_parse_certificate_request:         ; @ssl_parse_certificate_request
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0, #48]
	ldr	x20, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	mov	x0, x20
	bl	_mbedtls_ssl_ciphersuite_cert_req_allowed
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_mbedtls_ssl_read_record
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_MBEDTLS_SSL_DEBUG_RET
	b	LBB0_12
LBB0_3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	mov	w20, #0
	ldr	w8, [x19, #40]
	add	w8, w8, #1
	str	w8, [x19, #40]
	b	LBB0_12
LBB0_4:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _MBEDTLS_SSL_MSG_HANDSHAKE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MBEDTLS_SSL_MSG_HANDSHAKE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	ldr	w8, [x19, #40]
	add	w8, w8, #1
	str	w8, [x19, #40]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _MBEDTLS_SSL_HS_CERTIFICATE_REQUEST@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MBEDTLS_SSL_HS_CERTIFICATE_REQUEST@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, l_.str.6@PAGE
Lloh13:
	add	x10, x10, l_.str.6@PAGEOFF
Lloh14:
	adrp	x11, l_.str.5@PAGE
Lloh15:
	add	x11, x11, l_.str.5@PAGEOFF
	cmp	x8, x9
	csel	x1, x11, x10, eq
	cset	w8, eq
	str	w8, [x19, #8]
	mov	w0, #3
	bl	_MBEDTLS_SSL_DEBUG_MSG
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_10
; %bb.6:
	ldr	x20, [x19, #16]
	mov	x0, x19
	bl	_mbedtls_ssl_hs_hdr_len
	ldrb	w21, [x20, w0, sxtw]
	ldrsw	x22, [x19, #28]
	mov	x0, x19
	bl	_mbedtls_ssl_hs_hdr_len
	add	w8, w0, #2
	add	x8, x21, w8, sxtw
	cmp	x8, x22
	b.hi	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_mbedtls_ssl_hs_hdr_len
	add	w8, w0, #1
	add	x8, x21, w8, sxtw
	ldrb	w22, [x20, x8]
	mov	x0, x19
	bl	_mbedtls_ssl_hs_hdr_len
	add	w8, w0, #2
	add	x8, x21, w8, sxtw
	ldrb	w8, [x20, x8]
	bfi	x8, x22, #8, #8
	add	x20, x8, x21
	ldrsw	x21, [x19, #28]
	mov	x0, x19
	bl	_mbedtls_ssl_hs_hdr_len
	add	w8, w0, #3
	add	x8, x20, w8, sxtw
	cmp	x8, x21
	b.eq	LBB0_11
LBB0_8:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh18:
	adrp	x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mbedtls_ssl_send_alert_message
Lloh24:
	adrp	x8, _MBEDTLS_ERR_SSL_BAD_HS_CERTIFICATE_REQUEST@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_BAD_HS_CERTIFICATE_REQUEST@GOTPAGEOFF]
Lloh26:
	ldr	w20, [x8]
	b	LBB0_12
LBB0_9:
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh29:
	adrp	x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _MBEDTLS_SSL_ALERT_MSG_UNEXPECTED_MESSAGE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_MSG_UNEXPECTED_MESSAGE@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mbedtls_ssl_send_alert_message
Lloh35:
	adrp	x8, _MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE@GOTPAGEOFF]
Lloh37:
	ldr	w20, [x8]
	b	LBB0_12
LBB0_10:
	mov	w8, #1
	str	w8, [x19, #24]
LBB0_11:
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #2
	bl	_MBEDTLS_SSL_DEBUG_MSG
	mov	w20, #0
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"=> parse certificate request"

l_.str.1:                               ; @.str.1
	.asciz	"<= skip parse certificate request"

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

	.comm	_MBEDTLS_SSL_MSG_HANDSHAKE,8,3  ; @MBEDTLS_SSL_MSG_HANDSHAKE
l_.str.3:                               ; @.str.3
	.asciz	"bad certificate request message"

	.comm	_MBEDTLS_SSL_ALERT_LEVEL_FATAL,4,2 ; @MBEDTLS_SSL_ALERT_LEVEL_FATAL
	.comm	_MBEDTLS_SSL_ALERT_MSG_UNEXPECTED_MESSAGE,4,2 ; @MBEDTLS_SSL_ALERT_MSG_UNEXPECTED_MESSAGE
	.comm	_MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE,4,2 ; @MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE
	.comm	_MBEDTLS_SSL_HS_CERTIFICATE_REQUEST,8,3 ; @MBEDTLS_SSL_HS_CERTIFICATE_REQUEST
l_.str.5:                               ; @.str.5
	.asciz	"a"

l_.str.6:                               ; @.str.6
	.asciz	"no"

	.comm	_MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR,4,2 ; @MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR
	.comm	_MBEDTLS_ERR_SSL_BAD_HS_CERTIFICATE_REQUEST,4,2 ; @MBEDTLS_ERR_SSL_BAD_HS_CERTIFICATE_REQUEST
l_.str.7:                               ; @.str.7
	.asciz	"<= parse certificate request"

	.comm	_MBEDTLS_SSL_MINOR_VERSION_3,8,3 ; @MBEDTLS_SSL_MINOR_VERSION_3
	.no_dead_strip	_ssl_parse_certificate_request
.subsections_via_symbols
