	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cfg80211_init_p2p_client
_mwifiex_cfg80211_init_p2p_client:      ## @mwifiex_cfg80211_init_p2p_client
	.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
	movq	%rdi, %rbx
	callq	_mwifiex_cfg80211_deinit_p2p
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_P2P_MODE_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_HostCmd_CMD_P2P_MODE_CFG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_HostCmd_ACT_GEN_SET@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	xorl	%r15d, %r15d
	leaq	-44(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r9d
	callq	_mwifiex_send_cmd
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_P2P_MODE_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	-44(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r9d
	callq	_mwifiex_send_cmd
	negq	%rax
	sbbl	%r15d, %r15d
	movl	%r15d, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P2P_MODE_DEVICE,4,2            ## @P2P_MODE_DEVICE
	.comm	_HostCmd_CMD_P2P_MODE_CFG,4,2   ## @HostCmd_CMD_P2P_MODE_CFG
	.comm	_HostCmd_ACT_GEN_SET,4,2        ## @HostCmd_ACT_GEN_SET
	.comm	_P2P_MODE_CLIENT,4,2            ## @P2P_MODE_CLIENT
	.no_dead_strip	_mwifiex_cfg80211_init_p2p_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_cfg80211_init_p2p_client
_mwifiex_cfg80211_init_p2p_client:      ; @mwifiex_cfg80211_init_p2p_client
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_mwifiex_cfg80211_deinit_p2p
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _P2P_MODE_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P2P_MODE_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh3:
	adrp	x20, _HostCmd_CMD_P2P_MODE_CFG@GOTPAGE
Lloh4:
	ldr	x20, [x20, _HostCmd_CMD_P2P_MODE_CFG@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x21, _HostCmd_ACT_GEN_SET@GOTPAGE
Lloh6:
	ldr	x21, [x21, _HostCmd_ACT_GEN_SET@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x4, sp, #12
	mov	x0, x19
	mov	w3, #0
	mov	w5, #1
	bl	_mwifiex_send_cmd
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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
	add	sp, sp, #64
	ret
LBB0_4:
Lloh7:
	adrp	x8, _P2P_MODE_CLIENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _P2P_MODE_CLIENT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w1, [x20]
	ldr	w2, [x21]
	add	x4, sp, #12
	mov	x0, x19
	mov	w3, #0
	mov	w5, #1
	bl	_mwifiex_send_cmd
	cmp	x0, #0
	csetm	w0, ne
	b	LBB0_3
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_P2P_MODE_DEVICE,4,2            ; @P2P_MODE_DEVICE
	.comm	_HostCmd_CMD_P2P_MODE_CFG,4,2   ; @HostCmd_CMD_P2P_MODE_CFG
	.comm	_HostCmd_ACT_GEN_SET,4,2        ; @HostCmd_ACT_GEN_SET
	.comm	_P2P_MODE_CLIENT,4,2            ; @P2P_MODE_CLIENT
	.no_dead_strip	_mwifiex_cfg80211_init_p2p_client
.subsections_via_symbols
