	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_fw_write_data_rsvd_page    ## -- Begin function rtw_fw_write_data_rsvd_page
	.p2align	4, 0x90
_rtw_fw_write_data_rsvd_page:           ## @rtw_fw_write_data_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movl	%esi, %ebx
	movq	%rdi, %r14
	addq	$4, %rdi
	callq	_lockdep_assert_held
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.2:
	movq	_BIT_MASK_BCN_HEAD_1_V1@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_REG_FIFOPAGE_CTRL_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BIT_BCN_VALID_V1@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_rtw_write16
	movq	_REG_CR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	incq	%rsi
	movq	%r14, %rdi
	callq	_rtw_read8
	movq	_BIT_ENSWBCN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	sarl	$8, %edx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	orl	%eax, %edx
	movq	(%rbx), %rsi
	incq	%rsi
	movq	%r14, %rdi
	callq	_rtw_write8
	movq	_REG_FWHW_TXQ_CTRL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	$2, %rsi
	movq	%r14, %rdi
	callq	_rtw_read8
	movl	%eax, %r15d
	movq	_BIT_EN_BCNQ_DL@GOTPCREL(%rip), %rax
	movswl	2(%rax), %edx
	notl	%edx
	andl	%r15d, %edx
	movq	(%rbx), %rsi
	addq	$2, %rsi
	movq	%r14, %rdi
	callq	_rtw_write8
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_rtw_hci_write_data_rsvd_page
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_rtw_err
	movq	_REG_FIFOPAGE_CTRL_2@GOTPCREL(%rip), %rbx
	movq	_BIT_BCN_VALID_V1@GOTPCREL(%rip), %r13
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_4:
	movq	_REG_FIFOPAGE_CTRL_2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_BIT_BCN_VALID_V1@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_check_hw_ready
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_rtw_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_6:
	movl	(%rbx), %esi
	movl	(%r13), %edx
	orl	(%r14), %edx
	movq	%r14, %rdi
	callq	_rtw_write16
	movq	_REG_FWHW_TXQ_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$2, %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_rtw_write8
	movq	_REG_CR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	%r14, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_rtw_write8
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BIT_MASK_BCN_HEAD_1_V1,4,2     ## @BIT_MASK_BCN_HEAD_1_V1
	.comm	_REG_FIFOPAGE_CTRL_2,4,2        ## @REG_FIFOPAGE_CTRL_2
	.comm	_BIT_BCN_VALID_V1,4,2           ## @BIT_BCN_VALID_V1
	.comm	_REG_CR,8,3                     ## @REG_CR
	.comm	_BIT_ENSWBCN,4,2                ## @BIT_ENSWBCN
	.comm	_REG_FWHW_TXQ_CTRL,8,3          ## @REG_FWHW_TXQ_CTRL
	.comm	_BIT_EN_BCNQ_DL,4,2             ## @BIT_EN_BCNQ_DL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to write data to rsvd page\n"

L_.str.1:                               ## @.str.1
	.asciz	"error beacon valid\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_fw_write_data_rsvd_page    ; -- Begin function rtw_fw_write_data_rsvd_page
	.p2align	2
_rtw_fw_write_data_rsvd_page:           ; @rtw_fw_write_data_rsvd_page
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, x0, #4
	bl	_lockdep_assert_held
	cbz	w22, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _BIT_MASK_BCN_HEAD_1_V1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIT_MASK_BCN_HEAD_1_V1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x25, _REG_FIFOPAGE_CTRL_2@GOTPAGE
Lloh4:
	ldr	x25, [x25, _REG_FIFOPAGE_CTRL_2@GOTPAGEOFF]
	and	w8, w8, w20
	ldr	w1, [x25]
Lloh5:
	adrp	x26, _BIT_BCN_VALID_V1@GOTPAGE
Lloh6:
	ldr	x26, [x26, _BIT_BCN_VALID_V1@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_rtw_write16
Lloh7:
	adrp	x24, _REG_CR@GOTPAGE
Lloh8:
	ldr	x24, [x24, _REG_CR@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x1, x8, #1
	mov	x0, x19
	bl	_rtw_read8
	mov	x20, x0
Lloh9:
	adrp	x8, _BIT_ENSWBCN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BIT_ENSWBCN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w2, w0, w8, asr #8
	ldr	x8, [x24]
	add	x1, x8, #1
	mov	x0, x19
	bl	_rtw_write8
Lloh12:
	adrp	x27, _REG_FWHW_TXQ_CTRL@GOTPAGE
Lloh13:
	ldr	x27, [x27, _REG_FWHW_TXQ_CTRL@GOTPAGEOFF]
	ldr	x8, [x27]
	add	x1, x8, #2
	mov	x0, x19
	bl	_rtw_read8
	mov	x21, x0
Lloh14:
	adrp	x8, _BIT_EN_BCNQ_DL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BIT_EN_BCNQ_DL@GOTPAGEOFF]
Lloh16:
	ldrsh	w8, [x8, #2]
	bic	w2, w0, w8
	ldr	x8, [x27]
	add	x1, x8, #2
	mov	x0, x19
	bl	_rtw_write8
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_rtw_hci_write_data_rsvd_page
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_rtw_err
	b	LBB0_7
LBB0_3:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_4:
	ldr	w1, [x25]
	ldr	w2, [x26]
	mov	x0, x19
	mov	w3, #1
	bl	_check_hw_ready
	cbz	w0, LBB0_6
; %bb.5:
	mov	w22, #0
	b	LBB0_7
LBB0_6:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_rtw_err
Lloh24:
	adrp	x8, _EBUSY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	ldr	w8, [x19]
	ldr	w1, [x25]
	ldr	w9, [x26]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_rtw_write16
	ldr	x8, [x27]
	add	x1, x8, #2
	mov	x0, x19
	mov	x2, x21
	bl	_rtw_write8
	ldr	x8, [x24]
	add	x1, x8, #1
	mov	x0, x19
	mov	x2, x20
	bl	_rtw_write8
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BIT_MASK_BCN_HEAD_1_V1,4,2     ; @BIT_MASK_BCN_HEAD_1_V1
	.comm	_REG_FIFOPAGE_CTRL_2,4,2        ; @REG_FIFOPAGE_CTRL_2
	.comm	_BIT_BCN_VALID_V1,4,2           ; @BIT_BCN_VALID_V1
	.comm	_REG_CR,8,3                     ; @REG_CR
	.comm	_BIT_ENSWBCN,4,2                ; @BIT_ENSWBCN
	.comm	_REG_FWHW_TXQ_CTRL,8,3          ; @REG_FWHW_TXQ_CTRL
	.comm	_BIT_EN_BCNQ_DL,4,2             ; @BIT_EN_BCNQ_DL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to write data to rsvd page\n"

l_.str.1:                               ; @.str.1
	.asciz	"error beacon valid\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
