	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_disable_iface          ## -- Begin function hostapd_disable_iface
	.p2align	4, 0x90
_hostapd_disable_iface:                 ## @hostapd_disable_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, %r14d
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r13
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.3:
	movl	24(%rax), %edi
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AP_EVENT_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wpa_msg
	movq	16(%r13), %rax
	movq	(%rax), %r12
	movq	8(%r12), %r14
	movq	16(%r12), %r15
	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)
	cmpq	$0, 8(%r13)
	je	LBB0_7
## %bb.4:
	movq	%r12, %rdi
	callq	_hostapd_bss_deinit_no_free
	movq	%r12, %rdi
	callq	_hostapd_free_hapd_data
	cmpq	$2, 8(%r13)
	jb	LBB0_7
## %bb.5:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %r12
	movq	%r12, %rdi
	callq	_hostapd_bss_deinit_no_free
	movq	%r12, %rdi
	callq	_hostapd_free_hapd_data
	incq	%rbx
	cmpq	8(%r13), %rbx
	jb	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_hostapd_deinit_driver
	movq	%r13, %rdi
	callq	_hostapd_cleanup_iface_partial
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	_HAPD_IFACE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_hostapd_set_state
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_2:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_8:
	movl	%r14d, %eax
	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	"Interface %s already disabled"

	.comm	_AP_EVENT_DISABLED,4,2          ## @AP_EVENT_DISABLED
	.comm	_WPA_DRIVER_FLAGS_AP_TEARDOWN_SUPPORT,4,2 ## @WPA_DRIVER_FLAGS_AP_TEARDOWN_SUPPORT
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Interface %s disabled"

	.comm	_HAPD_IFACE_DISABLED,4,2        ## @HAPD_IFACE_DISABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_disable_iface          ; -- Begin function hostapd_disable_iface
	.p2align	2
_hostapd_disable_iface:                 ; @hostapd_disable_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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.2:
	ldr	w0, [x8, #24]
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _AP_EVENT_DISABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AP_EVENT_DISABLED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_wpa_msg
	ldp	x9, x8, [x19, #8]
	ldr	x22, [x8]
	ldp	x20, x21, [x22, #8]
	ldr	w8, [x19, #4]
Lloh6:
	adrp	x10, _WPA_DRIVER_FLAGS_AP_TEARDOWN_SUPPORT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WPA_DRIVER_FLAGS_AP_TEARDOWN_SUPPORT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w8
	cset	w8, ne
	str	w8, [x19]
	cbz	x9, LBB0_6
; %bb.3:
	mov	x0, x22
	bl	_hostapd_bss_deinit_no_free
	mov	x0, x22
	bl	_hostapd_free_hapd_data
	ldr	x8, [x19, #8]
	cmp	x8, #2
	b.lo	LBB0_6
; %bb.4:
	mov	w23, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x22, [x8, x23, lsl #3]
	mov	x0, x22
	bl	_hostapd_bss_deinit_no_free
	mov	x0, x22
	bl	_hostapd_free_hapd_data
	add	x23, x23, #1
	ldr	x8, [x19, #8]
	cmp	x23, x8
	b.lo	LBB0_5
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_hostapd_deinit_driver
	mov	x0, x19
	bl	_hostapd_cleanup_iface_partial
Lloh9:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w2, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
Lloh14:
	adrp	x8, _HAPD_IFACE_DISABLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HAPD_IFACE_DISABLED@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hostapd_set_state
	mov	w0, #0
	b	LBB0_9
LBB0_7:
Lloh17:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w2, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_8:
	mov	w0, #-1
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Interface %s already disabled"

	.comm	_AP_EVENT_DISABLED,4,2          ; @AP_EVENT_DISABLED
	.comm	_WPA_DRIVER_FLAGS_AP_TEARDOWN_SUPPORT,4,2 ; @WPA_DRIVER_FLAGS_AP_TEARDOWN_SUPPORT
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Interface %s disabled"

	.comm	_HAPD_IFACE_DISABLED,4,2        ; @HAPD_IFACE_DISABLED
.subsections_via_symbols
