	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_pci_dma_check
_rtw_pci_dma_check:                     ## @rtw_pci_dma_check
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	movslq	(%rax), %rax
	movq	(%rsi), %rcx
	movslq	%edx, %rdx
	imulq	%rax, %rdx
	movl	(%rcx,%rdx), %edi
	callq	_le16_to_cpu
	cmpl	(%r14), %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rtw_warn
	movl	(%r14), %eax
LBB0_2:
	incl	%eax
	movq	_RX_TAG_MAX@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%edx, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci bus timeout, check dma status\n"

	.comm	_RX_TAG_MAX,4,2                 ## @RX_TAG_MAX
	.no_dead_strip	_rtw_pci_dma_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_pci_dma_check
_rtw_pci_dma_check:                     ; @rtw_pci_dma_check
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x19, x0
	ldp	x8, x20, [x0]
	ldrsw	x8, [x8]
	ldr	x9, [x1]
	sxtw	x10, w2
	mul	x8, x8, x10
	ldr	w0, [x9, x8]
	bl	_le16_to_cpu
	ldr	w8, [x20]
	cmp	w0, w8
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rtw_warn
	ldr	w0, [x20]
LBB0_2:
	add	w8, w0, #1
Lloh2:
	adrp	x9, _RX_TAG_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RX_TAG_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci bus timeout, check dma status\n"

	.comm	_RX_TAG_MAX,4,2                 ; @RX_TAG_MAX
	.no_dead_strip	_rtw_pci_dma_check
.subsections_via_symbols
