	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_dpp_reply_wait_timeout
_hostapd_dpp_reply_wait_timeout:        ## @hostapd_dpp_reply_wait_timeout
	.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
	movq	16(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_13
## %bb.1:
	cmpl	$0, 16(%r13)
	je	LBB0_13
## %bb.2:
	movq	%rdi, %r14
	movl	(%rdi), %eax
	testl	%eax, %eax
	movl	$2000, %r15d                    ## imm = 0x7D0
	cmovnel	%eax, %r15d
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_os_get_reltime
	leaq	28(%r14), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_os_reltime_sub
	imull	$1000, -48(%rbp), %eax          ## imm = 0x3E8
	movslq	-44(%rbp), %rcx
	imulq	$274877907, %rcx, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rcx
	shrq	$63, %rcx
	sarq	$38, %rbx
	addl	%ecx, %ebx
	addl	%eax, %ebx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpq	$0, 8(%r13)
	je	LBB0_5
## %bb.3:
	cmpl	%ebx, %r15d
	ja	LBB0_5
## %bb.4:
	movq	_MSG_INFO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	24(%r14), %edi
	movl	(%rbx), %esi
	movq	_DPP_EVENT_AUTH_INIT_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wpa_msg
	movq	%r14, %rdi
	callq	_hostapd_drv_send_action_cancel_wait
	movq	%r14, %rdi
	callq	_hostapd_dpp_listen_stop
	movq	%r13, %rdi
	callq	_dpp_auth_deinit
	movq	$0, 16(%r14)
	jmp	LBB0_13
LBB0_5:
	subl	%ebx, %r15d
	jbe	LBB0_6
## %bb.7:
	movl	4(%r13), %ebx
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.8:
	movl	(%r13), %ebx
LBB0_9:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$1, 4(%r14)
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %ebx
	je	LBB0_12
## %bb.10:
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.11:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_12:
	movl	%r15d, %eax
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	shrq	$38, %rdi
	imull	$1000, %edi, %eax               ## imm = 0x3E8
	subl	%eax, %r15d
	imull	$1000, %r15d, %esi              ## imm = 0x3E8
	leaq	_hostapd_dpp_reply_wait_timeout(%rip), %rdx
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
	jmp	LBB0_13
LBB0_6:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r14, %rdi
	callq	_hostapd_drv_send_action_cancel_wait
	movq	%r14, %rdi
	callq	_hostapd_dpp_listen_stop
	movq	%r14, %rdi
	callq	_hostapd_dpp_auth_init_next
LBB0_13:
	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	"DPP: Reply wait timeout - wait_time=%u diff_ms=%u"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"DPP: No response received from responder - stopping initiation attempt"

	.comm	_DPP_EVENT_AUTH_INIT_FAILED,4,2 ## @DPP_EVENT_AUTH_INIT_FAILED
L_.str.2:                               ## @.str.2
	.asciz	"DPP: Continue Initiator channel iteration"

L_.str.3:                               ## @.str.3
	.asciz	"DPP: Continue reply wait on channel %u MHz for %u ms"

L_.str.4:                               ## @.str.4
	.asciz	"DPP: Listen operation on non-operating channel (%d MHz) is not yet supported (operating channel: %d MHz)"

	.no_dead_strip	_hostapd_dpp_reply_wait_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_dpp_reply_wait_timeout
_hostapd_dpp_reply_wait_timeout:        ; @hostapd_dpp_reply_wait_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x20, [x0, #16]
	cbz	x20, LBB0_9
; %bb.1:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_9
; %bb.2:
	mov	x19, x0
	mov	x21, x0
	ldr	w8, [x21], #28
	mov	w9, #2000
	cmp	w8, #0
	csel	w22, w9, w8, eq
	add	x0, sp, #24
	bl	_os_get_reltime
	add	x0, sp, #24
	add	x2, sp, #16
	mov	x1, x21
	bl	_os_reltime_sub
	mov	w8, #1000
	ldp	w9, w10, [sp, #16]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	mul	x10, x10, x11
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	madd	w21, w9, w8, w10
Lloh0:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
	stp	x22, x21, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x20, #8]
	cmp	x8, #0
	ccmp	w22, w21, #2, ne
	b.ls	LBB0_7
; %bb.3:
	subs	w21, w22, w21
	b.ls	LBB0_8
; %bb.4:
	ldp	w8, w9, [x20]
	cmp	w9, #0
	csel	w20, w8, w9, eq
	ldr	w0, [x23]
	stp	x20, x21, [sp]
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w20, w8
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_6
; %bb.5:
Lloh6:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x20, x8, [sp]
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
LBB0_6:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w21, w8
	lsr	x0, x8, #38
	mov	w8, #1000
	msub	w9, w0, w8, w21
	mul	w1, w9, w8
Lloh11:
	adrp	x2, _hostapd_dpp_reply_wait_timeout@PAGE
Lloh12:
	add	x2, x2, _hostapd_dpp_reply_wait_timeout@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x3, x19
	mov	x4, #0
	bl	_eloop_register_timeout
	b	LBB0_9
LBB0_7:
Lloh13:
	adrp	x21, _MSG_INFO@GOTPAGE
Lloh14:
	ldr	x21, [x21, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19, #24]
	ldr	w1, [x21]
Lloh17:
	adrp	x8, _DPP_EVENT_AUTH_INIT_FAILED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DPP_EVENT_AUTH_INIT_FAILED@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	bl	_wpa_msg
	mov	x0, x19
	bl	_hostapd_drv_send_action_cancel_wait
	mov	x0, x19
	bl	_hostapd_dpp_listen_stop
	mov	x0, x20
	bl	_dpp_auth_deinit
	str	xzr, [x19, #16]
	b	LBB0_9
LBB0_8:
	ldr	w0, [x23]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_hostapd_drv_send_action_cancel_wait
	mov	x0, x19
	bl	_hostapd_dpp_listen_stop
	mov	x0, x19
	bl	_hostapd_dpp_auth_init_next
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPP: Reply wait timeout - wait_time=%u diff_ms=%u"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"DPP: No response received from responder - stopping initiation attempt"

	.comm	_DPP_EVENT_AUTH_INIT_FAILED,4,2 ; @DPP_EVENT_AUTH_INIT_FAILED
l_.str.2:                               ; @.str.2
	.asciz	"DPP: Continue Initiator channel iteration"

l_.str.3:                               ; @.str.3
	.asciz	"DPP: Continue reply wait on channel %u MHz for %u ms"

l_.str.4:                               ; @.str.4
	.asciz	"DPP: Listen operation on non-operating channel (%d MHz) is not yet supported (operating channel: %d MHz)"

	.no_dead_strip	_hostapd_dpp_reply_wait_timeout
.subsections_via_symbols
