	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_check_srp_ext_ClientHello
_ssl_check_srp_ext_ClientHello:         ## @ssl_check_srp_ext_ClientHello
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_SSL_AD_UNRECOGNIZED_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	16(%rdi), %rax
	movq	_SSL_kSRP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$1, %r14d
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_11
## %bb.2:
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.5:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_SSL_srp_server_param_with_username
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	_SSL3_AL_FATAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.8:
	movl	-20(%rbp), %esi
	movq	_SSL_F_SSL_CHECK_SRP_EXT_CLIENTHELLO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_AD_UNKNOWN_PSK_IDENTITY@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_4
## %bb.9:
	movq	_SSL_R_CLIENTHELLO_TLSEXT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	movq	_SSL_AD_UNKNOWN_PSK_IDENTITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_SSL_CHECK_SRP_EXT_CLIENTHELLO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_4:
	movq	_SSL_R_PSK_IDENTITY_NOT_FOUND@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_SSLfatal
	movl	$-1, %r14d
	jmp	LBB0_11
LBB0_6:
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_UNRECOGNIZED_NAME,4,2   ## @SSL_AD_UNRECOGNIZED_NAME
	.comm	_SSL_kSRP,4,2                   ## @SSL_kSRP
	.comm	_SSL_AD_UNKNOWN_PSK_IDENTITY,4,2 ## @SSL_AD_UNKNOWN_PSK_IDENTITY
	.comm	_SSL_F_SSL_CHECK_SRP_EXT_CLIENTHELLO,4,2 ## @SSL_F_SSL_CHECK_SRP_EXT_CLIENTHELLO
	.comm	_SSL_R_PSK_IDENTITY_NOT_FOUND,4,2 ## @SSL_R_PSK_IDENTITY_NOT_FOUND
	.comm	_SSL3_AL_FATAL,4,2              ## @SSL3_AL_FATAL
	.comm	_SSL_R_CLIENTHELLO_TLSEXT,4,2   ## @SSL_R_CLIENTHELLO_TLSEXT
	.no_dead_strip	_ssl_check_srp_ext_ClientHello
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_check_srp_ext_ClientHello
_ssl_check_srp_ext_ClientHello:         ; @ssl_check_srp_ext_ClientHello
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _SSL_AD_UNRECOGNIZED_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_AD_UNRECOGNIZED_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SSL_kSRP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SSL_kSRP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.3:
	add	x1, sp, #12
	mov	x0, x19
	bl	_SSL_srp_server_param_with_username
	tbnz	w0, #31, LBB0_9
; %bb.4:
Lloh6:
	adrp	x8, _SSL3_AL_FATAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL3_AL_FATAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _SSL_F_SSL_CHECK_SRP_EXT_CLIENTHELLO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL_F_SSL_CHECK_SRP_EXT_CLIENTHELLO@GOTPAGEOFF]
	ldr	w1, [sp, #12]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _SSL_AD_UNKNOWN_PSK_IDENTITY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SSL_AD_UNKNOWN_PSK_IDENTITY@GOTPAGEOFF]
Lloh14:
	adrp	x9, _SSL_R_PSK_IDENTITY_NOT_FOUND@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SSL_R_PSK_IDENTITY_NOT_FOUND@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x10, _SSL_R_CLIENTHELLO_TLSEXT@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SSL_R_CLIENTHELLO_TLSEXT@GOTPAGEOFF]
	cmp	w1, w8
	csel	x8, x9, x10, eq
	b	LBB0_8
LBB0_6:
	mov	w0, #1
	b	LBB0_10
LBB0_7:
Lloh19:
	adrp	x8, _SSL_AD_UNKNOWN_PSK_IDENTITY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SSL_AD_UNKNOWN_PSK_IDENTITY@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _SSL_F_SSL_CHECK_SRP_EXT_CLIENTHELLO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SSL_F_SSL_CHECK_SRP_EXT_CLIENTHELLO@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _SSL_R_PSK_IDENTITY_NOT_FOUND@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SSL_R_PSK_IDENTITY_NOT_FOUND@GOTPAGEOFF]
LBB0_8:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
	mov	w0, #-1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_UNRECOGNIZED_NAME,4,2   ; @SSL_AD_UNRECOGNIZED_NAME
	.comm	_SSL_kSRP,4,2                   ; @SSL_kSRP
	.comm	_SSL_AD_UNKNOWN_PSK_IDENTITY,4,2 ; @SSL_AD_UNKNOWN_PSK_IDENTITY
	.comm	_SSL_F_SSL_CHECK_SRP_EXT_CLIENTHELLO,4,2 ; @SSL_F_SSL_CHECK_SRP_EXT_CLIENTHELLO
	.comm	_SSL_R_PSK_IDENTITY_NOT_FOUND,4,2 ; @SSL_R_PSK_IDENTITY_NOT_FOUND
	.comm	_SSL3_AL_FATAL,4,2              ; @SSL3_AL_FATAL
	.comm	_SSL_R_CLIENTHELLO_TLSEXT,4,2   ; @SSL_R_CLIENTHELLO_TLSEXT
	.no_dead_strip	_ssl_check_srp_ext_ClientHello
.subsections_via_symbols
