	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_write_server_key_exchange
_tls_write_server_key_exchange:         ## @tls_write_server_key_exchange
	.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
	subq	$888, %rsp                      ## imm = 0x378
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	32(%rdi), %edi
	callq	_tls_get_cipher_suite
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_TLS_KEY_X_NULL@GOTPCREL(%rip), %rax
LBB0_2:
	movq	(%rax), %r12
	movl	32(%r13), %edi
	callq	_tls_server_key_exchange_allowed
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	_TLS_KEY_X_DH_anon@GOTPCREL(%rip), %rax
	movq	_TLS_KEY_X_DHE_RSA@GOTPCREL(%rip), %rcx
	cmpq	(%rax), %r12
	je	LBB0_7
## %bb.4:
	cmpq	(%rcx), %r12
	je	LBB0_7
## %bb.5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_14
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_15
LBB0_7:
	movq	40(%r13), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	cmpq	$0, 16(%rax)
	je	LBB0_13
## %bb.9:
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.10:
	leaq	-896(%rbp), %rsi
	leaq	-856(%rbp), %rdx
	movq	%r13, %rdi
	callq	_tlsv1_server_get_dh_p
	movq	(%r13), %rdi
	callq	_os_free
	movq	-856(%rbp), %rdi
	movq	%rdi, 8(%r13)
	callq	_os_malloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	movq	8(%r13), %rsi
	movq	%rax, %rdi
	callq	_random_get_bytes
	testq	%rax, %rax
	je	LBB0_20
## %bb.12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_tlsv1_server_alert
	movq	(%r13), %rdi
	callq	_os_free
	movq	$0, (%r13)
	jmp	LBB0_14
LBB0_13:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_14:
	movl	$-1, %ebx
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_49
## %bb.16:
	movl	%ebx, %eax
	addq	$888, %rsp                      ## imm = 0x378
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_18:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_19:
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_tlsv1_server_alert
	jmp	LBB0_14
LBB0_20:
	movq	%rbx, -920(%rbp)                ## 8-byte Spill
	movq	-896(%rbp), %rsi
	movq	(%r13), %rdi
	movq	8(%r13), %rdx
	callq	_os_memcmp
	movq	(%r13), %rbx
	testq	%rax, %rax
	jle	LBB0_22
## %bb.21:
	movq	$0, (%rbx)
LBB0_22:
	leaq	24(%r13), %rax
	movq	%rax, -912(%rbp)                ## 8-byte Spill
	movq	8(%r13), %rcx
	leaq	(%rbx,%rcx,8), %r8
	movl	$8, %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %r14
	movq	%rdi, %rax
	leaq	(%rbx,%rsi), %rdx
	cmpq	%r8, %rdx
	jae	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	leaq	-8(%r14), %rdx
	leaq	1(%rax), %rdi
	addq	$8, %rsi
	cmpq	$0, (%rbx,%rax,8)
	je	LBB0_23
LBB0_25:
	testq	%r14, %r14
	je	LBB0_27
## %bb.26:
	movq	%rbx, %rsi
	subq	%r14, %rsi
	subl	%eax, %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_os_memmove
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	subq	%rax, %rbx
	subq	%r14, %rbx
	sarq	$3, %rbx
	subq	%rbx, %rcx
	movq	%rcx, 8(%r13)
	movq	%rax, %rbx
LBB0_27:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_hexdump_key
	movq	-856(%rbp), %rdi
	movq	%rdi, -880(%rbp)
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_30
## %bb.28:
	movq	%rax, %rbx
	movq	40(%r13), %rax
	movq	(%rax), %rdi
	movl	8(%rax), %esi
	movq	(%r13), %rdx
	movq	8(%r13), %rcx
	movq	-896(%rbp), %r8
	movq	-856(%rbp), %r9
	leaq	-880(%rbp), %rax
	pushq	%rax
	pushq	%rbx
	callq	_crypto_mod_exp
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_31
## %bb.29:
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_tlsv1_server_alert
	movq	%rbx, %rdi
	jmp	LBB0_38
LBB0_30:
	movl	(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_18
LBB0_31:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-880(%rbp), %ecx
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_hexdump
	movq	-920(%rbp), %rax                ## 8-byte Reload
	movq	%rbx, -872(%rbp)                ## 8-byte Spill
	movq	(%rax), %rbx
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	callq	_tlsv1_server_log
	movq	_TLS_RECORD_HEADER_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	movq	_TLS_HANDSHAKE_TYPE_SERVER_KEY_EXCHANGE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, (%rbx,%rdx,8)
	movq	%rbx, -928(%rbp)                ## 8-byte Spill
	leaq	32(%rbx,%rdx,8), %r14
	movq	-856(%rbp), %rsi
	leaq	2(%rsi), %rax
	movq	%r15, %rcx
	subq	%r14, %rcx
	sarq	$3, %rcx
	cmpq	%rcx, %rax
	jbe	LBB0_33
## %bb.32:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_37
LBB0_33:
	movq	%rdx, -904(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_WPA_PUT_BE16
	leaq	16(%r14), %rdi
	movq	-896(%rbp), %rsi
	movq	-856(%rbp), %rdx
	xorl	%eax, %eax
	callq	_os_memcpy
	movq	%r14, %rcx
	movq	-856(%rbp), %rax
	leaq	(%r14,%rax,8), %rbx
	addq	$16, %rbx
	movq	40(%r13), %rax
	movslq	8(%rax), %rsi
	leaq	2(%rsi), %rax
	movq	%r15, %rcx
	subq	%rbx, %rcx
	sarq	$3, %rcx
	cmpq	%rax, %rcx
	jae	LBB0_35
## %bb.34:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_37
LBB0_35:
	movq	%rbx, %rdi
	callq	_WPA_PUT_BE16
	leaq	16(%rbx), %rdi
	movq	40(%r13), %rax
	movq	(%rax), %rsi
	movl	8(%rax), %edx
	xorl	%eax, %eax
	callq	_os_memcpy
	movq	40(%r13), %rax
	movslq	8(%rax), %rax
	leaq	(%rbx,%rax,8), %rbx
	addq	$16, %rbx
	movq	-880(%rbp), %rsi
	leaq	2(%rsi), %rax
	movq	%r15, %rcx
	subq	%rbx, %rcx
	sarq	$3, %rcx
	cmpq	%rcx, %rax
	jbe	LBB0_39
## %bb.36:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
LBB0_37:
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_tlsv1_server_alert
	movq	-872(%rbp), %rdi                ## 8-byte Reload
LBB0_38:
	callq	_os_free
	jmp	LBB0_14
LBB0_39:
	movq	%rbx, %rdi
	callq	_WPA_PUT_BE16
	leaq	16(%rbx), %rdi
	movq	-880(%rbp), %rdx
	movq	-872(%rbp), %rsi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_os_memcpy
	movq	-880(%rbp), %rax
	leaq	(%rbx,%rax,8), %rax
	addq	$16, %rax
	movq	%rax, -864(%rbp)                ## 8-byte Spill
	movq	-872(%rbp), %rdi                ## 8-byte Reload
	callq	_os_free
	movq	_TLS_KEY_X_DHE_RSA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_45
## %bb.40:
	movq	-912(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_TLS_VERSION_1_2@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jge	LBB0_19
## %bb.41:
	movl	48(%r13), %edx
	movl	52(%r13), %esi
	movq	-864(%rbp), %r8                 ## 8-byte Reload
	subq	%r14, %r8
	shrq	$3, %r8
	leaq	-848(%rbp), %r9
	movq	%r14, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_tls_key_x_server_params_hash
	testl	%eax, %eax
	js	LBB0_19
## %bb.42:
	movl	%eax, %ebx
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	leaq	-848(%rbp), %rdx
	movl	%ebx, %ecx
	callq	_wpa_hexdump
	movq	-864(%rbp), %rax                ## 8-byte Reload
	leaq	16(%rax), %r12
	movq	%r15, %rax
	subq	%r12, %rax
	sarq	$3, %rax
	movq	%rax, -888(%rbp)
	movq	40(%r13), %rax
	testq	%rax, %rax
	je	LBB0_48
## %bb.43:
	movl	12(%rax), %edi
	leaq	-848(%rbp), %rsi
	leaq	-888(%rbp), %r8
	movl	%ebx, %edx
	movq	%r12, %rcx
	callq	_crypto_private_key_sign_pkcs1
	testq	%rax, %rax
	js	LBB0_48
## %bb.44:
	movq	-888(%rbp), %rsi
	movq	-864(%rbp), %rdi                ## 8-byte Reload
	callq	_WPA_PUT_BE16
	movq	-888(%rbp), %rax
	leaq	(%r12,%rax,8), %rax
	movq	%rax, -864(%rbp)                ## 8-byte Spill
LBB0_45:
	movq	-904(%rbp), %rax                ## 8-byte Reload
	movq	-928(%rbp), %r14                ## 8-byte Reload
	leaq	(%r14,%rax,8), %r12
	leaq	(%r14,%rax,8), %rdi
	addq	$8, %rdi
	movq	-864(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	subq	%rdi, %rsi
	shrq	$3, %rsi
	addl	$-3, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_WPA_PUT_BE24
	movq	_TLS_CONTENT_TYPE_HANDSHAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	%r14, %r15
	shrq	$3, %r15
	subq	%r12, %rbx
	shrq	$3, %rbx
	subq	$8, %rsp
	leaq	-848(%rbp), %rax
	movq	-912(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rdx
	movl	%r15d, %ecx
	movq	%r12, %r8
	movl	%ebx, %r9d
	pushq	%rax
	callq	_tlsv1_record_send
	addq	$16, %rsp
	testq	%rax, %rax
	js	LBB0_47
## %bb.46:
	movq	-848(%rbp), %rax
	leaq	(%r14,%rax,8), %r14
	addq	$20, %r13
	movq	%r14, %rdx
	subq	%r12, %rdx
	shrq	$3, %rdx
	movq	%r13, %rdi
	movq	%r12, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_tls_verify_hash_add
	movq	-920(%rbp), %rax                ## 8-byte Reload
	movq	%r14, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_47:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.14(%rip), %rsi
	jmp	LBB0_18
LBB0_48:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_18
LBB0_49:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS_KEY_X_NULL,8,3             ## @TLS_KEY_X_NULL
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLSv1: No ServerKeyExchange needed"

	.comm	_TLS_KEY_X_DH_anon,8,3          ## @TLS_KEY_X_DH_anon
	.comm	_TLS_KEY_X_DHE_RSA,8,3          ## @TLS_KEY_X_DHE_RSA
L_.str.1:                               ## @.str.1
	.asciz	"TLSv1: ServerKeyExchange not yet supported with key exchange type %d"

L_.str.2:                               ## @.str.2
	.asciz	"TLSv1: No DH parameters available for ServerKeyExhcange"

L_.str.3:                               ## @.str.3
	.asciz	"TLSv1: Failed to allocate memory for secret (Diffie-Hellman)"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ## @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_INTERNAL_ERROR,4,2   ## @TLS_ALERT_INTERNAL_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"TLSv1: Failed to get random data for Diffie-Hellman"

L_.str.5:                               ## @.str.5
	.asciz	"TLSv1: DH server's secret value"

L_.str.6:                               ## @.str.6
	.asciz	"TLSv1: Failed to allocate memory for Diffie-Hellman"

L_.str.7:                               ## @.str.7
	.asciz	"TLSv1: DH Ys (server's public value)"

L_.str.8:                               ## @.str.8
	.asciz	"Send ServerKeyExchange"

	.comm	_TLS_RECORD_HEADER_LEN,4,2      ## @TLS_RECORD_HEADER_LEN
	.comm	_TLS_HANDSHAKE_TYPE_SERVER_KEY_EXCHANGE,4,2 ## @TLS_HANDSHAKE_TYPE_SERVER_KEY_EXCHANGE
L_.str.9:                               ## @.str.9
	.asciz	"TLSv1: Not enough buffer space for dh_p"

L_.str.10:                              ## @.str.10
	.asciz	"TLSv1: Not enough buffer space for dh_g"

L_.str.11:                              ## @.str.11
	.asciz	"TLSv1: Not enough buffer space for dh_Ys"

	.comm	_TLS_VERSION_1_2,8,3            ## @TLS_VERSION_1_2
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.12:                              ## @.str.12
	.asciz	"TLS: ServerKeyExchange signed_params hash"

L_.str.13:                              ## @.str.13
	.asciz	"TLSv1: Failed to sign hash (PKCS #1)"

	.comm	_TLS_CONTENT_TYPE_HANDSHAKE,4,2 ## @TLS_CONTENT_TYPE_HANDSHAKE
L_.str.14:                              ## @.str.14
	.asciz	"TLSv1: Failed to generate a record"

	.comm	_TLS_BREAK_SRV_KEY_X_HASH,4,2   ## @TLS_BREAK_SRV_KEY_X_HASH
	.comm	_TLS_BREAK_SRV_KEY_X_SIGNATURE,4,2 ## @TLS_BREAK_SRV_KEY_X_SIGNATURE
	.comm	_TLS_HASH_ALG_SHA256,4,2        ## @TLS_HASH_ALG_SHA256
	.comm	_TLS_SIGN_ALG_RSA,4,2           ## @TLS_SIGN_ALG_RSA
	.no_dead_strip	_tls_write_server_key_exchange
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_write_server_key_exchange
_tls_write_server_key_exchange:         ; @tls_write_server_key_exchange
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #880
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	w0, [x0, #32]
	bl	_tls_get_cipher_suite
Lloh3:
	adrp	x8, _TLS_KEY_X_NULL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TLS_KEY_X_NULL@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x0, eq
	ldr	x28, [x8]
	ldr	w0, [x19, #32]
	bl	_tls_server_key_exchange_allowed
	cbz	w0, LBB0_8
; %bb.1:
Lloh5:
	adrp	x8, _TLS_KEY_X_DH_anon@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TLS_KEY_X_DH_anon@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x24, _TLS_KEY_X_DHE_RSA@GOTPAGE
Lloh9:
	ldr	x24, [x24, _TLS_KEY_X_DHE_RSA@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x28, x8
	ccmp	x28, x9, #4, ne
	b.ne	LBB0_9
; %bb.2:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_10
; %bb.3:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_10
; %bb.4:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.5:
	add	x1, sp, #48
	add	x2, sp, #40
	mov	x0, x19
	bl	_tlsv1_server_get_dh_p
	ldr	x0, [x19]
	bl	_os_free
	ldr	x0, [sp, #40]
	str	x0, [x19, #8]
	bl	_os_malloc
	str	x0, [x19]
	cbz	x0, LBB0_15
; %bb.6:
	ldr	x1, [x19, #8]
	bl	_random_get_bytes
	cbz	x0, LBB0_18
; %bb.7:
Lloh10:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
Lloh15:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tlsv1_server_alert
	ldr	x0, [x19]
	bl	_os_free
	str	xzr, [x19]
	b	LBB0_12
LBB0_8:
Lloh21:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
	b	LBB0_13
LBB0_9:
Lloh26:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	str	x28, [sp]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh31:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	bl	_wpa_printf
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldur	x8, [x29, #-96]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_46
; %bb.14:
	add	sp, sp, #880
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh39:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
Lloh42:
	adrp	x1, l_.str.3@PAGE
Lloh43:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_16:
	bl	_wpa_printf
LBB0_17:
Lloh44:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tlsv1_server_alert
	b	LBB0_12
LBB0_18:
	ldr	x1, [sp, #48]
	ldp	x0, x2, [x19]
	bl	_os_memcmp
	ldr	x23, [x19]
	cmp	x0, #1
	b.lt	LBB0_20
; %bb.19:
	str	xzr, [x23]
LBB0_20:
	mov	x9, #0
	add	x27, x19, #24
	ldr	x3, [x19, #8]
	add	x8, x23, x3, lsl #3
	mov	x10, x3
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	mov	x22, x9
	mov	x2, x10
	add	x1, x23, x9
	add	x9, x1, #8
	cmp	x9, x8
	b.hs	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x11, [x1]
	add	x9, x22, #8
	sub	w10, w2, #1
	cbz	x11, LBB0_21
LBB0_23:
	cbz	x22, LBB0_25
; %bb.24:
	mov	x0, x23
	bl	_os_memmove
	ldp	x8, x9, [x19]
	sub	x10, x23, x8
	add	x10, x10, x22
	sub	x3, x9, x10, asr #3
	str	x3, [x19, #8]
	mov	x23, x8
LBB0_25:
Lloh50:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh51:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh52:
	adrp	x1, l_.str.5@PAGE
Lloh53:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x23
	bl	_wpa_hexdump_key
	ldr	x0, [sp, #40]
	str	x0, [sp, #56]
	bl	_os_malloc
	cbz	x0, LBB0_29
; %bb.26:
	mov	x25, x0
	ldr	x8, [x19, #40]
	ldr	x0, [x8]
	ldr	w1, [x8, #8]
	ldp	x2, x3, [x19]
	ldp	x5, x4, [sp, #40]
	add	x7, sp, #56
	mov	x6, x25
	bl	_crypto_mod_exp
	cbnz	x0, LBB0_35
; %bb.27:
	ldr	w0, [x22]
	ldr	w3, [sp, #56]
Lloh54:
	adrp	x1, l_.str.7@PAGE
Lloh55:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x25
	bl	_wpa_hexdump
	ldr	x23, [x20]
Lloh56:
	adrp	x1, l_.str.8@PAGE
Lloh57:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_tlsv1_server_log
Lloh58:
	adrp	x8, _TLS_RECORD_HEADER_LEN@GOTPAGE
Lloh59:
	ldr	x8, [x8, _TLS_RECORD_HEADER_LEN@GOTPAGEOFF]
Lloh60:
	ldrsw	x8, [x8]
	str	x23, [sp, #24]                  ; 8-byte Folded Spill
	add	x23, x23, x8, lsl #3
Lloh61:
	adrp	x8, _TLS_HANDSHAKE_TYPE_SERVER_KEY_EXCHANGE@GOTPAGE
Lloh62:
	ldr	x8, [x8, _TLS_HANDSHAKE_TYPE_SERVER_KEY_EXCHANGE@GOTPAGEOFF]
Lloh63:
	ldrsw	x8, [x8]
	mov	x26, x23
	str	x8, [x26], #32
	ldr	x1, [sp, #40]
	add	x8, x1, #2
	sub	x9, x21, x26
	cmp	x8, x9, asr #3
	b.ls	LBB0_30
; %bb.28:
	ldr	w0, [x22]
Lloh64:
	adrp	x1, l_.str.9@PAGE
Lloh65:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_34
LBB0_29:
	ldr	w0, [x22]
Lloh66:
	adrp	x1, l_.str.6@PAGE
Lloh67:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_16
LBB0_30:
	str	x27, [sp, #16]                  ; 8-byte Folded Spill
	mov	x0, x26
	bl	_WPA_PUT_BE16
	add	x27, x26, #16
	ldp	x9, x8, [sp, #40]
	stp	x8, x9, [sp]
	mov	x0, x27
	bl	_os_memcpy
	ldr	x8, [sp, #40]
	add	x27, x27, x8, lsl #3
	ldr	x8, [x19, #40]
	ldrsw	x1, [x8, #8]
	add	x8, x1, #2
	sub	x9, x21, x27
	cmp	x8, x9, asr #3
	b.ls	LBB0_32
; %bb.31:
	ldr	w0, [x22]
Lloh68:
	adrp	x1, l_.str.10@PAGE
Lloh69:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_34
LBB0_32:
	mov	x0, x27
	bl	_WPA_PUT_BE16
	add	x27, x27, #16
	ldr	x8, [x19, #40]
	ldr	x9, [x8]
	ldr	w8, [x8, #8]
	stp	x9, x8, [sp]
	mov	x0, x27
	bl	_os_memcpy
	ldr	x8, [x19, #40]
	ldrsw	x8, [x8, #8]
	add	x27, x27, x8, lsl #3
	ldr	x1, [sp, #56]
	add	x8, x1, #2
	sub	x9, x21, x27
	cmp	x8, x9, asr #3
	b.ls	LBB0_36
; %bb.33:
	ldr	w0, [x22]
Lloh70:
	adrp	x1, l_.str.11@PAGE
Lloh71:
	add	x1, x1, l_.str.11@PAGEOFF
LBB0_34:
	bl	_wpa_printf
LBB0_35:
Lloh72:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh73:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
Lloh75:
	adrp	x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGE
Lloh76:
	ldr	x8, [x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGEOFF]
Lloh77:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tlsv1_server_alert
	mov	x0, x25
	bl	_os_free
	b	LBB0_12
LBB0_36:
	mov	x0, x27
	bl	_WPA_PUT_BE16
	add	x27, x27, #16
	ldr	x8, [sp, #56]
	stp	x25, x8, [sp]
	mov	x0, x27
	bl	_os_memcpy
	ldr	x8, [sp, #56]
	add	x27, x27, x8, lsl #3
	mov	x0, x25
	bl	_os_free
	ldr	x8, [x24]
	cmp	x28, x8
	b.ne	LBB0_42
; %bb.37:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x0, [x8]
Lloh78:
	adrp	x8, _TLS_VERSION_1_2@GOTPAGE
Lloh79:
	ldr	x8, [x8, _TLS_VERSION_1_2@GOTPAGEOFF]
Lloh80:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_17
; %bb.38:
	ldp	w2, w1, [x19, #48]
	sub	x8, x27, x26
	lsr	x4, x8, #3
	add	x5, sp, #64
	mov	x3, x26
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_tls_key_x_server_params_hash
	tbnz	w0, #31, LBB0_17
; %bb.39:
	mov	x25, x0
Lloh81:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh82:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh83:
	ldr	w0, [x8]
Lloh84:
	adrp	x1, l_.str.12@PAGE
Lloh85:
	add	x1, x1, l_.str.12@PAGEOFF
	add	x2, sp, #64
	mov	x3, x25
	bl	_wpa_hexdump
	add	x26, x27, #16
	sub	x8, x21, x26
	asr	x8, x8, #3
	str	x8, [sp, #32]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_45
; %bb.40:
	ldr	w0, [x8, #12]
	add	x1, sp, #64
	add	x4, sp, #32
	mov	x2, x25
	mov	x3, x26
	bl	_crypto_private_key_sign_pkcs1
	tbnz	x0, #63, LBB0_45
; %bb.41:
	ldr	x1, [sp, #32]
	mov	x0, x27
	bl	_WPA_PUT_BE16
	ldr	x8, [sp, #32]
	add	x27, x26, x8, lsl #3
LBB0_42:
	add	x0, x23, #8
	sub	x8, x27, x0
	lsr	x8, x8, #3
	sub	w1, w8, #3
	bl	_WPA_PUT_BE24
Lloh86:
	adrp	x8, _TLS_CONTENT_TYPE_HANDSHAKE@GOTPAGE
Lloh87:
	ldr	x8, [x8, _TLS_CONTENT_TYPE_HANDSHAKE@GOTPAGEOFF]
Lloh88:
	ldr	w1, [x8]
	ldp	x0, x9, [sp, #16]               ; 16-byte Folded Reload
	sub	x8, x21, x9
	mov	x21, x9
	lsr	x3, x8, #3
	sub	x8, x27, x23
	lsr	x5, x8, #3
	add	x6, sp, #64
	mov	x2, x9
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x23
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_tlsv1_record_send
	tbnz	x0, #63, LBB0_44
; %bb.43:
	ldr	x8, [sp, #64]
	add	x21, x21, x8, lsl #3
	add	x0, x19, #20
	sub	x8, x21, x23
	lsr	x2, x8, #3
	mov	x1, x23
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_tls_verify_hash_add
	mov	w0, #0
	str	x21, [x20]
	b	LBB0_13
LBB0_44:
	ldr	w0, [x22]
Lloh89:
	adrp	x1, l_.str.14@PAGE
Lloh90:
	add	x1, x1, l_.str.14@PAGEOFF
	b	LBB0_16
LBB0_45:
	ldr	w0, [x22]
Lloh91:
	adrp	x1, l_.str.13@PAGE
Lloh92:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_16
LBB0_46:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpAdd	Lloh91, Lloh92
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS_KEY_X_NULL,8,3             ; @TLS_KEY_X_NULL
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLSv1: No ServerKeyExchange needed"

	.comm	_TLS_KEY_X_DH_anon,8,3          ; @TLS_KEY_X_DH_anon
	.comm	_TLS_KEY_X_DHE_RSA,8,3          ; @TLS_KEY_X_DHE_RSA
l_.str.1:                               ; @.str.1
	.asciz	"TLSv1: ServerKeyExchange not yet supported with key exchange type %d"

l_.str.2:                               ; @.str.2
	.asciz	"TLSv1: No DH parameters available for ServerKeyExhcange"

l_.str.3:                               ; @.str.3
	.asciz	"TLSv1: Failed to allocate memory for secret (Diffie-Hellman)"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ; @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_INTERNAL_ERROR,4,2   ; @TLS_ALERT_INTERNAL_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"TLSv1: Failed to get random data for Diffie-Hellman"

l_.str.5:                               ; @.str.5
	.asciz	"TLSv1: DH server's secret value"

l_.str.6:                               ; @.str.6
	.asciz	"TLSv1: Failed to allocate memory for Diffie-Hellman"

l_.str.7:                               ; @.str.7
	.asciz	"TLSv1: DH Ys (server's public value)"

l_.str.8:                               ; @.str.8
	.asciz	"Send ServerKeyExchange"

	.comm	_TLS_RECORD_HEADER_LEN,4,2      ; @TLS_RECORD_HEADER_LEN
	.comm	_TLS_HANDSHAKE_TYPE_SERVER_KEY_EXCHANGE,4,2 ; @TLS_HANDSHAKE_TYPE_SERVER_KEY_EXCHANGE
l_.str.9:                               ; @.str.9
	.asciz	"TLSv1: Not enough buffer space for dh_p"

l_.str.10:                              ; @.str.10
	.asciz	"TLSv1: Not enough buffer space for dh_g"

l_.str.11:                              ; @.str.11
	.asciz	"TLSv1: Not enough buffer space for dh_Ys"

	.comm	_TLS_VERSION_1_2,8,3            ; @TLS_VERSION_1_2
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.12:                              ; @.str.12
	.asciz	"TLS: ServerKeyExchange signed_params hash"

l_.str.13:                              ; @.str.13
	.asciz	"TLSv1: Failed to sign hash (PKCS #1)"

	.comm	_TLS_CONTENT_TYPE_HANDSHAKE,4,2 ; @TLS_CONTENT_TYPE_HANDSHAKE
l_.str.14:                              ; @.str.14
	.asciz	"TLSv1: Failed to generate a record"

	.comm	_TLS_BREAK_SRV_KEY_X_HASH,4,2   ; @TLS_BREAK_SRV_KEY_X_HASH
	.comm	_TLS_BREAK_SRV_KEY_X_SIGNATURE,4,2 ; @TLS_BREAK_SRV_KEY_X_SIGNATURE
	.comm	_TLS_HASH_ALG_SHA256,4,2        ; @TLS_HASH_ALG_SHA256
	.comm	_TLS_SIGN_ALG_RSA,4,2           ; @TLS_SIGN_ALG_RSA
	.no_dead_strip	_tls_write_server_key_exchange
.subsections_via_symbols
