	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_process_client_key_exchange_dh
_tls_process_client_key_exchange_dh:    ## @tls_process_client_key_exchange_dh
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rcx
	subq	%r13, %rcx
	shrq	$2, %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wpa_hexdump
	movq	%rbx, %rax
	subq	%r13, %rax
	je	LBB0_1
## %bb.2:
	cmpq	$11, %rax
	jg	LBB0_5
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_tlsv1_server_log
	jmp	LBB0_4
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_17
LBB0_5:
	movq	%r13, %rdi
	callq	_WPA_GET_BE16
	movl	%eax, %r15d
	addq	$8, %r13
	cltq
	subq	%r13, %rbx
	sarq	$2, %rbx
	cmpq	%rax, %rbx
	jge	LBB0_7
## %bb.6:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_tlsv1_server_log
LBB0_4:
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_DECODE_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	_wpa_hexdump
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	cmpq	$0, 8(%r14)
	je	LBB0_10
## %bb.11:
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_tlsv1_server_get_dh_p
	movq	-56(%rbp), %rdi
	movq	%rdi, -48(%rbp)
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %rbx
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	movq	-64(%rbp), %r8
	movq	-56(%rbp), %r9
	leaq	-48(%rbp), %rax
	movq	%r13, %rdi
	movl	%r15d, %esi
	pushq	%rax
	pushq	%rbx
	callq	_crypto_mod_exp
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	callq	_os_free
	jmp	LBB0_18
LBB0_10:
	movl	(%r12), %edi
	leaq	L_.str.6(%rip), %rsi
LBB0_17:
	callq	_wpa_printf
LBB0_18:
	movq	_TLS_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLS_ALERT_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_tlsv1_server_alert
	movl	$-1, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	(%r12), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_17
LBB0_15:
	movl	(%r12), %edi
	movq	-48(%rbp), %rcx
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_hexdump_key
	movq	(%r14), %rdx
	movq	8(%r14), %rdi
	movq	%rbx, %r13
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_os_memset
	movq	8(%r14), %rdi
	callq	_os_free
	movq	$0, 8(%r14)
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_tlsv1_server_derive_keys
	movl	%eax, %r15d
	movq	-48(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_os_memset
	movq	%r13, %rdi
	callq	_os_free
	testl	%r15d, %r15d
	je	LBB0_20
## %bb.16:
	movl	(%r12), %edi
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ClientDiffieHellmanPublic received"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.1:                               ## @.str.1
	.asciz	"TLSv1: ClientDiffieHellmanPublic"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"TLSv1: Implicit public value encoding not supported"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ## @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_INTERNAL_ERROR,4,2   ## @TLS_ALERT_INTERNAL_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"Invalid client public value length"

	.comm	_TLS_ALERT_DECODE_ERROR,4,2     ## @TLS_ALERT_DECODE_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"Client public value overflow (length %d)"

L_.str.5:                               ## @.str.5
	.asciz	"TLSv1: DH Yc (client's public value)"

L_.str.6:                               ## @.str.6
	.asciz	"TLSv1: No DH parameters available"

L_.str.7:                               ## @.str.7
	.asciz	"TLSv1: Could not allocate memory for DH"

L_.str.8:                               ## @.str.8
	.asciz	"TLSv1: Shared secret from DH key exchange"

L_.str.9:                               ## @.str.9
	.asciz	"TLSv1: Failed to derive keys"

	.no_dead_strip	_tls_process_client_key_exchange_dh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_process_client_key_exchange_dh
_tls_process_client_key_exchange_dh:    ; @tls_process_client_key_exchange_dh
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_tlsv1_server_log
Lloh2:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	subs	x8, x20, x22
	lsr	x3, x8, #2
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_wpa_hexdump
	subs	x8, x20, x22
	b.eq	LBB0_3
; %bb.1:
	cmp	x8, #11
	b.gt	LBB0_4
; %bb.2:
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh9:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_4:
	mov	x0, x22
	bl	_WPA_GET_BE16
	mov	x21, x0
	add	x22, x22, #8
	sxtw	x8, w21
	sub	x9, x20, x22
	cmp	x8, x9, asr #2
	b.le	LBB0_7
; %bb.5:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_tlsv1_server_log
Lloh16:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _TLS_ALERT_DECODE_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TLS_ALERT_DECODE_ERROR@GOTPAGEOFF]
	b	LBB0_16
LBB0_7:
Lloh21:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh22:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	bl	_wpa_hexdump
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_13
; %bb.8:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.9:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.10:
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x19
	bl	_tlsv1_server_get_dh_p
	ldr	x0, [sp, #8]
	str	x0, [sp, #24]
	bl	_os_malloc
	cbz	x0, LBB0_18
; %bb.11:
	mov	x20, x0
	ldp	x3, x2, [x19]
	ldp	x5, x4, [sp, #8]
	add	x7, sp, #24
	mov	x0, x22
	mov	x1, x21
	mov	x6, x20
	bl	_crypto_mod_exp
	cbz	x0, LBB0_19
; %bb.12:
	mov	x0, x20
	bl	_os_free
	b	LBB0_15
LBB0_13:
	ldr	w0, [x23]
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_14:
	bl	_wpa_printf
LBB0_15:
Lloh27:
	adrp	x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TLS_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TLS_ALERT_INTERNAL_ERROR@GOTPAGEOFF]
LBB0_16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_tlsv1_server_alert
	mov	w0, #-1
LBB0_17:
	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
	add	sp, sp, #96
	ret
LBB0_18:
	ldr	w0, [x23]
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_14
LBB0_19:
	ldr	w0, [x23]
	ldr	x3, [sp, #24]
Lloh34:
	adrp	x1, l_.str.8@PAGE
Lloh35:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x2, x20
	bl	_wpa_hexdump_key
	ldp	x2, x0, [x19]
	mov	w1, #0
	bl	_os_memset
	ldr	x0, [x19, #8]
	bl	_os_free
	str	xzr, [x19, #8]
	ldr	x2, [sp, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_tlsv1_server_derive_keys
	mov	x21, x0
	ldr	x2, [sp, #24]
	mov	x0, x20
	mov	w1, #0
	bl	_os_memset
	mov	x0, x20
	bl	_os_free
	cbz	w21, LBB0_21
; %bb.20:
	ldr	w0, [x23]
Lloh36:
	adrp	x1, l_.str.9@PAGE
Lloh37:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_14
LBB0_21:
	mov	w0, #0
	b	LBB0_17
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ClientDiffieHellmanPublic received"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.1:                               ; @.str.1
	.asciz	"TLSv1: ClientDiffieHellmanPublic"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"TLSv1: Implicit public value encoding not supported"

	.comm	_TLS_ALERT_LEVEL_FATAL,4,2      ; @TLS_ALERT_LEVEL_FATAL
	.comm	_TLS_ALERT_INTERNAL_ERROR,4,2   ; @TLS_ALERT_INTERNAL_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"Invalid client public value length"

	.comm	_TLS_ALERT_DECODE_ERROR,4,2     ; @TLS_ALERT_DECODE_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"Client public value overflow (length %d)"

l_.str.5:                               ; @.str.5
	.asciz	"TLSv1: DH Yc (client's public value)"

l_.str.6:                               ; @.str.6
	.asciz	"TLSv1: No DH parameters available"

l_.str.7:                               ; @.str.7
	.asciz	"TLSv1: Could not allocate memory for DH"

l_.str.8:                               ; @.str.8
	.asciz	"TLSv1: Shared secret from DH key exchange"

l_.str.9:                               ; @.str.9
	.asciz	"TLSv1: Failed to derive keys"

	.no_dead_strip	_tls_process_client_key_exchange_dh
.subsections_via_symbols
