	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mesh_add_awake_window_ie
_mesh_add_awake_window_ie:              ## @mesh_add_awake_window_ie
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rbx)
	jne	LBB0_3
## %bb.2:
	movq	16(%rbx), %rcx
	movq	_NL80211_MESH_POWER_ACTIVE@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_6
LBB0_3:
	movq	%r14, %rdi
	callq	_skb_tailroom
	cmpl	$3, %eax
	jg	LBB0_5
## %bb.4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_skb_put
	movq	_WLAN_EID_MESH_AWAKE_WINDOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	$2, 4(%rax)
	leaq	8(%rax), %rsi
	movl	24(%rbx), %edi
	callq	_put_unaligned_le16
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_MESH_POWER_ACTIVE,8,3  ## @NL80211_MESH_POWER_ACTIVE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WLAN_EID_MESH_AWAKE_WINDOW,4,2 ## @WLAN_EID_MESH_AWAKE_WINDOW
	.no_dead_strip	_mesh_add_awake_window_ie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mesh_add_awake_window_ie
_mesh_add_awake_window_ie:              ; @mesh_add_awake_window_ie
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _NL80211_MESH_POWER_ACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_MESH_POWER_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_skb_tailroom
	cmp	w0, #3
	b.gt	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	mov	w1, #4
	bl	_skb_put
Lloh6:
	adrp	x8, _WLAN_EID_MESH_AWAKE_WINDOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WLAN_EID_MESH_AWAKE_WINDOW@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	x1, x0, #8
	mov	w9, #2
	stp	w8, w9, [x0]
	ldr	w0, [x19, #24]
	bl	_put_unaligned_le16
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_MESH_POWER_ACTIVE,8,3  ; @NL80211_MESH_POWER_ACTIVE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WLAN_EID_MESH_AWAKE_WINDOW,4,2 ; @WLAN_EID_MESH_AWAKE_WINDOW
	.no_dead_strip	_mesh_add_awake_window_ie
.subsections_via_symbols
