	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1271_tx_frames_pending
_wl1271_tx_frames_pending:              ## @wl1271_tx_frames_pending
	.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	(%rdi), %r15
	leaq	16(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	movq	_WLCORE_STATE_ON@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_wl1271_tx_total_queue_count
	movl	$1, %ebx
	testq	%rax, %rax
	jg	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r15)
	setg	%bl
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLCORE_STATE_ON,8,3            ## @WLCORE_STATE_ON
	.no_dead_strip	_wl1271_tx_frames_pending
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1271_tx_frames_pending
_wl1271_tx_frames_pending:              ; @wl1271_tx_frames_pending
	.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
	ldr	x20, [x0]
	add	x19, x20, #16
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _WLCORE_STATE_ON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLCORE_STATE_ON@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_5
LBB0_2:
	mov	x0, x20
	bl	_wl1271_tx_total_queue_count
	cmp	x0, #0
	b.le	LBB0_4
; %bb.3:
	mov	w20, #1
	b	LBB0_5
LBB0_4:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w20, gt
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WLCORE_STATE_ON,8,3            ; @WLCORE_STATE_ON
	.no_dead_strip	_wl1271_tx_frames_pending
.subsections_via_symbols
