	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_wps_ap_pin_enable
_hostapd_wps_ap_pin_enable:             ## @hostapd_wps_ap_pin_enable
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_wpa_printf
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movq	16(%rbx), %rax
	movq	$0, (%rax)
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WPS_EVENT_AP_SETUP_UNLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wpa_msg
	movq	(%rbx), %rax
	movq	$0, 8(%rax)
	movl	(%rax), %edi
	callq	_wps_registrar_update_ie
LBB0_2:
	movq	_hostapd_wps_ap_pin_timeout@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.4:
	movl	(%r15), %edx
	movl	%r14d, %edi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eloop_register_timeout         ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	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: Enabling AP PIN (timeout=%d)"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.comm	_WPS_EVENT_AP_SETUP_UNLOCKED,4,2 ## @WPS_EVENT_AP_SETUP_UNLOCKED
	.comm	_hostapd_wps_ap_pin_timeout,4,2 ## @hostapd_wps_ap_pin_timeout
	.no_dead_strip	_hostapd_wps_ap_pin_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_wps_ap_pin_enable
_hostapd_wps_ap_pin_enable:             ; @hostapd_wps_ap_pin_enable
	.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	x20, x1
	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
	mov	x2, x20
	bl	_wpa_printf
	stp	xzr, xzr, [x19, #24]
	ldr	x8, [x19, #16]
	str	xzr, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _WPS_EVENT_AP_SETUP_UNLOCKED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WPS_EVENT_AP_SETUP_UNLOCKED@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_wpa_msg
	ldr	x8, [x19]
	str	xzr, [x8, #8]
	ldr	w0, [x8]
	bl	_wps_registrar_update_ie
LBB0_2:
Lloh11:
	adrp	x21, _hostapd_wps_ap_pin_timeout@GOTPAGE
Lloh12:
	ldr	x21, [x21, _hostapd_wps_ap_pin_timeout@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x19
	mov	x2, #0
	bl	_eloop_cancel_timeout
	cmp	w20, #1
	b.lt	LBB0_4
; %bb.3:
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	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
	b	_eloop_register_timeout
LBB0_4:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Enabling AP PIN (timeout=%d)"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.comm	_WPS_EVENT_AP_SETUP_UNLOCKED,4,2 ; @WPS_EVENT_AP_SETUP_UNLOCKED
	.comm	_hostapd_wps_ap_pin_timeout,4,2 ; @hostapd_wps_ap_pin_timeout
	.no_dead_strip	_hostapd_wps_ap_pin_enable
.subsections_via_symbols
