	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_setup_interface_complete ## -- Begin function hostapd_setup_interface_complete
	.p2align	4, 0x90
_hostapd_setup_interface_complete:      ## @hostapd_setup_interface_complete
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_1
## %bb.3:
	movq	24(%rbx), %rax
	movq	32(%rbx), %r15
	movq	(%rax), %r12
	testl	%esi, %esi
	je	LBB0_7
## %bb.4:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_HAPD_IFACE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hostapd_set_state
	movq	$0, 16(%rbx)
	movl	8(%r12), %edi
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AP_EVENT_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wpa_msg
	movl	$-1, %r14d
	testq	%r15, %r15
	je	LBB0_31
## %bb.5:
	cmpq	$0, 16(%r15)
	je	LBB0_31
## %bb.6:
	xorl	%eax, %eax
	callq	_eloop_terminate
	jmp	LBB0_31
LBB0_1:
	movq	%rbx, %rdi
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hostapd_setup_interface_complete_sync ## TAILCALL
LBB0_7:
	xorl	%r14d, %r14d
	cmpl	$0, (%rbx)
	je	LBB0_8
LBB0_31:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%r15), %r8d
	testq	%r8, %r8
	je	LBB0_24
## %bb.9:
	movq	8(%r15), %rcx
	cmpl	$1, %r8d
	jne	LBB0_11
## %bb.10:
	xorl	%esi, %esi
	xorl	%edx, %edx
LBB0_17:
	testb	$1, %r8b
	je	LBB0_20
## %bb.18:
	movq	(%rcx,%rsi,8), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_20
## %bb.19:
	cmpl	$1, (%rax)
	adcl	$0, %edx
LBB0_20:
	cmpl	$2, %edx
	jl	LBB0_24
## %bb.21:
	movq	8(%rbx), %rax
	movq	_HAPD_IFACE_DFS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.22:
	movq	$0, 16(%rbx)
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %rdi
	xorl	%esi, %esi
	jmp	LBB0_2
LBB0_24:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	$0, 16(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hostapd_setup_interface_complete_sync
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_31
## %bb.25:
	movq	8(%r15), %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_26 Depth=1
	incq	%rbx
	movl	%eax, %edx
	cmpq	%rdx, %rbx
	jae	LBB0_30
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %rdi
	cmpq	$0, 16(%rdi)
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	cmpl	$0, (%rdi)
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=1
	xorl	%esi, %esi
	callq	_hostapd_setup_interface_complete_sync
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rax
	movq	$0, 16(%rax)
	movl	(%r15), %eax
	jmp	LBB0_29
LBB0_30:
	xorl	%r14d, %r14d
	jmp	LBB0_31
LBB0_11:
	movl	%r8d, %edi
	andl	$-2, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	$2, %rsi
	cmpq	%rsi, %rdi
	je	LBB0_17
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$1, (%rax)
	adcl	$0, %edx
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%rcx,%rsi,8), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$1, (%rax)
	adcl	$0, %edx
	jmp	LBB0_16
LBB0_23:
	movl	$1, (%rbx)
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Interface initialization failed"

	.comm	_HAPD_IFACE_DISABLED,4,2        ## @HAPD_IFACE_DISABLED
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.comm	_AP_EVENT_DISABLED,4,2          ## @AP_EVENT_DISABLED
	.comm	_HAPD_IFACE_DFS,8,3             ## @HAPD_IFACE_DFS
L_.str.1:                               ## @.str.1
	.asciz	"%s: Finished CAC - bypass sync and start interface"

L_.str.2:                               ## @.str.2
	.asciz	"%s: Interface waiting to sync with other interfaces"

L_.str.3:                               ## @.str.3
	.asciz	"%s: Last interface to sync - starting all interfaces"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_setup_interface_complete ; -- Begin function hostapd_setup_interface_complete
	.p2align	2
_hostapd_setup_interface_complete:      ; @hostapd_setup_interface_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_6
; %bb.1:
	ldp	x8, x20, [x19, #24]
	ldr	x21, [x8]
	cbz	w1, LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh5:
	adrp	x8, _HAPD_IFACE_DISABLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HAPD_IFACE_DISABLED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hostapd_set_state
	str	xzr, [x19, #16]
	ldr	w0, [x21, #8]
Lloh8:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _AP_EVENT_DISABLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AP_EVENT_DISABLED@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_wpa_msg
	cbz	x20, LBB0_5
; %bb.3:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.4:
	bl	_eloop_terminate
LBB0_5:
	mov	w0, #-1
	b	LBB0_10
LBB0_6:
	mov	x0, x19
LBB0_7:
	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
	add	sp, sp, #64
	b	_hostapd_setup_interface_complete_sync
LBB0_8:
	ldr	w8, [x19]
	cbz	w8, LBB0_11
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	add	sp, sp, #64
	ret
LBB0_11:
	ldr	w8, [x20]
	cbz	w8, LBB0_19
; %bb.12:
	mov	w9, #0
	ldr	x10, [x20, #8]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x10, x10, #8
	subs	x8, x8, #1
	b.eq	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	ldr	x12, [x11, #16]
	cbz	x12, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w11, [x11]
	cmp	w11, #0
	cinc	w9, w9, eq
	b	LBB0_13
LBB0_16:
	cmp	w9, #2
	b.lt	LBB0_19
; %bb.17:
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _HAPD_IFACE_DFS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HAPD_IFACE_DFS@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.18:
	str	xzr, [x19, #16]
Lloh17:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x8, [x21]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	mov	w1, #0
	b	LBB0_7
LBB0_19:
Lloh22:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	x8, [x21]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	str	xzr, [x19, #16]
	mov	x0, x19
	mov	w1, #0
	bl	_hostapd_setup_interface_complete_sync
	ldr	w9, [x20]
	cbz	w9, LBB0_9
; %bb.20:
	mov	x19, #0
	ldr	x8, [x20, #8]
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x19, x19, #1
	cmp	x19, w9, uxtw
	b.hs	LBB0_9
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x8, x19, lsl #3]
	ldr	x10, [x0, #16]
	cbz	x10, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w10, [x0]
	cbz	w10, LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	w1, #0
	bl	_hostapd_setup_interface_complete_sync
	ldr	x8, [x20, #8]
	ldr	x9, [x8, x19, lsl #3]
	str	xzr, [x9, #16]
	ldr	w9, [x20]
	b	LBB0_21
LBB0_25:
	mov	w8, #1
	str	w8, [x19]
Lloh27:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	x8, [x21]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Interface initialization failed"

	.comm	_HAPD_IFACE_DISABLED,4,2        ; @HAPD_IFACE_DISABLED
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.comm	_AP_EVENT_DISABLED,4,2          ; @AP_EVENT_DISABLED
	.comm	_HAPD_IFACE_DFS,8,3             ; @HAPD_IFACE_DFS
l_.str.1:                               ; @.str.1
	.asciz	"%s: Finished CAC - bypass sync and start interface"

l_.str.2:                               ; @.str.2
	.asciz	"%s: Interface waiting to sync with other interfaces"

l_.str.3:                               ; @.str.3
	.asciz	"%s: Last interface to sync - starting all interfaces"

.subsections_via_symbols
