	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_build_m5
_wps_build_m5:                          ## @wps_build_m5
	.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, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	$200, %edi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r15
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_wps_build_version
	testq	%rax, %rax
	jne	LBB0_10
## %bb.3:
	movq	_WPS_M5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wps_build_msg_type
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wps_build_registrar_nonce
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wps_build_e_snonce1
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wps_build_key_wrap_auth
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_wps_build_encr_settings
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_wps_build_wfa_ext
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wps_build_authenticator
	testq	%rax, %rax
	je	LBB0_16
LBB0_10:
	movq	%r15, %rdi
	callq	_wpabuf_clear_free
	movq	%rbx, %rdi
	jmp	LBB0_13
LBB0_12:
	movq	%r15, %rdi
LBB0_13:
	callq	_wpabuf_free
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r15, %rdi
	callq	_wpabuf_clear_free
	movq	_RECV_M6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Building Message M5"

	.comm	_WPS_M5,4,2                     ## @WPS_M5
	.comm	_RECV_M6,4,2                    ## @RECV_M6
	.no_dead_strip	_wps_build_m5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_build_m5
_wps_build_m5:                          ; @wps_build_m5
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #200
	bl	_wpabuf_alloc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x0
	mov	w0, #1000
	bl	_wpabuf_alloc
	mov	x20, x0
	cbz	x0, LBB0_12
; %bb.2:
	mov	x0, x20
	bl	_wps_build_version
	cbnz	x0, LBB0_10
; %bb.3:
Lloh5:
	adrp	x8, _WPS_M5@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WPS_M5@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wps_build_msg_type
	cbnz	x0, LBB0_10
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_wps_build_registrar_nonce
	cbnz	x0, LBB0_10
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	bl	_wps_build_e_snonce1
	cbnz	x0, LBB0_10
; %bb.6:
	mov	x0, x19
	mov	x1, x21
	bl	_wps_build_key_wrap_auth
	cbnz	x0, LBB0_10
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_wps_build_encr_settings
	cbnz	x0, LBB0_10
; %bb.8:
	mov	x0, x20
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_wps_build_wfa_ext
	cbnz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	bl	_wps_build_authenticator
	cbz	x0, LBB0_14
LBB0_10:
	mov	x0, x21
	bl	_wpabuf_clear_free
	mov	x0, x20
	bl	_wpabuf_free
LBB0_11:
	mov	x20, #0
	b	LBB0_13
LBB0_12:
	mov	x0, x21
	bl	_wpabuf_free
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x21
	bl	_wpabuf_clear_free
Lloh8:
	adrp	x8, _RECV_M6@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RECV_M6@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_13
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Building Message M5"

	.comm	_WPS_M5,4,2                     ; @WPS_M5
	.comm	_RECV_M6,4,2                    ; @RECV_M6
	.no_dead_strip	_wps_build_m5
.subsections_via_symbols
