	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cw1200_tx_h_calc_link_ids
_cw1200_tx_h_calc_link_ids:             ## @cw1200_tx_h_calc_link_ids
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpq	$0, 16(%rsi)
	je	LBB0_4
## %bb.1:
	movq	32(%rbx), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, 4(%rbx)
LBB0_3:
	movl	%eax, (%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%r14), %rdx
	cltq
	movl	%ecx, -4(%rdx,%rax,4)
	jmp	LBB0_6
LBB0_4:
	movq	(%r14), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.9:
	movl	24(%rbx), %edi
	callq	_is_multicast_ether_addr
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	cmpq	$0, 24(%r14)
	movl	$0, (%rbx)
	je	LBB0_12
## %bb.11:
	movq	_CW1200_LINK_ID_AFTER_DTIM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_6
LBB0_5:
	movq	$0, (%rbx)
LBB0_6:
	movq	16(%rbx), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movl	(%rax), %r15d
	movl	8(%rbx), %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_16
## %bb.8:
	movq	_CW1200_LINK_ID_UAPSD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	callq	_cw1200_find_link_id
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.14:
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	callq	_cw1200_alloc_link_id
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.15:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wiphy_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_16
LBB0_12:
	movl	$0, 4(%rbx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_CW1200_LINK_ID_AFTER_DTIM,4,2  ## @CW1200_LINK_ID_AFTER_DTIM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No more link IDs available.\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_CW1200_LINK_ID_UAPSD,4,2       ## @CW1200_LINK_ID_UAPSD
	.no_dead_strip	_cw1200_tx_h_calc_link_ids
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cw1200_tx_h_calc_link_ids
_cw1200_tx_h_calc_link_ids:             ; @cw1200_tx_h_calc_link_ids
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	cbz	w0, LBB0_4
; %bb.2:
	str	w0, [x19, #4]
LBB0_3:
	str	w0, [x19]
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x20, #8]
	add	x9, x9, w0, sxtw #2
	stur	w8, [x9, #-4]
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_9
	b	LBB0_15
LBB0_4:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	ldr	w0, [x19, #24]
	bl	_is_multicast_ether_addr
	cbz	x0, LBB0_11
; %bb.6:
	ldr	x8, [x20, #24]
	str	wzr, [x19]
	cbz	x8, LBB0_14
; %bb.7:
Lloh6:
	adrp	x8, _CW1200_LINK_ID_AFTER_DTIM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CW1200_LINK_ID_AFTER_DTIM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_9
	b	LBB0_15
LBB0_8:
	str	xzr, [x19]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_15
LBB0_9:
	ldr	w20, [x8]
	ldr	w0, [x19, #8]
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_15
; %bb.10:
	mov	w0, #0
Lloh9:
	adrp	x8, _CW1200_LINK_ID_UAPSD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CW1200_LINK_ID_UAPSD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_16
LBB0_11:
	ldr	w1, [x19, #24]
	mov	x0, x20
	bl	_cw1200_find_link_id
	str	w0, [x19, #4]
	cbnz	w0, LBB0_3
; %bb.12:
	ldr	w1, [x19, #24]
	mov	x0, x20
	bl	_cw1200_alloc_link_id
	str	w0, [x19, #4]
	cbnz	w0, LBB0_3
; %bb.13:
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_err
Lloh14:
	adrp	x8, _ENOENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_14:
	str	wzr, [x19, #4]
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_9
LBB0_15:
	mov	w0, #0
LBB0_16:
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_CW1200_LINK_ID_AFTER_DTIM,4,2  ; @CW1200_LINK_ID_AFTER_DTIM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No more link IDs available.\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_CW1200_LINK_ID_UAPSD,4,2       ; @CW1200_LINK_ID_UAPSD
	.no_dead_strip	_cw1200_tx_h_calc_link_ids
.subsections_via_symbols
