	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1251_tx_double_buffer_busy
_wl1251_tx_double_buffer_busy:          ## @wl1251_tx_double_buffer_busy
	.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
	movl	(%rdi), %eax
	movq	_TX_STATUS_DATA_OUT_COUNT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	incl	%ecx
	xorl	%edx, %edx
	subl	%esi, %eax
	cmovll	%ecx, %edx
	leal	(%rax,%rdx), %ebx
	movl	%ebx, %edi
	shrl	$31, %edi
	callq	_WARN_ON
	movq	_DP_TX_PACKET_RING_CHUNK_NUM@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpl	(%r14), %ebx
	setg	%dil
	callq	_WARN_ON
	xorl	%eax, %eax
	cmpl	(%r14), %ebx
	setge	%al
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_STATUS_DATA_OUT_COUNT_MASK,8,3 ## @TX_STATUS_DATA_OUT_COUNT_MASK
	.comm	_DP_TX_PACKET_RING_CHUNK_NUM,4,2 ## @DP_TX_PACKET_RING_CHUNK_NUM
	.no_dead_strip	_wl1251_tx_double_buffer_busy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1251_tx_double_buffer_busy
_wl1251_tx_double_buffer_busy:          ; @wl1251_tx_double_buffer_busy
	.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
Lloh0:
	adrp	x8, _TX_STATUS_DATA_OUT_COUNT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_STATUS_DATA_OUT_COUNT_MASK@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh2:
	ldr	w8, [x8]
	subs	w9, w9, w1
	csinc	w8, wzr, w8, ge
	add	w19, w9, w8
	lsr	w0, w19, #31
	bl	_WARN_ON
Lloh3:
	adrp	x20, _DP_TX_PACKET_RING_CHUNK_NUM@GOTPAGE
Lloh4:
	ldr	x20, [x20, _DP_TX_PACKET_RING_CHUNK_NUM@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w19, w8
	cset	w0, gt
	bl	_WARN_ON
	ldr	w8, [x20]
	cmp	w19, w8
	cset	w0, ge
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_STATUS_DATA_OUT_COUNT_MASK,8,3 ; @TX_STATUS_DATA_OUT_COUNT_MASK
	.comm	_DP_TX_PACKET_RING_CHUNK_NUM,4,2 ; @DP_TX_PACKET_RING_CHUNK_NUM
	.no_dead_strip	_wl1251_tx_double_buffer_busy
.subsections_via_symbols
