	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_er_config                  ## -- Begin function wps_er_config
	.p2align	4, 0x90
_wps_er_config:                         ## @wps_er_config
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%r9, %r15
	movq	%rdx, %rax
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	xorl	%esi, %esi
	movq	%r13, %rdx
	movq	%rax, %rcx
	callq	_wps_er_ap_get
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	testq	%r13, %r13
	je	LBB0_4
## %bb.5:
	cmpq	$0, 8(%r12)
	je	LBB0_7
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_4:
	movq	16(%r12), %r13
	cmpq	$0, 8(%r12)
	jne	LBB0_6
LBB0_7:
	movq	(%r12), %rdi
	callq	_os_free
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_os_memdup
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	$0, (%rax)
	movq	_wps_er_ap_config_m1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wps_er_send_get_device_info
	testq	%rax, %rax
	js	LBB0_10
## %bb.9:
	movl	$1, (%rbx)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movq	%r13, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	xorl	%r9d, %r9d
	callq	_wps_registrar_add_pin
	movl	$0, (%rbx)
LBB0_10:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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: AP not found for config request"

L_.str.1:                               ## @.str.1
	.asciz	"WPS ER: Pending operation ongoing with the AP - cannot start config"

	.comm	_wps_er_ap_config_m1,4,2        ## @wps_er_ap_config_m1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_er_config                  ; -- Begin function wps_er_config
	.p2align	2
_wps_er_config:                         ; @wps_er_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_7
; %bb.1:
	mov	x23, x5
	mov	x20, x4
	mov	x21, x3
	mov	x3, x2
	mov	x22, x1
	mov	x19, x0
	mov	x1, #0
	mov	x2, x22
	bl	_wps_er_ap_get
	cbz	x0, LBB0_5
; %bb.2:
	mov	x24, x0
	cbz	x22, LBB0_9
; %bb.3:
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_10
LBB0_4:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	bl	_wpa_printf
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x22, [x24, #16]
	ldr	x8, [x24, #8]
	cbnz	x8, LBB0_4
LBB0_10:
	ldr	x0, [x24]
	bl	_os_free
	mov	x0, x23
	mov	w1, #4
	bl	_os_memdup
	str	x0, [x24]
	cbz	x0, LBB0_7
; %bb.11:
	str	xzr, [x0]
Lloh10:
	adrp	x8, _wps_er_ap_config_m1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _wps_er_ap_config_m1@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_wps_er_send_get_device_info
	tbnz	x0, #63, LBB0_7
; %bb.12:
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, #0
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	w5, #0
	bl	_wps_registrar_add_pin
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS ER: AP not found for config request"

l_.str.1:                               ; @.str.1
	.asciz	"WPS ER: Pending operation ongoing with the AP - cannot start config"

	.comm	_wps_er_ap_config_m1,4,2        ; @wps_er_ap_config_m1
.subsections_via_symbols
