	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tlsv1_process_diffie_hellman
_tlsv1_process_diffie_hellman:          ## @tlsv1_process_diffie_hellman
	.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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_tlsv1_client_free_dh
	cmpq	$3, %rbx
	jl	LBB0_21
## %bb.1:
	movq	%r14, %rdi
	callq	_WPA_GET_BE16
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	-8(,%rbx,4), %rcx
	sarq	$2, %rcx
	cmpq	%rcx, %rax
	jbe	LBB0_4
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_21:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r15, %rdi
	callq	_tlsv1_client_free_dh
	movl	$-1, %r13d
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	movl	%r13d, %eax
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	8(%r14), %r13
	movq	%rax, (%r15)
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_count_bits
	cmpl	$767, %eax                      ## imm = 0x2FF
	ja	LBB0_6
## %bb.5:
	movq	_MSG_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	callq	_wpa_hexdump
	jmp	LBB0_21
LBB0_6:
	movq	(%r15), %rsi
	movq	%r13, %rdi
	callq	_os_memdup
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_21
## %bb.7:
	leaq	(%r14,%rbx,4), %rbx
	movq	(%r15), %rcx
	leaq	(%r13,%rcx,4), %r13
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wpa_hexdump
	movq	%rbx, -312(%rbp)                ## 8-byte Spill
	subq	%r13, %rbx
	cmpq	$12, %rbx
	jl	LBB0_21
## %bb.8:
	movq	%r13, %rdi
	callq	_WPA_GET_BE16
	testq	%rax, %rax
	je	LBB0_21
## %bb.9:
	addq	$8, %r13
	movq	-312(%rbp), %rcx                ## 8-byte Reload
	subq	%r13, %rcx
	sarq	$2, %rcx
	cmpq	%rcx, %rax
	ja	LBB0_21
## %bb.10:
	movq	%rax, 16(%r15)
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_os_memdup
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_21
## %bb.11:
	movq	16(%r15), %rcx
	leaq	(,%rcx,4), %rbx
	addq	%r13, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wpa_hexdump
	cmpq	$1, 16(%r15)
	jne	LBB0_13
## %bb.12:
	movq	24(%r15), %rax
	cmpl	$2, (%rax)
	jl	LBB0_21
LBB0_13:
	movq	-312(%rbp), %rax                ## 8-byte Reload
	subq	%rbx, %rax
	cmpq	$12, %rax
	jl	LBB0_21
## %bb.14:
	movq	%rbx, %rdi
	callq	_WPA_GET_BE16
	testq	%rax, %rax
	je	LBB0_21
## %bb.15:
	addq	$8, %rbx
	movq	-312(%rbp), %rcx                ## 8-byte Reload
	subq	%rbx, %rcx
	sarq	$2, %rcx
	cmpq	%rcx, %rax
	ja	LBB0_21
## %bb.16:
	movq	%rax, 32(%r15)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_os_memdup
	movq	%rax, 40(%r15)
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:
	movq	%rbx, -320(%rbp)                ## 8-byte Spill
	movq	32(%r15), %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%rax, %rdx
	movl	%ebx, %ecx
	callq	_wpa_hexdump
	movq	_TLS_KEY_X_DHE_RSA@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpq	%r12, (%rax)
	jne	LBB0_22
## %bb.18:
	movq	56(%r15), %rdi
	movq	_TLS_VERSION_1_2@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_21
## %bb.19:
	movq	-320(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rbx,4), %r12
	movl	64(%r15), %edx
	movl	68(%r15), %esi
	movq	%r12, %r8
	subq	%r14, %r8
	shrq	$2, %r8
	leaq	-304(%rbp), %r9
	movq	%r14, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_tls_key_x_server_params_hash
	testl	%eax, %eax
	js	LBB0_21
## %bb.20:
	movl	%eax, %ebx
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	leaq	-304(%rbp), %r14
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_wpa_hexdump
	movq	56(%r15), %rdi
	movl	48(%r15), %esi
	movq	-312(%rbp), %r9                 ## 8-byte Reload
	subq	%r12, %r9
	shrq	$2, %r9
	leaq	-324(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r14, %rdx
	movl	%ebx, %ecx
	movq	%r12, %r8
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_tls_verify_signature
	testq	%rax, %rax
	jns	LBB0_22
	jmp	LBB0_21
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLSv1: Invalid dh_p length %u"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"TLSv1: Reject under 768-bit DH prime (insecure; only %u bits)"

L_.str.2:                               ## @.str.2
	.asciz	"TLSv1: Rejected DH prime"

L_.str.3:                               ## @.str.3
	.asciz	"TLSv1: DH p (prime)"

L_.str.4:                               ## @.str.4
	.asciz	"TLSv1: DH g (generator)"

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

	.comm	_TLS_KEY_X_DHE_RSA,8,3          ## @TLS_KEY_X_DHE_RSA
	.comm	_TLS_VERSION_1_2,8,3            ## @TLS_VERSION_1_2
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.6:                               ## @.str.6
	.asciz	"TLSv1: ServerKeyExchange hash"

L_.str.7:                               ## @.str.7
	.asciz	"TLSv1: Processing DH params failed"

	.comm	_TLS_HASH_ALG_SHA256,4,2        ## @TLS_HASH_ALG_SHA256
	.comm	_TLS_HASH_ALG_SHA384,4,2        ## @TLS_HASH_ALG_SHA384
	.comm	_TLS_HASH_ALG_SHA512,4,2        ## @TLS_HASH_ALG_SHA512
	.comm	_TLS_SIGN_ALG_RSA,4,2           ## @TLS_SIGN_ALG_RSA
	.no_dead_strip	_tlsv1_process_diffie_hellman
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tlsv1_process_diffie_hellman
_tlsv1_process_diffie_hellman:          ; @tlsv1_process_diffie_hellman
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x26, x25, [sp, #288]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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
	mov	x21, x3
	mov	x22, 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, #-72]
	bl	_tlsv1_client_free_dh
Lloh3:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	cmp	x22, #3
	b.lt	LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_WPA_GET_BE16
	mov	x1, x0
	cbz	x0, LBB0_3
; %bb.2:
	lsl	x8, x22, #2
	sub	x8, x8, #8
	cmp	x1, x8, asr #2
	b.ls	LBB0_7
LBB0_3:
	ldr	w0, [x24]
	str	x1, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_4:
	ldr	w0, [x24]
Lloh7:
	adrp	x1, l_.str.7@PAGE
Lloh8:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_tlsv1_client_free_dh
	mov	w0, #-1
LBB0_5:
	ldur	x8, [x29, #-72]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.6:
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #304]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_7:
	add	x23, x20, #8
	str	x1, [x19]
	mov	x0, x23
	bl	_count_bits
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #767
	b.hi	LBB0_9
; %bb.8:
Lloh12:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_wpa_printf
	ldr	w0, [x24]
	ldr	w3, [x19]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x23
	bl	_wpa_hexdump
	b	LBB0_4
LBB0_9:
	ldr	x1, [x19]
	mov	x0, x23
	bl	_os_memdup
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.10:
	mov	x2, x0
	add	x25, x20, x22, lsl #2
	ldr	x3, [x19]
	add	x22, x23, x3, lsl #2
	ldr	w0, [x24]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_wpa_hexdump
	sub	x8, x25, x22
	cmp	x8, #12
	b.lt	LBB0_4
; %bb.11:
	mov	x0, x22
	bl	_WPA_GET_BE16
	cbz	x0, LBB0_4
; %bb.12:
	mov	x1, x0
	add	x22, x22, #8
	sub	x8, x25, x22
	cmp	x0, x8, asr #2
	b.hi	LBB0_4
; %bb.13:
	str	x1, [x19, #16]
	mov	x0, x22
	bl	_os_memdup
	str	x0, [x19, #24]
	cbz	x0, LBB0_4
; %bb.14:
	mov	x2, x0
	ldr	x3, [x19, #16]
	add	x22, x22, x3, lsl #2
	ldr	w0, [x24]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_wpa_hexdump
	ldr	x8, [x19, #16]
	cmp	x8, #1
	b.ne	LBB0_16
; %bb.15:
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_4
LBB0_16:
	sub	x8, x25, x22
	cmp	x8, #12
	b.lt	LBB0_4
; %bb.17:
	mov	x0, x22
	bl	_WPA_GET_BE16
	cbz	x0, LBB0_4
; %bb.18:
	mov	x1, x0
	add	x22, x22, #8
	sub	x8, x25, x22
	cmp	x0, x8, asr #2
	b.hi	LBB0_4
; %bb.19:
	str	x1, [x19, #32]
	mov	x0, x22
	bl	_os_memdup
	str	x0, [x19, #40]
	cbz	x0, LBB0_4
; %bb.20:
	mov	x2, x0
	ldr	x23, [x19, #32]
	ldr	w0, [x24]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x3, x23
	bl	_wpa_hexdump
Lloh25:
	adrp	x8, _TLS_KEY_X_DHE_RSA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TLS_KEY_X_DHE_RSA@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_24
; %bb.21:
	ldr	x0, [x19, #56]
Lloh28:
	adrp	x8, _TLS_VERSION_1_2@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TLS_VERSION_1_2@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.22:
	add	x21, x22, x23, lsl #2
	ldp	w2, w1, [x19, #64]
	sub	x8, x21, x20
	lsr	x4, x8, #2
	add	x5, sp, #24
	mov	x3, x20
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_tls_key_x_server_params_hash
	tbnz	w0, #31, LBB0_4
; %bb.23:
	mov	x20, x0
Lloh31:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #24
	mov	x3, x20
	bl	_wpa_hexdump
	ldr	x0, [x19, #56]
	ldr	w1, [x19, #48]
	sub	x8, x25, x21
	lsr	x5, x8, #2
	add	x2, sp, #24
	add	x6, sp, #20
	mov	x3, x20
	mov	x4, x21
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_tls_verify_signature
	tbnz	x0, #63, LBB0_4
LBB0_24:
	mov	w0, #0
	b	LBB0_5
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLSv1: Invalid dh_p length %u"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"TLSv1: Reject under 768-bit DH prime (insecure; only %u bits)"

l_.str.2:                               ; @.str.2
	.asciz	"TLSv1: Rejected DH prime"

l_.str.3:                               ; @.str.3
	.asciz	"TLSv1: DH p (prime)"

l_.str.4:                               ; @.str.4
	.asciz	"TLSv1: DH g (generator)"

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

	.comm	_TLS_KEY_X_DHE_RSA,8,3          ; @TLS_KEY_X_DHE_RSA
	.comm	_TLS_VERSION_1_2,8,3            ; @TLS_VERSION_1_2
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.6:                               ; @.str.6
	.asciz	"TLSv1: ServerKeyExchange hash"

l_.str.7:                               ; @.str.7
	.asciz	"TLSv1: Processing DH params failed"

	.comm	_TLS_HASH_ALG_SHA256,4,2        ; @TLS_HASH_ALG_SHA256
	.comm	_TLS_HASH_ALG_SHA384,4,2        ; @TLS_HASH_ALG_SHA384
	.comm	_TLS_HASH_ALG_SHA512,4,2        ; @TLS_HASH_ALG_SHA512
	.comm	_TLS_SIGN_ALG_RSA,4,2           ; @TLS_SIGN_ALG_RSA
	.no_dead_strip	_tlsv1_process_diffie_hellman
.subsections_via_symbols
