	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_build_e_hash
_wps_build_e_hash:                      ## @wps_build_e_hash
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rdi
	movq	_WPS_SECRET_NONCE_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	addl	%esi, %esi
	callq	_random_get_bytes
	movl	$-1, %r15d
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	16(%rbx), %rdx
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_wpa_hexdump
	movl	(%r13), %edi
	movslq	(%r12), %rcx
	movq	%rcx, %rdx
	shlq	$2, %rdx
	addq	16(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wpa_hexdump
	cmpq	$0, 32(%rbx)
	je	LBB0_3
## %bb.2:
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.4:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	movq	_ATTR_E_HASH1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movq	_SHA256_MAC_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put
	movq	%rax, %r15
	movq	16(%rbx), %rax
	movq	%rax, -80(%rbp)
	movslq	(%r12), %rax
	movq	%rax, -112(%rbp)
	movq	40(%rbx), %rax
	movq	%rax, -72(%rbp)
	movq	_WPS_PSK_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)
	movq	32(%rbx), %rdi
	callq	_wpabuf_head
	movq	%rax, -64(%rbp)
	movq	32(%rbx), %rdi
	callq	_wpabuf_len
	movq	%rax, -96(%rbp)
	movq	24(%rbx), %rdi
	callq	_wpabuf_head
	movq	%rax, -56(%rbp)
	movq	24(%rbx), %rdi
	callq	_wpabuf_len
	movq	%rax, -88(%rbp)
	movl	(%rbx), %edi
	movq	_WPS_AUTHKEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rcx
	leaq	-112(%rbp), %r8
	movl	$4, %edx
	movq	%r15, %r9
	callq	_hmac_sha256_vector
	movl	(%r13), %edi
	movq	_SHA256_MAC_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump
	movl	(%r13), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_wpa_printf
	movq	_ATTR_E_HASH2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put
	movq	%rax, %r14
	movq	_WPS_SECRET_NONCE_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	addq	16(%rbx), %rax
	movq	%rax, -80(%rbp)
	movq	8(%rbx), %rax
	movq	%rax, -72(%rbp)
	movl	(%rbx), %edi
	movq	_WPS_AUTHKEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	leaq	-80(%rbp), %rcx
	leaq	-112(%rbp), %r8
	movq	%r14, %r9
	callq	_hmac_sha256_vector
	movl	(%r13), %edi
	movl	(%r12), %ecx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdx
	callq	_wpa_hexdump
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_3:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WPS_SECRET_NONCE_LEN,4,2       ## @WPS_SECRET_NONCE_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: E-S1"

L_.str.1:                               ## @.str.1
	.asciz	"WPS: E-S2"

L_.str.2:                               ## @.str.2
	.asciz	"WPS: DH public keys not available for E-Hash derivation"

L_.str.3:                               ## @.str.3
	.asciz	"WPS:  * E-Hash1"

	.comm	_ATTR_E_HASH1,4,2               ## @ATTR_E_HASH1
	.comm	_SHA256_MAC_LEN,4,2             ## @SHA256_MAC_LEN
	.comm	_WPS_PSK_LEN,8,3                ## @WPS_PSK_LEN
	.comm	_WPS_AUTHKEY_LEN,4,2            ## @WPS_AUTHKEY_LEN
L_.str.4:                               ## @.str.4
	.asciz	"WPS: E-Hash1"

L_.str.5:                               ## @.str.5
	.asciz	"WPS:  * E-Hash2"

	.comm	_ATTR_E_HASH2,4,2               ## @ATTR_E_HASH2
L_.str.6:                               ## @.str.6
	.asciz	"WPS: E-Hash2"

	.no_dead_strip	_wps_build_e_hash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_build_e_hash
_wps_build_e_hash:                      ; @wps_build_e_hash
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldr	x0, [x0, #16]
Lloh3:
	adrp	x23, _WPS_SECRET_NONCE_LEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _WPS_SECRET_NONCE_LEN@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	w1, w8, #1
	bl	_random_get_bytes
	tbnz	x0, #63, LBB0_5
; %bb.1:
Lloh5:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	x2, [x19, #16]
	ldr	w3, [x23]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_hexdump
	ldr	w0, [x22]
	ldr	x8, [x19, #16]
	ldrsw	x3, [x23]
	add	x2, x8, x3, lsl #2
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_wpa_hexdump
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x22]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh13:
	adrp	x8, _ATTR_E_HASH1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ATTR_E_HASH1@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wpabuf_put_be16
Lloh16:
	adrp	x24, _SHA256_MAC_LEN@GOTPAGE
Lloh17:
	ldr	x24, [x24, _SHA256_MAC_LEN@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_wpabuf_put_be16
	ldr	w1, [x24]
	mov	x0, x20
	bl	_wpabuf_put
	mov	x21, x0
	ldr	x8, [x19, #16]
	ldrsw	x9, [x23]
	ldp	x0, x10, [x19, #32]
	stp	x8, x10, [sp, #40]
Lloh18:
	adrp	x8, _WPS_PSK_LEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WPS_PSK_LEN@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	stp	x9, x8, [sp, #8]
	bl	_wpabuf_head
	str	x0, [sp, #56]
	ldr	x0, [x19, #32]
	bl	_wpabuf_len
	str	x0, [sp, #24]
	ldr	x0, [x19, #24]
	bl	_wpabuf_head
	str	x0, [sp, #64]
	ldr	x0, [x19, #24]
	bl	_wpabuf_len
	str	x0, [sp, #32]
	ldr	w0, [x19]
Lloh21:
	adrp	x25, _WPS_AUTHKEY_LEN@GOTPAGE
Lloh22:
	ldr	x25, [x25, _WPS_AUTHKEY_LEN@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x3, sp, #40
	add	x4, sp, #8
	mov	w2, #4
	mov	x5, x21
	bl	_hmac_sha256_vector
	ldr	w0, [x22]
	ldr	w3, [x24]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x21
	bl	_wpa_hexdump
	ldr	w0, [x22]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
Lloh27:
	adrp	x8, _ATTR_E_HASH2@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ATTR_E_HASH2@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wpabuf_put_be16
	ldr	w1, [x24]
	mov	x0, x20
	bl	_wpabuf_put_be16
	ldr	w1, [x24]
	mov	x0, x20
	bl	_wpabuf_put
	mov	x20, x0
	ldrsw	x8, [x23]
	ldp	x10, x9, [x19, #8]
	add	x8, x9, x8, lsl #2
	stp	x8, x10, [sp, #40]
	ldr	w0, [x19]
	ldr	w1, [x25]
	add	x3, sp, #40
	add	x4, sp, #8
	mov	w2, #4
	mov	x5, x20
	bl	_hmac_sha256_vector
	ldr	w0, [x22]
	ldr	w3, [x24]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x20
	bl	_wpa_hexdump
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	ldr	w0, [x22]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldr	x8, [sp, #72]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_WPS_SECRET_NONCE_LEN,4,2       ; @WPS_SECRET_NONCE_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: E-S1"

l_.str.1:                               ; @.str.1
	.asciz	"WPS: E-S2"

l_.str.2:                               ; @.str.2
	.asciz	"WPS: DH public keys not available for E-Hash derivation"

l_.str.3:                               ; @.str.3
	.asciz	"WPS:  * E-Hash1"

	.comm	_ATTR_E_HASH1,4,2               ; @ATTR_E_HASH1
	.comm	_SHA256_MAC_LEN,4,2             ; @SHA256_MAC_LEN
	.comm	_WPS_PSK_LEN,8,3                ; @WPS_PSK_LEN
	.comm	_WPS_AUTHKEY_LEN,4,2            ; @WPS_AUTHKEY_LEN
l_.str.4:                               ; @.str.4
	.asciz	"WPS: E-Hash1"

l_.str.5:                               ; @.str.5
	.asciz	"WPS:  * E-Hash2"

	.comm	_ATTR_E_HASH2,4,2               ; @ATTR_E_HASH2
l_.str.6:                               ; @.str.6
	.asciz	"WPS: E-Hash2"

	.no_dead_strip	_wps_build_e_hash
.subsections_via_symbols
