	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ieee80211_beacon_add_tim
___ieee80211_beacon_add_tim:            ## @__ieee80211_beacon_add_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	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	leaq	20(%rsi), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_1
## %bb.2:
	movq	8(%r13), %rdi
	movq	_IEEE80211_MAX_AID@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	callq	_bitmap_empty
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movl	(%r13), %eax
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	(%r12), %eax
LBB0_5:
	decl	%eax
	movl	%eax, (%r13)
	movq	%r15, %rdi
	movl	$6, %esi
	callq	_skb_put
	movq	%rax, %r14
	movq	_WLAN_EID_TIM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	$4, 4(%r14)
	movl	(%r13), %eax
	movl	%eax, 8(%r14)
	movl	(%r12), %eax
	movl	%eax, 12(%r14)
	xorl	%ecx, %ecx
	cmpl	$0, (%r13)
	jne	LBB0_7
## %bb.6:
	leaq	16(%r13), %rdi
	callq	_skb_queue_empty
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
LBB0_7:
	movl	%ecx, 4(%r13)
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.8:
	movq	_IEEE80211_MAX_TIM_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_13
## %bb.9:
	movq	8(%r13), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rsi,%rax,8)
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rax
	cmpq	%rax, %rdx
	jne	LBB0_10
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_20:
	movl	%ecx, 16(%r14)
	movl	$0, 20(%r14)
	jmp	LBB0_21
LBB0_11:
	andl	$254, %eax
LBB0_14:
	movslq	%edx, %rdx
	movl	%eax, %r12d
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, %rdx
	jle	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	leaq	-1(%rdx), %rbx
	movq	8(%r13), %rsi
	cmpq	$0, -8(%rsi,%rdx,8)
	movq	%rbx, %rdx
	je	LBB0_15
## %bb.18:
	movq	%r15, %rdi
	jmp	LBB0_19
LBB0_16:
	movq	%r15, %rdi
	movl	%eax, %ebx
LBB0_19:
	orl	%eax, %ecx
	movq	%r14, %r15
	addq	$20, %r15
	movl	%ecx, 16(%r14)
	subl	%eax, %ebx
	movl	%ebx, %esi
	callq	_skb_put
	shlq	$3, %r12
	addq	8(%r13), %r12
	leal	1(%rbx), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_memcpy
	addl	$4, %ebx
	movl	%ebx, 4(%r14)
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MAX_AID,8,3          ## @IEEE80211_MAX_AID
	.comm	_WLAN_EID_TIM,4,2               ## @WLAN_EID_TIM
	.comm	_IEEE80211_MAX_TIM_LEN,4,2      ## @IEEE80211_MAX_TIM_LEN
	.no_dead_strip	___ieee80211_beacon_add_tim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ieee80211_beacon_add_tim
___ieee80211_beacon_add_tim:            ; @__ieee80211_beacon_add_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	x20, x2
	mov	x19, x1
	mov	x22, x0
	add	x0, x1, #20
	bl	_atomic_read
	cmp	x0, #1
	b.lt	LBB0_10
; %bb.1:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x8, _IEEE80211_MAX_AID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_MAX_AID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, #1
	bl	_bitmap_empty
	cmp	w0, #0
	cset	w23, eq
	ldr	w8, [x19]
	cbnz	w8, LBB0_3
LBB0_2:
	ldr	w8, [x22]
LBB0_3:
	sub	w8, w8, #1
	str	w8, [x19]
	mov	x0, x20
	mov	w1, #6
	bl	_skb_put
	mov	x21, x0
Lloh3:
	adrp	x8, _WLAN_EID_TIM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_EID_TIM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #4
	stp	w8, w9, [x0]
	ldr	w8, [x19]
	str	w8, [x0, #8]
	ldr	w8, [x22]
	str	w8, [x0, #12]
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.4:
	mov	w8, #0
	str	w8, [x19, #4]
	cbz	w23, LBB0_12
LBB0_5:
Lloh6:
	adrp	x9, _IEEE80211_MAX_TIM_LEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_MAX_TIM_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x10, #0
	ldr	x11, [x19, #8]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11, x10, lsl #3]
	cbnz	x12, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_7
LBB0_9:
	mov	w10, #0
	b	LBB0_14
LBB0_10:
	mov	w23, #0
	ldr	w8, [x19]
	cbnz	w8, LBB0_3
	b	LBB0_2
LBB0_11:
	add	x0, x19, #16
	bl	_skb_queue_empty
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x19, #4]
	cbnz	w23, LBB0_5
LBB0_12:
	stp	w8, wzr, [x21, #16]
	b	LBB0_19
LBB0_13:
	and	w10, w10, #0xfe
LBB0_14:
	sxtw	x11, w9
	mov	w24, w10
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cmp	x11, x24
	b.le	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	sub	x9, x11, #1
	ldr	x12, [x19, #8]
	add	x11, x12, x11, lsl #3
	ldur	x12, [x11, #-8]
	mov	x11, x9
	cbz	x12, LBB0_15
	b	LBB0_18
LBB0_17:
	mov	x9, x10
LBB0_18:
	orr	w8, w10, w8
	add	x22, x21, #20
	str	w8, [x21, #16]
	sub	w23, w9, w10
	mov	x0, x20
	mov	x1, x23
	bl	_skb_put
	ldr	x8, [x19, #8]
	add	x1, x8, x24, lsl #3
	add	w2, w23, #1
	mov	x0, x22
	bl	_memcpy
	add	w8, w23, #4
	str	w8, [x21, #4]
LBB0_19:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MAX_AID,8,3          ; @IEEE80211_MAX_AID
	.comm	_WLAN_EID_TIM,4,2               ; @WLAN_EID_TIM
	.comm	_IEEE80211_MAX_TIM_LEN,4,2      ; @IEEE80211_MAX_TIM_LEN
	.no_dead_strip	___ieee80211_beacon_add_tim
.subsections_via_symbols
