	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_remove_iface           ## -- Begin function hostapd_remove_iface
	.p2align	4, 0x90
_hostapd_remove_iface:                  ## @hostapd_remove_iface
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %eax
	cmpq	$0, (%rdi)
	je	LBB0_20
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r15
	movb	$3, %bl
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movb	-41(%rbp), %bl                  ## 1-byte Reload
	addb	$3, %bl
	cmpq	(%r15), %r14
	jae	LBB0_19
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	8(%r15), %rax
	movq	(%rax,%r14,8), %r13
	testq	%r13, %r13
	je	LBB0_19
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_os_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	%bl, -41(%rbp)                  ## 1-byte Spill
	movq	8(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_os_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=2
	incq	%rbx
	movq	8(%r13), %rax
	cmpq	(%rax), %rbx
	jb	LBB0_6
	jmp	LBB0_18
LBB0_7:
	movq	_WPA_DRIVER_FLAGS_AP_TEARDOWN_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	4(%r13), %eax
	sete	%cl
	movl	%ecx, (%r13)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hostapd_remove_bss             ## TAILCALL
LBB0_19:
	movl	$-1, %eax
	jmp	LBB0_20
LBB0_8:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	callq	_wpa_printf
	movq	_WPA_DRIVER_FLAGS_AP_TEARDOWN_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	4(%r13), %eax
	setne	%cl
	movl	%ecx, (%r13)
	movq	%r13, %rdi
	callq	_hostapd_interface_deinit_free
	movq	(%r15), %r9
	leaq	-1(%r9), %r8
	cmpq	%r8, %r14
	jae	LBB0_16
## %bb.9:
	movl	%r14d, %edx
	notl	%edx
	addl	%r9d, %edx
	movq	%r9, %rcx
	subq	%r14, %rcx
	addq	$-2, %rcx
	testb	$3, %dl
	je	LBB0_10
## %bb.11:
	addb	%r9b, %bl
	movzbl	%bl, %edi
	andl	$3, %edi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rbx
	leaq	1(%r14), %rdx
	movq	8(%rbx,%r14,8), %rax
	movq	%rax, (%rbx,%r14,8)
	movq	%rdx, %r14
	decq	%rdi
	jne	LBB0_12
	jmp	LBB0_13
LBB0_10:
	movq	%r14, %rdx
LBB0_13:
	cmpq	$3, %rcx
	jb	LBB0_16
## %bb.14:
	movq	%rdx, %rbx
	notq	%rbx
	addq	%r9, %rbx
	shlq	$3, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	addq	%rdx, %rax
	movq	8(%rax,%rcx,8), %rdi
	movq	%rdi, (%rax,%rcx,8)
	movq	8(%r15), %rax
	addq	%rdx, %rax
	movq	16(%rax,%rcx,8), %rdi
	movq	%rdi, 8(%rax,%rcx,8)
	movq	8(%r15), %rax
	addq	%rdx, %rax
	movq	24(%rax,%rcx,8), %rdi
	movq	%rdi, 16(%rax,%rcx,8)
	movq	8(%r15), %rax
	addq	%rdx, %rax
	movq	32(%rax,%rcx,8), %rdi
	movq	%rdi, 24(%rax,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %rbx
	jne	LBB0_15
LBB0_16:
	movq	%r8, (%r15)
	xorl	%eax, %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Remove interface '%s'"

	.comm	_WPA_DRIVER_FLAGS_AP_TEARDOWN_SUPPORT,4,2 ## @WPA_DRIVER_FLAGS_AP_TEARDOWN_SUPPORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_remove_iface           ; -- Begin function hostapd_remove_iface
	.p2align	2
_hostapd_remove_iface:                  ; @hostapd_remove_iface
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldr	x8, [x19]
	cmp	x23, x8
	b.hs	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x19, #8]
	ldr	x21, [x8, x23, lsl #3]
	cbz	x21, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_os_strcmp
	cbz	w0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, #0
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_os_strcmp
	cbz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x22, x22, #1
	ldr	x8, [x21, #8]
	ldr	x9, [x8]
	cmp	x22, x9
	b.lo	LBB0_7
	b	LBB0_2
LBB0_9:
	ldr	w8, [x21, #4]
Lloh0:
	adrp	x9, _WPA_DRIVER_FLAGS_AP_TEARDOWN_SUPPORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_DRIVER_FLAGS_AP_TEARDOWN_SUPPORT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, eq
	str	w8, [x21]
	mov	x0, x21
	mov	x1, x22
	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
	b	_hostapd_remove_bss
LBB0_10:
	mov	w0, #-1
LBB0_11:
	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_12:
Lloh3:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_wpa_printf
	ldr	w8, [x21, #4]
Lloh8:
	adrp	x9, _WPA_DRIVER_FLAGS_AP_TEARDOWN_SUPPORT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WPA_DRIVER_FLAGS_AP_TEARDOWN_SUPPORT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x21]
	mov	x0, x21
	bl	_hostapd_interface_deinit_free
	ldr	x8, [x19]
	sub	x8, x8, #1
	cmp	x23, x8
	b.hs	LBB0_14
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x9, x9, x23, lsl #3
	add	x10, x23, #1
	ldr	x11, [x9, #8]
	str	x11, [x9]
	mov	x23, x10
	cmp	x8, x10
	b.ne	LBB0_13
LBB0_14:
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Remove interface '%s'"

	.comm	_WPA_DRIVER_FLAGS_AP_TEARDOWN_SUPPORT,4,2 ; @WPA_DRIVER_FLAGS_AP_TEARDOWN_SUPPORT
.subsections_via_symbols
