	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_dump_drv_rsvd_page         ## -- Begin function rtw_dump_drv_rsvd_page
	.p2align	4, 0x90
_rtw_dump_drv_rsvd_page:                ## @rtw_dump_drv_rsvd_page
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	testb	$3, %dl
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rtw_warn
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_2:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edx
	movq	_TX_PAGE_SIZE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	addl	%esi, %edx
	movq	_FIFO_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	decl	%r12d
	andl	%edx, %r12d
	movq	_FIFO_PAGE_SIZE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movq	_RSVD_PAGE_START_ADDR@GOTPCREL(%rip), %rax
	addl	(%rax), %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	_REG_RCR@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	$2, %rsi
	movq	%rbx, %rdi
	callq	_rtw_read8
	movl	%eax, %r15d
	movq	_REG_PKTBUF_DBG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtw_read16
	andl	$61440, %eax                    ## imm = 0xF000
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	(%r14), %r14
	movl	$3, %edi
	callq	_BIT
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	orl	%eax, %r15d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_rtw_write8
	xorl	%r15d, %r15d
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	_REG_PKTBUF_DBG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	orl	-48(%rbp), %edx                 ## 4-byte Folded Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_rtw_write16
	movq	_FIFO_PAGE_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_FIFO_DUMP_ADDR@GOTPCREL(%rip), %rax
	addl	(%rax), %r12d
	movslq	%r15d, %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r13
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	addq	$-4, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r12,%rbx), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_rtw_read32
	movl	%eax, (%r13,%rbx)
	cmpl	%ebx, %r14d
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	_FIFO_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FIFO_DUMP_ADDR@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	addq	$4, %rbx
	incl	%r15d
	leal	(%rbx,%r12), %ecx
	cmpl	%eax, %ecx
	jl	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	subl	%ebx, %eax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	-52(%rbp)                       ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jne	LBB0_3
LBB0_10:
	movq	_REG_PKTBUF_DBG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_rtw_write16
	movq	_REG_RCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$2, %rsi
	movq	%rbx, %rdi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_rtw_write8
	xorl	%eax, %eax
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"should be 4-byte aligned\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TX_PAGE_SIZE_SHIFT,4,2         ## @TX_PAGE_SIZE_SHIFT
	.comm	_FIFO_PAGE_SIZE,4,2             ## @FIFO_PAGE_SIZE
	.comm	_FIFO_PAGE_SIZE_SHIFT,4,2       ## @FIFO_PAGE_SIZE_SHIFT
	.comm	_RSVD_PAGE_START_ADDR,8,3       ## @RSVD_PAGE_START_ADDR
	.comm	_REG_RCR,8,3                    ## @REG_RCR
	.comm	_REG_PKTBUF_DBG_CTRL,4,2        ## @REG_PKTBUF_DBG_CTRL
	.comm	_FIFO_DUMP_ADDR,4,2             ## @FIFO_DUMP_ADDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_dump_drv_rsvd_page         ; -- Begin function rtw_dump_drv_rsvd_page
	.p2align	2
_rtw_dump_drv_rsvd_page:                ; @rtw_dump_drv_rsvd_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	tst	w2, #0x3
	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
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
	mov	x20, x3
	mov	x21, x2
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _TX_PAGE_SIZE_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TX_PAGE_SIZE_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh8:
	adrp	x25, _FIFO_PAGE_SIZE@GOTPAGE
Lloh9:
	ldr	x25, [x25, _FIFO_PAGE_SIZE@GOTPAGEOFF]
	ldr	w9, [x25]
	sub	w9, w9, #1
	add	w8, w8, w1
	and	w28, w8, w9
Lloh10:
	adrp	x9, _FIFO_PAGE_SIZE_SHIFT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FIFO_PAGE_SIZE_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh13:
	adrp	x9, _RSVD_PAGE_START_ADDR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RSVD_PAGE_START_ADDR@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	add	w27, w8, w9
Lloh16:
	adrp	x22, _REG_RCR@GOTPAGE
Lloh17:
	ldr	x22, [x22, _REG_RCR@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x1, x8, #2
	mov	x0, x19
	bl	_rtw_read8
	mov	x26, x0
Lloh18:
	adrp	x8, _REG_PKTBUF_DBG_CTRL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REG_PKTBUF_DBG_CTRL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtw_read16
	and	w23, w0, #0xf000
	ldr	x24, [x22]
	mov	w0, #3
	bl	_BIT
	str	w26, [sp, #12]                  ; 4-byte Folded Spill
	orr	w2, w0, w26
	mov	x0, x19
	mov	x1, x24
	bl	_rtw_write8
	mov	w26, #0
Lloh21:
	adrp	x22, _FIFO_DUMP_ADDR@GOTPAGE
Lloh22:
	ldr	x22, [x22, _FIFO_DUMP_ADDR@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
	add	w27, w27, #1
	cbz	w21, LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
Lloh23:
	adrp	x8, _REG_PKTBUF_DBG_CTRL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _REG_PKTBUF_DBG_CTRL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	orr	w2, w27, w23
	mov	x0, x19
	bl	_rtw_write16
	ldr	w8, [x25]
	cmp	w28, w8
	b.ge	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	add	w24, w8, w28
	add	x28, x20, w26, sxtw #2
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x24
	bl	_rtw_read32
	str	w0, [x28]
	subs	w21, w21, #4
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	w24, w24, #4
	ldr	w8, [x22]
	ldr	w9, [x25]
	add	x28, x28, #4
	add	w26, w26, #1
	add	w8, w9, w8
	cmp	w24, w8
	b.lt	LBB0_6
	b	LBB0_3
LBB0_8:
Lloh26:
	adrp	x8, _REG_PKTBUF_DBG_CTRL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _REG_PKTBUF_DBG_CTRL@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_rtw_write16
Lloh29:
	adrp	x8, _REG_RCR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _REG_RCR@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	add	x1, x8, #2
	mov	x0, x19
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_rtw_write8
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"should be 4-byte aligned\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TX_PAGE_SIZE_SHIFT,4,2         ; @TX_PAGE_SIZE_SHIFT
	.comm	_FIFO_PAGE_SIZE,4,2             ; @FIFO_PAGE_SIZE
	.comm	_FIFO_PAGE_SIZE_SHIFT,4,2       ; @FIFO_PAGE_SIZE_SHIFT
	.comm	_RSVD_PAGE_START_ADDR,8,3       ; @RSVD_PAGE_START_ADDR
	.comm	_REG_RCR,8,3                    ; @REG_RCR
	.comm	_REG_PKTBUF_DBG_CTRL,4,2        ; @REG_PKTBUF_DBG_CTRL
	.comm	_FIFO_DUMP_ADDR,4,2             ; @FIFO_DUMP_ADDR
.subsections_via_symbols
