	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_ctrl_iface_deauthenticate ## -- Begin function hostapd_ctrl_iface_deauthenticate
	.p2align	4, 0x90
_hostapd_ctrl_iface_deauthenticate:     ## @hostapd_ctrl_iface_deauthenticate
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_WLAN_REASON_PREV_AUTH_NOT_VALID@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	24(%r15), %edi
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rcx
	callq	_wpa_dbg
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_hwaddr_aton
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_1
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_os_strstr
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	addq	$8, %rax
	movq	%rax, %rdi
	callq	_atoi
	movq	%rax, %r14
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_os_strstr
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movl	$-1, %r13d
	cmpl	$0, 8(%r15)
	je	LBB0_14
## %bb.5:
	movq	16(%r15), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_14
## %bb.6:
	addq	$6, %rax
	movq	%rax, %rdi
	callq	_atoi
	movq	%rax, %rbx
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_os_memset
	movq	_WLAN_FC_TYPE_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WLAN_FC_STYPE_DEAUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IEEE80211_FC
	movl	%eax, -56(%rbp)
	movl	-60(%rbp), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r12, %rsi
	callq	_os_memcpy
	movl	-64(%rbp), %edi
	movq	(%r15), %rsi
	movl	(%r13), %edx
	callq	_os_memcpy
	movl	-68(%rbp), %edi
	movq	(%r15), %rsi
	movl	(%r13), %edx
	callq	_os_memcpy
	movq	%r14, %rdi
	callq	_host_to_le16
	movl	%eax, -72(%rbp)
	movq	16(%r15), %rax
	movl	8(%r15), %edi
	movq	_IEEE80211_HDRLEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	$4, %rdx
	leaq	-72(%rbp), %rsi
	movl	%ebx, %ecx
	callq	*(%rax)
	movq	%rax, %r13
	sarq	$63, %r13
	jmp	LBB0_14
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_os_strstr
	movq	%r15, %rdi
	movq	%r12, %rsi
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	callq	_hostapd_drv_sta_remove
	jmp	LBB0_10
LBB0_9:
	movq	%r14, %rdx
	callq	_hostapd_drv_sta_deauth
LBB0_10:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ap_get_sta
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_ap_sta_deauthenticate
	xorl	%r13d, %r13d
	jmp	LBB0_14
LBB0_12:
	xorl	%r13d, %r13d
	cmpl	$255, (%r12)
	jne	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_hostapd_free_stas
	jmp	LBB0_14
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_WLAN_REASON_PREV_AUTH_NOT_VALID,8,3 ## @WLAN_REASON_PREV_AUTH_NOT_VALID
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CTRL_IFACE DEAUTHENTICATE %s"

L_.str.1:                               ## @.str.1
	.asciz	" reason="

L_.str.2:                               ## @.str.2
	.asciz	" test="

	.comm	_WLAN_FC_TYPE_MGMT,4,2          ## @WLAN_FC_TYPE_MGMT
	.comm	_WLAN_FC_STYPE_DEAUTH,4,2       ## @WLAN_FC_STYPE_DEAUTH
	.comm	_IEEE80211_HDRLEN,8,3           ## @IEEE80211_HDRLEN
L_.str.3:                               ## @.str.3
	.asciz	" tx=0"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_ctrl_iface_deauthenticate ; -- Begin function hostapd_ctrl_iface_deauthenticate
	.p2align	2
_hostapd_ctrl_iface_deauthenticate:     ; @hostapd_ctrl_iface_deauthenticate
	.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
	sub	sp, sp, #32
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x8, _WLAN_REASON_PREV_AUTH_NOT_VALID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WLAN_REASON_PREV_AUTH_NOT_VALID@GOTPAGEOFF]
Lloh9:
	ldr	x20, [x8]
	ldr	w0, [x0, #24]
Lloh10:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x22
	bl	_wpa_dbg
	mov	x0, x22
	mov	x1, x21
	bl	_hwaddr_aton
	cbz	x0, LBB0_4
LBB0_1:
	mov	w0, #-1
LBB0_2:
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.3:
                                        ; kill: def $w0 killed $w0 killed $x0
	sub	sp, x29, #48
	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_4:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_os_strstr
	cbz	x0, LBB0_6
; %bb.5:
	add	x0, x0, #8
	bl	_atoi
	mov	x20, x0
LBB0_6:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_os_strstr
	cbz	x0, LBB0_10
; %bb.7:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_1
; %bb.8:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.9:
	add	x0, x0, #6
	bl	_atoi
	mov	x22, x0
	sub	x0, x29, #80
	mov	w1, #0
	mov	w2, #20
	bl	_os_memset
Lloh22:
	adrp	x8, _WLAN_FC_TYPE_MGMT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WLAN_FC_TYPE_MGMT@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _WLAN_FC_STYPE_DEAUTH@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WLAN_FC_STYPE_DEAUTH@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_IEEE80211_FC
	stur	w0, [x29, #-64]
	ldur	w0, [x29, #-68]
	ldr	w2, [x23]
	mov	x1, x21
	bl	_os_memcpy
	ldur	w0, [x29, #-72]
	ldr	x1, [x19]
	ldr	w2, [x23]
	bl	_os_memcpy
	ldur	w0, [x29, #-76]
	ldr	x1, [x19]
	ldr	w2, [x23]
	bl	_os_memcpy
	mov	x0, x20
	bl	_host_to_le16
	stur	w0, [x29, #-80]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w0, [x19, #8]
Lloh28:
	adrp	x9, _IEEE80211_HDRLEN@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IEEE80211_HDRLEN@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	add	x2, x9, #4
	sub	x1, x29, #80
	mov	x3, x22
	blr	x8
	asr	x0, x0, #63
	b	LBB0_2
LBB0_10:
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_os_strstr
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x21
	bl	_hostapd_drv_sta_remove
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_hostapd_drv_sta_deauth
LBB0_13:
	mov	x0, x19
	mov	x1, x21
	bl	_ap_get_sta
	cbz	x0, LBB0_15
; %bb.14:
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_ap_sta_deauthenticate
	b	LBB0_17
LBB0_15:
	ldr	w8, [x21]
	cmp	w8, #255
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_hostapd_free_stas
LBB0_17:
	mov	w0, #0
	b	LBB0_2
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_WLAN_REASON_PREV_AUTH_NOT_VALID,8,3 ; @WLAN_REASON_PREV_AUTH_NOT_VALID
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CTRL_IFACE DEAUTHENTICATE %s"

l_.str.1:                               ; @.str.1
	.asciz	" reason="

l_.str.2:                               ; @.str.2
	.asciz	" test="

	.comm	_WLAN_FC_TYPE_MGMT,4,2          ; @WLAN_FC_TYPE_MGMT
	.comm	_WLAN_FC_STYPE_DEAUTH,4,2       ; @WLAN_FC_STYPE_DEAUTH
	.comm	_IEEE80211_HDRLEN,8,3           ; @IEEE80211_HDRLEN
l_.str.3:                               ; @.str.3
	.asciz	" tx=0"

.subsections_via_symbols
