	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_post_process_client_hello  ## -- Begin function tls_post_process_client_hello
	.p2align	4, 0x90
_tls_post_process_client_hello:         ## @tls_post_process_client_hello
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_WORK_MORE_A@GOTPCREL(%rip), %rbx
	cmpq	%rsi, (%rbx)
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_tls_early_post_process_client_hello
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	jns	LBB0_4
	jmp	LBB0_35
LBB0_3:
	movq	_WORK_MORE_B@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_32
LBB0_4:
	cmpl	$0, 40(%r15)
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_SSL_IS_TLS13
	testq	%rax, %rax
	je	LBB0_26
## %bb.6:
	cmpl	$0, 40(%r15)
	jne	LBB0_15
LBB0_7:
	movq	48(%r15), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	movl	8(%rcx), %esi
	movq	%r15, %rdi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_9
## %bb.12:
	js	LBB0_13
## %bb.14:
	movq	_SSL_NOTHING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_15:
	movq	%r15, %rdi
	callq	_SSL_IS_TLS13
	testq	%rax, %rax
	je	LBB0_16
## %bb.19:
	cmpl	$0, 40(%r15)
	jne	LBB0_27
	jmp	LBB0_20
LBB0_32:
	movq	_WORK_MORE_C@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_30
	jmp	LBB0_34
LBB0_26:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	jmp	LBB0_27
LBB0_16:
	movl	44(%r15), %r14d
	movq	%r15, %rdi
	callq	_SSL_get_ciphers
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_ssl3_choose_cipher
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%rax, 16(%r15)
	cmpl	$0, 40(%r15)
	jne	LBB0_27
LBB0_20:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_tls_choose_sigalg
	testl	%eax, %eax
	je	LBB0_11
## %bb.21:
	movq	32(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.23:
	movq	16(%r15), %rax
	movq	_SSL_kDHE@GOTPCREL(%rip), %rdx
	movq	_SSL_kECDHE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	orl	(%rdx), %edi
	xorl	%esi, %esi
	andl	(%rax), %edi
	setne	%sil
	movq	%r15, %rdi
	callq	*%rcx
	movq	8(%r15), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_24
LBB0_9:
	movq	_SSL_R_CERT_CB_ERROR@GOTPCREL(%rip), %rax
	movq	_SSL_AD_INTERNAL_ERROR@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_13:
	movq	_SSL_X509_LOOKUP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	_WORK_MORE_B@GOTPCREL(%rip), %rbx
	jmp	LBB0_35
LBB0_17:
	movq	_SSL_R_NO_SHARED_CIPHER@GOTPCREL(%rip), %rax
	movq	_SSL_AD_HANDSHAKE_FAILURE@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rcx), %esi
	movq	_SSL_F_TLS_POST_PROCESS_CLIENT_HELLO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_SSLfatal
	jmp	LBB0_11
LBB0_22:
	movq	8(%r15), %rax
	movq	8(%rax), %rax
LBB0_24:
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:
	movq	$0, 24(%r15)
LBB0_27:
	movq	%r15, %rdi
	callq	_tls_handle_status_request
	testl	%eax, %eax
	je	LBB0_11
## %bb.28:
	movq	%r15, %rdi
	callq	_SSL_IS_TLS13
	testq	%rax, %rax
	jne	LBB0_30
## %bb.29:
	movq	%r15, %rdi
	callq	_tls_handle_alpn
	testl	%eax, %eax
	je	LBB0_11
LBB0_30:
	movq	%r15, %rdi
	callq	_ssl_check_srp_ext_ClientHello
	testl	%eax, %eax
	je	LBB0_31
## %bb.33:
	js	LBB0_11
LBB0_34:
	movq	_WORK_FINISHED_STOP@GOTPCREL(%rip), %rbx
	jmp	LBB0_35
LBB0_11:
	movq	_WORK_ERROR@GOTPCREL(%rip), %rbx
LBB0_35:
	movq	(%rbx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movq	_SSL_X509_LOOKUP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	_WORK_MORE_C@GOTPCREL(%rip), %rbx
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.comm	_WORK_MORE_A,8,3                ## @WORK_MORE_A
	.comm	_WORK_MORE_B,8,3                ## @WORK_MORE_B
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ## @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_POST_PROCESS_CLIENT_HELLO,4,2 ## @SSL_F_TLS_POST_PROCESS_CLIENT_HELLO
	.comm	_SSL_R_CERT_CB_ERROR,4,2        ## @SSL_R_CERT_CB_ERROR
	.comm	_SSL_X509_LOOKUP,8,3            ## @SSL_X509_LOOKUP
	.comm	_SSL_NOTHING,8,3                ## @SSL_NOTHING
	.comm	_SSL_AD_HANDSHAKE_FAILURE,4,2   ## @SSL_AD_HANDSHAKE_FAILURE
	.comm	_SSL_R_NO_SHARED_CIPHER,4,2     ## @SSL_R_NO_SHARED_CIPHER
	.comm	_SSL_kDHE,4,2                   ## @SSL_kDHE
	.comm	_SSL_kECDHE,4,2                 ## @SSL_kECDHE
	.comm	_WORK_MORE_C,8,3                ## @WORK_MORE_C
	.comm	_WORK_FINISHED_STOP,8,3         ## @WORK_FINISHED_STOP
	.comm	_WORK_ERROR,8,3                 ## @WORK_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_post_process_client_hello  ; -- Begin function tls_post_process_client_hello
	.p2align	2
_tls_post_process_client_hello:         ; @tls_post_process_client_hello
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _WORK_MORE_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WORK_MORE_A@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_tls_early_post_process_client_hello
	cbz	w0, LBB0_34
; %bb.2:
	tbz	w0, #31, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _WORK_MORE_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WORK_MORE_A@GOTPAGEOFF]
	b	LBB0_35
LBB0_4:
Lloh5:
	adrp	x8, _WORK_MORE_B@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WORK_MORE_B@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_14
LBB0_5:
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_SSL_IS_TLS13
	cbz	x0, LBB0_15
; %bb.7:
	ldr	w8, [x19, #40]
	cbnz	w8, LBB0_12
LBB0_8:
	ldr	x9, [x19, #48]
	ldr	x8, [x9]
	cbz	x8, LBB0_12
; %bb.9:
	ldr	w1, [x9, #8]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_21
; %bb.10:
	tbnz	w0, #31, LBB0_22
; %bb.11:
Lloh8:
	adrp	x8, _SSL_NOTHING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSL_NOTHING@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_12:
	mov	x0, x19
	bl	_SSL_IS_TLS13
	cbz	x0, LBB0_16
; %bb.13:
	ldr	w8, [x19, #40]
	cbnz	w8, LBB0_28
	b	LBB0_18
LBB0_14:
Lloh11:
	adrp	x8, _WORK_MORE_C@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WORK_MORE_C@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x8, x1
	b.eq	LBB0_31
	b	LBB0_33
LBB0_15:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	str	x8, [x19, #16]
	b	LBB0_28
LBB0_16:
	ldr	w20, [x19, #44]
	mov	x0, x19
	bl	_SSL_get_ciphers
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ssl3_choose_cipher
	cbz	x0, LBB0_23
; %bb.17:
	str	x0, [x19, #16]
	ldr	w8, [x19, #40]
	cbnz	w8, LBB0_28
LBB0_18:
	mov	x0, x19
	mov	w1, #1
	bl	_tls_choose_sigalg
	cbz	w0, LBB0_34
; %bb.19:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_25
; %bb.20:
	ldr	x9, [x19, #16]
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _SSL_kDHE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SSL_kDHE@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _SSL_kECDHE@GOTPAGE
Lloh18:
	ldr	x11, [x11, _SSL_kECDHE@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w9
	cset	w1, ne
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	b	LBB0_26
LBB0_21:
Lloh20:
	adrp	x8, _SSL_R_CERT_CB_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SSL_R_CERT_CB_ERROR@GOTPAGEOFF]
Lloh22:
	adrp	x9, _SSL_AD_INTERNAL_ERROR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SSL_AD_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_24
LBB0_22:
Lloh24:
	adrp	x8, _SSL_X509_LOOKUP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SSL_X509_LOOKUP@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh27:
	adrp	x8, _WORK_MORE_B@GOTPAGE
Lloh28:
	ldr	x8, [x8, _WORK_MORE_B@GOTPAGEOFF]
	b	LBB0_35
LBB0_23:
Lloh29:
	adrp	x8, _SSL_R_NO_SHARED_CIPHER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SSL_R_NO_SHARED_CIPHER@GOTPAGEOFF]
Lloh31:
	adrp	x9, _SSL_AD_HANDSHAKE_FAILURE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SSL_AD_HANDSHAKE_FAILURE@GOTPAGEOFF]
LBB0_24:
	ldr	w1, [x9]
Lloh33:
	adrp	x9, _SSL_F_TLS_POST_PROCESS_CLIENT_HELLO@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SSL_F_TLS_POST_PROCESS_CLIENT_HELLO@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x9]
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	b	LBB0_34
LBB0_25:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
LBB0_26:
	cbz	x0, LBB0_28
; %bb.27:
	str	xzr, [x19, #24]
LBB0_28:
	mov	x0, x19
	bl	_tls_handle_status_request
	cbz	w0, LBB0_34
; %bb.29:
	mov	x0, x19
	bl	_SSL_IS_TLS13
	cbnz	x0, LBB0_31
; %bb.30:
	mov	x0, x19
	bl	_tls_handle_alpn
	cbz	w0, LBB0_34
LBB0_31:
	mov	x0, x19
	bl	_ssl_check_srp_ext_ClientHello
	cbz	w0, LBB0_36
; %bb.32:
	tbnz	w0, #31, LBB0_34
LBB0_33:
Lloh36:
	adrp	x8, _WORK_FINISHED_STOP@GOTPAGE
Lloh37:
	ldr	x8, [x8, _WORK_FINISHED_STOP@GOTPAGEOFF]
	b	LBB0_35
LBB0_34:
Lloh38:
	adrp	x8, _WORK_ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _WORK_ERROR@GOTPAGEOFF]
LBB0_35:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_36:
Lloh40:
	adrp	x8, _SSL_X509_LOOKUP@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SSL_X509_LOOKUP@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh43:
	adrp	x8, _WORK_MORE_C@GOTPAGE
Lloh44:
	ldr	x8, [x8, _WORK_MORE_C@GOTPAGEOFF]
	b	LBB0_35
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_WORK_MORE_A,8,3                ; @WORK_MORE_A
	.comm	_WORK_MORE_B,8,3                ; @WORK_MORE_B
	.comm	_SSL_AD_INTERNAL_ERROR,4,2      ; @SSL_AD_INTERNAL_ERROR
	.comm	_SSL_F_TLS_POST_PROCESS_CLIENT_HELLO,4,2 ; @SSL_F_TLS_POST_PROCESS_CLIENT_HELLO
	.comm	_SSL_R_CERT_CB_ERROR,4,2        ; @SSL_R_CERT_CB_ERROR
	.comm	_SSL_X509_LOOKUP,8,3            ; @SSL_X509_LOOKUP
	.comm	_SSL_NOTHING,8,3                ; @SSL_NOTHING
	.comm	_SSL_AD_HANDSHAKE_FAILURE,4,2   ; @SSL_AD_HANDSHAKE_FAILURE
	.comm	_SSL_R_NO_SHARED_CIPHER,4,2     ; @SSL_R_NO_SHARED_CIPHER
	.comm	_SSL_kDHE,4,2                   ; @SSL_kDHE
	.comm	_SSL_kECDHE,4,2                 ; @SSL_kECDHE
	.comm	_WORK_MORE_C,8,3                ; @WORK_MORE_C
	.comm	_WORK_FINISHED_STOP,8,3         ; @WORK_FINISHED_STOP
	.comm	_WORK_ERROR,8,3                 ; @WORK_ERROR
.subsections_via_symbols
