	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_build_m3
_wps_build_m3:                          ## @wps_build_m3
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	24(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.1:
	movl	16(%r15), %edx
	movq	%r15, %rdi
	callq	_wps_derive_psk
	testq	%rax, %rax
	js	LBB0_16
## %bb.2:
	movq	8(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_random_pool_ready
	cmpl	$1, %eax
	jne	LBB0_14
LBB0_4:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_wps_build_version
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	movq	_WPS_M3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wps_build_msg_type
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_wps_build_registrar_nonce
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_wps_build_e_hash
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_wps_build_wfa_ext
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_wps_build_authenticator
	testq	%rax, %rax
	je	LBB0_19
LBB0_11:
	movq	%r14, %rdi
	callq	_wpabuf_free
	jmp	LBB0_16
LBB0_12:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_15
LBB0_14:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_15:
	callq	_wpa_printf
LBB0_16:
	xorl	%r14d, %r14d
LBB0_17:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_RECV_M4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Building Message M3"

L_.str.1:                               ## @.str.1
	.asciz	"WPS: No Device Password available"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.2:                               ## @.str.2
	.asciz	"WPS: Not enough entropy in random pool to proceed - do not allow AP PIN to be used"

	.comm	_WPS_M3,4,2                     ## @WPS_M3
	.comm	_RECV_M4,4,2                    ## @RECV_M4
	.no_dead_strip	_wps_build_m3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_build_m3
_wps_build_m3:                          ; @wps_build_m3
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_12
; %bb.1:
	ldr	w2, [x19, #16]
	mov	x0, x19
	bl	_wps_derive_psk
	tbnz	x0, #63, LBB0_15
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_random_pool_ready
	cmp	w0, #1
	b.ne	LBB0_13
LBB0_4:
	mov	w0, #1000
	bl	_wpabuf_alloc
	mov	x20, x0
	cbz	x0, LBB0_16
; %bb.5:
	mov	x0, x20
	bl	_wps_build_version
	cbnz	x0, LBB0_11
; %bb.6:
Lloh4:
	adrp	x8, _WPS_M3@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WPS_M3@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wps_build_msg_type
	cbnz	x0, LBB0_11
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	bl	_wps_build_registrar_nonce
	cbnz	x0, LBB0_11
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_wps_build_e_hash
	cbnz	x0, LBB0_11
; %bb.9:
	mov	x0, x20
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_wps_build_wfa_ext
	cbnz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	bl	_wps_build_authenticator
	cbz	x0, LBB0_17
LBB0_11:
	mov	x0, x20
	bl	_wpabuf_free
	b	LBB0_15
LBB0_12:
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh9:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_14:
	bl	_wpa_printf
LBB0_15:
	mov	x20, #0
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh14:
	adrp	x8, _RECV_M4@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RECV_M4@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_16
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Building Message M3"

l_.str.1:                               ; @.str.1
	.asciz	"WPS: No Device Password available"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.2:                               ; @.str.2
	.asciz	"WPS: Not enough entropy in random pool to proceed - do not allow AP PIN to be used"

	.comm	_WPS_M3,4,2                     ; @WPS_M3
	.comm	_RECV_M4,4,2                    ; @RECV_M4
	.no_dead_strip	_wps_build_m3
.subsections_via_symbols
