	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cw1200_tx_h_pm_state
_cw1200_tx_h_pm_state:                  ## @cw1200_tx_h_pm_state
	.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, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_CW1200_LINK_ID_AFTER_DTIM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	cmpl	$0, (%r14)
	jne	LBB0_4
## %bb.2:
	movl	$1, (%r14)
	cmpq	$0, 24(%r14)
	je	LBB0_4
## %bb.3:
	movl	20(%r14), %edi
	leaq	16(%r14), %rsi
	callq	_queue_work
LBB0_4:
	movslq	8(%rbx), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:
	movq	16(%rbx), %rdx
	movq	_CW1200_MAX_TID@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jae	LBB0_7
## %bb.6:
	movq	8(%r14), %rax
	movq	-8(%rax,%rcx,8), %rax
	movl	(%rax,%rdx,4), %ecx
	leal	1(%rcx), %esi
	movl	%esi, (%rax,%rdx,4)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	sete	%al
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CW1200_LINK_ID_AFTER_DTIM,8,3  ## @CW1200_LINK_ID_AFTER_DTIM
	.comm	_CW1200_MAX_TID,8,3             ## @CW1200_MAX_TID
	.no_dead_strip	_cw1200_tx_h_pm_state
.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_pm_state
_cw1200_tx_h_pm_state:                  ; @cw1200_tx_h_pm_state
	.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, [x1]
Lloh0:
	adrp	x9, _CW1200_LINK_ID_AFTER_DTIM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CW1200_LINK_ID_AFTER_DTIM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x19]
	cbnz	w8, LBB0_4
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19, #20]
	add	x1, x19, #16
	bl	_queue_work
LBB0_4:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_7
; %bb.5:
	ldr	x9, [x20, #16]
Lloh3:
	adrp	x10, _CW1200_MAX_TID@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CW1200_MAX_TID@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.hs	LBB0_7
; %bb.6:
	ldr	x10, [x19, #8]
	sub	w8, w8, #1
	ldr	x8, [x10, w8, sxtw #3]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w11, w10, #1
	str	w11, [x8, x9]
	cmp	w10, #0
	cset	w0, eq
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_CW1200_LINK_ID_AFTER_DTIM,8,3  ; @CW1200_LINK_ID_AFTER_DTIM
	.comm	_CW1200_MAX_TID,8,3             ; @CW1200_MAX_TID
	.no_dead_strip	_cw1200_tx_h_pm_state
.subsections_via_symbols
