	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54_beacon_format_ie_tim
_p54_beacon_format_ie_tim:              ## @p54_beacon_format_ie_tim
	.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
	movq	%rdi, %r15
	movq	_WLAN_EID_TIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_p54_find_ie
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movl	4(%rax), %r13d
	cmpl	$2, %r13d
	jg	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_3:
	leaq	(%rbx,%r13,4), %r12
	addq	$8, %r12
	movl	12(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_skb_tail_pointer
	subq	%r12, %rax
	shrq	$2, %rax
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_memmove
	movq	%r15, %rdi
	callq	_skb_tail_pointer
	movl	$-2, %ecx
	subl	%r13d, %ecx
	movslq	%ecx, %rcx
	movq	_WLAN_EID_TIM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rax,%rcx,4)
	movq	$3, 4(%rax,%rcx,4)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, 12(%rax,%rcx,4)
	movl	$0, 16(%rax,%rcx,4)
	cmpl	$3, %r13d
	je	LBB0_5
## %bb.4:
	movl	(%r15), %esi
	subl	%r13d, %esi
	addl	$3, %esi
	movq	%r15, %rdi
	callq	_skb_trim
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_TIM,4,2               ## @WLAN_EID_TIM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_p54_beacon_format_ie_tim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function p54_beacon_format_ie_tim
lCPI0_0:
	.long	3                               ; 0x3
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_p54_beacon_format_ie_tim:              ; @p54_beacon_format_ie_tim
	.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
	mov	x19, x0
Lloh0:
	adrp	x23, _WLAN_EID_TIM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WLAN_EID_TIM@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_p54_find_ie
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w22, [x0, #4]
	cmp	w22, #2
	b.gt	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	add	x8, x20, x22, lsl #2
	add	x21, x8, #8
	ldr	w24, [x20, #12]
	mov	x0, x19
	bl	_skb_tail_pointer
	sub	x8, x0, x21
	lsr	x2, x8, #2
	mov	x0, x20
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memmove
	mov	x0, x19
	bl	_skb_tail_pointer
	mov	x8, x0
	mov	w0, #0
	mov	w9, #-2
	sub	w9, w9, w22
	add	x8, x8, w9, sxtw #2
	ldr	w9, [x23]
	str	w9, [x8]
Lloh5:
	adrp	x9, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	stur	d0, [x8, #4]
	stp	w24, wzr, [x8, #12]
	cmp	w22, #3
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x19]
	sub	w8, w8, w22
	add	w1, w8, #3
	mov	x0, x19
	bl	_skb_trim
	mov	w0, #0
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_TIM,4,2               ; @WLAN_EID_TIM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_p54_beacon_format_ie_tim
.subsections_via_symbols
