	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92c_set_p2p_ps_offload_cmd  ## -- Begin function rtl92c_set_p2p_ps_offload_cmd
	.p2align	4, 0x90
_rtl92c_set_p2p_ps_offload_cmd:         ## @rtl92c_set_p2p_ps_offload_cmd
	.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	%esi, %ebx
	movq	%rdi, %r13
	callq	_rtl_priv
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_psc
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r14
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_12
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_11:
	movq	_COMP_FW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r15, %rdi
	callq	_RT_TRACE
	movl	$0, 12(%r14)
	movl	$130, 4(%r12)
	jmp	LBB0_12
LBB0_10:
	movq	_COMP_FW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	callq	_RT_TRACE
	movl	$1, 12(%r14)
	jmp	LBB0_12
LBB0_3:
	movq	_COMP_FW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	callq	_RT_TRACE
	movl	12(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_5
## %bb.4:
	movl	$1, (%r14)
	movq	%r13, %rdi
	callq	_rtl92c_set_p2p_ctw_period_cmd
LBB0_5:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_set_noa_data
	cmpl	$1, (%r12)
	je	LBB0_7
## %bb.6:
	cmpl	$0, 8(%r12)
	jle	LBB0_12
LBB0_7:
	movq	_REG_DUAL_TSF_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$4, %edi
	callq	_BIT
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_rtl_write_byte
	movl	$1, 4(%r14)
	movq	_P2P_ROLE_GO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	cmpl	(%r15), %ecx
	jne	LBB0_9
## %bb.8:
	movl	$0, 16(%r14)
	movl	$1, %eax
LBB0_9:
	movl	%eax, 8(%r14)
	movl	$0, 12(%r14)
	jmp	LBB0_12
LBB0_2:
	movq	_COMP_FW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_RT_TRACE
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
LBB0_12:
	movq	_H2C_P2P_PS_OFFLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl92c_fill_h2c_cmd            ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_3
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_COMP_FW,4,2                    ## @COMP_FW
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P_PS_DISABLE\n"

L_.str.1:                               ## @.str.1
	.asciz	"P2P_PS_ENABLE\n"

	.comm	_REG_DUAL_TSF_RST,4,2           ## @REG_DUAL_TSF_RST
	.comm	_P2P_ROLE_GO,4,2                ## @P2P_ROLE_GO
L_.str.2:                               ## @.str.2
	.asciz	"P2P_PS_SCAN\n"

L_.str.3:                               ## @.str.3
	.asciz	"P2P_PS_SCAN_DONE\n"

	.comm	_H2C_P2P_PS_OFFLOAD,4,2         ## @H2C_P2P_PS_OFFLOAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92c_set_p2p_ps_offload_cmd  ; -- Begin function rtl92c_set_p2p_ps_offload_cmd
	.p2align	2
_rtl92c_set_p2p_ps_offload_cmd:         ; @rtl92c_set_p2p_ps_offload_cmd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x1
	mov	x19, x0
	bl	_rtl_priv
	mov	x21, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_psc
	mov	x22, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x20, x0
	sub	w8, w23, #128
	cmp	w8, #3
	b.hi	LBB0_13
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _COMP_FW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _COMP_FW@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x3, l_.str.3@PAGE
Lloh9:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_RT_TRACE
	str	wzr, [x20, #12]
	mov	w8, #130
	str	w8, [x22, #4]
	b	LBB0_13
LBB0_3:
Lloh10:
	adrp	x8, _COMP_FW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _COMP_FW@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x3, l_.str.2@PAGE
Lloh17:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_RT_TRACE
	mov	w8, #1
	str	w8, [x20, #12]
	b	LBB0_13
LBB0_4:
Lloh18:
	adrp	x8, _COMP_FW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _COMP_FW@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x3, l_.str.1@PAGE
Lloh25:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_RT_TRACE
	ldr	w1, [x22, #12]
	cmp	w1, #1
	b.lt	LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x19
	bl	_rtl92c_set_p2p_ctw_period_cmd
LBB0_6:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_set_noa_data
	ldr	w8, [x22]
	cmp	w8, #1
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x22, #8]
	cmp	w8, #1
	b.lt	LBB0_13
LBB0_8:
Lloh26:
	adrp	x8, _REG_DUAL_TSF_RST@GOTPAGE
Lloh27:
	ldr	x8, [x8, _REG_DUAL_TSF_RST@GOTPAGEOFF]
Lloh28:
	ldr	w22, [x8]
	mov	w0, #4
	bl	_BIT
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_rtl_write_byte
	mov	w8, #1
	str	w8, [x20, #4]
Lloh29:
	adrp	x8, _P2P_ROLE_GO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _P2P_ROLE_GO@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.9:
	str	wzr, [x20, #16]
	mov	w8, #1
	b	LBB0_12
LBB0_10:
Lloh32:
	adrp	x8, _COMP_FW@GOTPAGE
Lloh33:
	ldr	x8, [x8, _COMP_FW@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x3, l_.str@PAGE
Lloh39:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	bl	_RT_TRACE
	mov	x0, x20
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	b	LBB0_13
LBB0_11:
	mov	w8, #0
LBB0_12:
	stp	w8, wzr, [x20, #8]
LBB0_13:
Lloh40:
	adrp	x8, _H2C_P2P_PS_OFFLOAD@GOTPAGE
Lloh41:
	ldr	x8, [x8, _H2C_P2P_PS_OFFLOAD@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	x3, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rtl92c_fill_h2c_cmd
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_COMP_FW,4,2                    ; @COMP_FW
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P_PS_DISABLE\n"

l_.str.1:                               ; @.str.1
	.asciz	"P2P_PS_ENABLE\n"

	.comm	_REG_DUAL_TSF_RST,4,2           ; @REG_DUAL_TSF_RST
	.comm	_P2P_ROLE_GO,4,2                ; @P2P_ROLE_GO
l_.str.2:                               ; @.str.2
	.asciz	"P2P_PS_SCAN\n"

l_.str.3:                               ; @.str.3
	.asciz	"P2P_PS_SCAN_DONE\n"

	.comm	_H2C_P2P_PS_OFFLOAD,4,2         ; @H2C_P2P_PS_OFFLOAD
.subsections_via_symbols
