	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_process_certificate_request
_tls_process_certificate_request:       ## @tls_process_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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_TLS_CONTENT_TYPE_HANDSHAKE@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	%rcx, %r15
	movq	(%rcx), %r13
	cmpq	$3, %r13
	ja	LBB0_6
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_4
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
LBB0_11:
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	%rdx, %r12
	leaq	8(%rdx), %rdi
	movq	(%rdx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_WPA_GET_BE24
	addq	$-4, %r13
	cmpq	%r13, %rax
	jbe	LBB0_8
## %bb.7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_4:
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_DECODE_ERROR@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_tls_alert
	movl	$-1, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_TLS_HANDSHAKE_TYPE_SERVER_HELLO_DONE@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	(%rcx), %rdx
	jne	LBB0_9
## %bb.14:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tls_process_server_hello_done  ## TAILCALL
LBB0_9:
	movq	_TLS_HANDSHAKE_TYPE_CERTIFICATE_REQUEST@GOTPCREL(%rip), %rcx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	cmpq	(%rcx), %rdx
	jne	LBB0_10
## %bb.12:
	leaq	(%r12,%rax,8), %r13
	addq	$32, %r13
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$1, (%r14)
	subq	%r12, %r13
	sarq	$3, %r13
	movq	%r13, (%r15)
	movq	_SERVER_HELLO_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS_CONTENT_TYPE_HANDSHAKE,8,3 ## @TLS_CONTENT_TYPE_HANDSHAKE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLSv1: Expected Handshake; received content type 0x%x"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ## @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_UNEXPECTED_MESSAGE,4,2 ## @TLS_ALERT_UNEXPECTED_MESSAGE
L_.str.1:                               ## @.str.1
	.asciz	"TLSv1: Too short CertificateRequest (left=%lu)"

	.comm	_TLS_ALERT_DECODE_ERROR,4,2     ## @TLS_ALERT_DECODE_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"TLSv1: Mismatch in CertificateRequest length (len=%lu != left=%lu)"

	.comm	_TLS_HANDSHAKE_TYPE_SERVER_HELLO_DONE,8,3 ## @TLS_HANDSHAKE_TYPE_SERVER_HELLO_DONE
	.comm	_TLS_HANDSHAKE_TYPE_CERTIFICATE_REQUEST,8,3 ## @TLS_HANDSHAKE_TYPE_CERTIFICATE_REQUEST
L_.str.3:                               ## @.str.3
	.asciz	"TLSv1: Received unexpected handshake message %d (expected CertificateRequest/ServerHelloDone)"

L_.str.4:                               ## @.str.4
	.asciz	"TLSv1: Received CertificateRequest"

	.comm	_SERVER_HELLO_DONE,4,2          ## @SERVER_HELLO_DONE
	.no_dead_strip	_tls_process_certificate_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_process_certificate_request
_tls_process_certificate_request:       ; @tls_process_certificate_request
	.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	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _TLS_CONTENT_TYPE_HANDSHAKE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLS_CONTENT_TYPE_HANDSHAKE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x3
	ldr	x24, [x3]
	cmp	x24, #3
	b.hi	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	str	x24, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_3:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	str	x22, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	bl	_wpa_printf
Lloh13:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _TLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	x21, x2
	mov	x0, x2
	ldr	x23, [x0], #8
	bl	_WPA_GET_BE24
	sub	x9, x24, #4
	cmp	x0, x9
	b.ls	LBB0_10
; %bb.6:
Lloh18:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	stp	x0, x9, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x8
LBB0_7:
	bl	_wpa_printf
Lloh23:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _TLS_ALERT_DECODE_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TLS_ALERT_DECODE_ERROR@GOTPAGEOFF]
LBB0_8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tls_alert
	mov	w0, #-1
LBB0_9:
	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_10:
Lloh28:
	adrp	x8, _TLS_HANDSHAKE_TYPE_SERVER_HELLO_DONE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TLS_HANDSHAKE_TYPE_SERVER_HELLO_DONE@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x23, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	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
	b	_tls_process_server_hello_done
LBB0_12:
Lloh31:
	adrp	x8, _TLS_HANDSHAKE_TYPE_CERTIFICATE_REQUEST@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TLS_HANDSHAKE_TYPE_CERTIFICATE_REQUEST@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x8]
Lloh34:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	x23, x9
	b.ne	LBB0_14
; %bb.13:
	add	x9, x21, x0, lsl #3
	add	x22, x9, #32
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x8
	bl	_wpa_printf
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	sub	x8, x22, x21
	asr	x8, x8, #3
	str	x8, [x20]
Lloh39:
	adrp	x8, _SERVER_HELLO_DONE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SERVER_HELLO_DONE@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_9
LBB0_14:
	str	x23, [sp]
Lloh42:
	adrp	x1, l_.str.3@PAGE
Lloh43:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS_CONTENT_TYPE_HANDSHAKE,8,3 ; @TLS_CONTENT_TYPE_HANDSHAKE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLSv1: Expected Handshake; received content type 0x%x"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ; @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_UNEXPECTED_MESSAGE,4,2 ; @TLS_ALERT_UNEXPECTED_MESSAGE
l_.str.1:                               ; @.str.1
	.asciz	"TLSv1: Too short CertificateRequest (left=%lu)"

	.comm	_TLS_ALERT_DECODE_ERROR,4,2     ; @TLS_ALERT_DECODE_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"TLSv1: Mismatch in CertificateRequest length (len=%lu != left=%lu)"

	.comm	_TLS_HANDSHAKE_TYPE_SERVER_HELLO_DONE,8,3 ; @TLS_HANDSHAKE_TYPE_SERVER_HELLO_DONE
	.comm	_TLS_HANDSHAKE_TYPE_CERTIFICATE_REQUEST,8,3 ; @TLS_HANDSHAKE_TYPE_CERTIFICATE_REQUEST
l_.str.3:                               ; @.str.3
	.asciz	"TLSv1: Received unexpected handshake message %d (expected CertificateRequest/ServerHelloDone)"

l_.str.4:                               ; @.str.4
	.asciz	"TLSv1: Received CertificateRequest"

	.comm	_SERVER_HELLO_DONE,4,2          ; @SERVER_HELLO_DONE
	.no_dead_strip	_tls_process_certificate_request
.subsections_via_symbols
