	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_er_ap_get_m1
_wps_er_ap_get_m1:                      ## @wps_er_ap_get_m1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rax
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_wps_parse_msg
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	-16(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	movl	$8, %edx
	callq	_os_memcpy
LBB0_4:
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_6:
	movq	-32(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movl	(%rbx), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
LBB0_8:
	movq	%rbx, %rdi
	callq	_wps_er_subscribe
	jmp	LBB0_9
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS ER: Failed to parse M1"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_wps_er_ap_get_m1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_er_ap_get_m1
_wps_er_ap_get_m1:                      ; @wps_er_ap_get_m1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	mov	x19, x0
	add	x1, sp, #8
	mov	x0, x8
	bl	_wps_parse_msg
	tbnz	x0, #63, LBB0_8
; %bb.1:
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
	mov	w2, #8
	bl	_os_memcpy
LBB0_3:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_5:
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_7
; %bb.6:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_os_memcpy
LBB0_7:
	mov	x0, x19
	bl	_wps_er_subscribe
	b	LBB0_9
LBB0_8:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS ER: Failed to parse M1"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_wps_er_ap_get_m1
.subsections_via_symbols
