	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wnm_send_ess_disassoc_imminent ## -- Begin function wnm_send_ess_disassoc_imminent
	.p2align	4, 0x90
_wnm_send_ess_disassoc_imminent:        ## @wnm_send_ess_disassoc_imminent
	.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	$4024, %rsp                     ## imm = 0xFB8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-4048(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4000, %edx                     ## imm = 0xFA0
	callq	_os_memset
	movq	_WLAN_FC_TYPE_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WLAN_FC_STYPE_ACTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IEEE80211_FC
	movl	%eax, -3984(%rbp)
	movq	-3992(%rbp), %rdi
	movq	%rbx, -4064(%rbp)               ## 8-byte Spill
	movq	(%rbx), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	callq	_os_memcpy
	movq	-4000(%rbp), %rdi
	movq	(%r13), %rsi
	movq	(%rbx), %rdx
	callq	_os_memcpy
	movq	-4008(%rbp), %rdi
	movq	(%r13), %rsi
	movq	(%rbx), %rdx
	callq	_os_memcpy
	movq	_WLAN_ACTION_WNM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -4016(%rbp)
	movq	_WNM_BSS_TRANS_MGMT_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -4020(%rbp)
	movl	$1, -4048(%rbp)
	movq	_WNM_BSS_TM_REQ_DISASSOC_IMMINENT@GOTPCREL(%rip), %rax
	movq	_WNM_BSS_TM_REQ_ESS_DISASSOC_IMMINENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -4044(%rbp)
	movl	%r14d, -4052(%rbp)              ## 4-byte Spill
	movl	%r14d, %edi
	callq	_host_to_le16
	movl	%eax, -4024(%rbp)
	movl	$1, -4040(%rbp)
	movq	-4032(%rbp), %r15
	movq	%r12, %rdi
	callq	_os_strlen
	movl	$-1, %ebx
	cmpq	$255, %rax
	ja	LBB0_6
## %bb.1:
	movq	%rax, %r14
	leaq	4(%r15), %rdi
	movl	%r14d, (%r15)
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_os_memcpy
	leaq	(%r15,%r14,4), %rdx
	addq	$4, %rdx
	leaq	-4048(%rbp), %rsi
	subq	%rsi, %rdx
	shrq	$2, %rdx
	movq	%r13, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_hostapd_drv_send_mlme
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	cmpl	$0, -4052(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	movq	-4064(%rbp), %rsi               ## 8-byte Reload
	movl	-4052(%rbp), %edx               ## 4-byte Reload
	callq	_set_disassoc_timer
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	addq	$4024, %rsp                     ## imm = 0xFB8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_FC_TYPE_MGMT,4,2          ## @WLAN_FC_TYPE_MGMT
	.comm	_WLAN_FC_STYPE_ACTION,4,2       ## @WLAN_FC_STYPE_ACTION
	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
	.comm	_WLAN_ACTION_WNM,4,2            ## @WLAN_ACTION_WNM
	.comm	_WNM_BSS_TRANS_MGMT_REQ,4,2     ## @WNM_BSS_TRANS_MGMT_REQ
	.comm	_WNM_BSS_TM_REQ_DISASSOC_IMMINENT,4,2 ## @WNM_BSS_TM_REQ_DISASSOC_IMMINENT
	.comm	_WNM_BSS_TM_REQ_ESS_DISASSOC_IMMINENT,4,2 ## @WNM_BSS_TM_REQ_ESS_DISASSOC_IMMINENT
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to send BSS Transition Management Request frame"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wnm_send_ess_disassoc_imminent ; -- Begin function wnm_send_ess_disassoc_imminent
	.p2align	2
_wnm_send_ess_disassoc_imminent:        ; @wnm_send_ess_disassoc_imminent
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #4016
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	add	x25, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4000
	bl	_os_memset
Lloh3:
	adrp	x8, _WLAN_FC_TYPE_MGMT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_FC_TYPE_MGMT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _WLAN_FC_STYPE_ACTION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WLAN_FC_STYPE_ACTION@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_IEEE80211_FC
	str	w0, [sp, #72]
	ldr	x0, [sp, #64]
	ldr	x1, [x20]
Lloh9:
	adrp	x23, _ETH_ALEN@GOTPAGE
Lloh10:
	ldr	x23, [x23, _ETH_ALEN@GOTPAGEOFF]
	ldr	x2, [x23]
	bl	_os_memcpy
	ldr	x0, [sp, #56]
	ldr	x1, [x21]
	ldr	x2, [x23]
	bl	_os_memcpy
	ldr	x0, [sp, #48]
	ldr	x1, [x21]
	ldr	x2, [x23]
	bl	_os_memcpy
Lloh11:
	adrp	x8, _WLAN_ACTION_WNM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WLAN_ACTION_WNM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _WNM_BSS_TRANS_MGMT_REQ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _WNM_BSS_TRANS_MGMT_REQ@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #36]
	mov	w23, #1
Lloh17:
	adrp	x8, _WNM_BSS_TM_REQ_DISASSOC_IMMINENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WNM_BSS_TM_REQ_DISASSOC_IMMINENT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _WNM_BSS_TM_REQ_ESS_DISASSOC_IMMINENT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _WNM_BSS_TM_REQ_ESS_DISASSOC_IMMINENT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	w23, w8, [sp, #8]
	mov	x0, x19
	bl	_host_to_le16
	str	w0, [sp, #32]
	str	w23, [sp, #16]
	ldr	x23, [sp, #24]
	mov	x0, x22
	bl	_os_strlen
	cmp	x0, #255
	b.hi	LBB0_6
; %bb.1:
	mov	x24, x0
	str	w24, [x23], #4
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_os_memcpy
	add	x8, x23, x24, lsl #2
	sub	x8, x8, x25
	lsr	x2, x8, #2
	add	x1, sp, #8
	mov	x0, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	w3, #0
	bl	_hostapd_drv_send_mlme
	tbnz	x0, #63, LBB0_5
; %bb.2:
	cbz	w19, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_set_disassoc_timer
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh23:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldur	x8, [x29, #-72]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	add	sp, sp, #4016
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_FC_TYPE_MGMT,4,2          ; @WLAN_FC_TYPE_MGMT
	.comm	_WLAN_FC_STYPE_ACTION,4,2       ; @WLAN_FC_STYPE_ACTION
	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
	.comm	_WLAN_ACTION_WNM,4,2            ; @WLAN_ACTION_WNM
	.comm	_WNM_BSS_TRANS_MGMT_REQ,4,2     ; @WNM_BSS_TRANS_MGMT_REQ
	.comm	_WNM_BSS_TM_REQ_DISASSOC_IMMINENT,4,2 ; @WNM_BSS_TM_REQ_DISASSOC_IMMINENT
	.comm	_WNM_BSS_TM_REQ_ESS_DISASSOC_IMMINENT,4,2 ; @WNM_BSS_TM_REQ_ESS_DISASSOC_IMMINENT
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to send BSS Transition Management Request frame"

.subsections_via_symbols
