	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_presence_req          ## -- Begin function wpas_p2p_presence_req
	.p2align	4, 0x90
_wpas_p2p_presence_req:                 ## @wpas_p2p_presence_req
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%ecx, %r10d
	movq	24(%rdi), %rcx
	movl	$-1, %eax
	cmpq	$0, 8(%rcx)
	je	LBB0_1
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.2:
	movl	%edx, %r9d
	movq	(%rbx), %rcx
	movq	_WPA_ASSOCIATED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_7
## %bb.3:
	movq	32(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.4:
	movq	(%rcx), %rcx
	movq	_WPAS_MODE_INFRA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.5:
	movl	%r8d, %r11d
	movl	%esi, %r8d
	movl	20(%rbx), %esi
	movl	12(%rbx), %ecx
	movl	16(%rbx), %edx
	pushq	%r11
	pushq	%r10
	callq	_p2p_presence_req
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	$1, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_ASSOCIATED,8,3             ## @WPA_ASSOCIATED
	.comm	_WPAS_MODE_INFRA,8,3            ## @WPAS_MODE_INFRA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_p2p_presence_req          ; -- Begin function wpas_p2p_presence_req
	.p2align	2
_wpas_p2p_presence_req:                 ; @wpas_p2p_presence_req
	.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
	ldr	x8, [x0, #24]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_3
LBB0_1:
	mov	w0, #-1
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
	ldr	x0, [x8]
	cbz	x0, LBB0_1
; %bb.4:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _WPA_ASSOCIATED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_ASSOCIATED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_1
; %bb.5:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_1
; %bb.6:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _WPAS_MODE_INFRA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WPAS_MODE_INFRA@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.7:
	mov	x7, x4
	mov	x6, x3
	mov	x5, x2
	mov	x4, x1
	ldp	w2, w1, [x19, #16]
	ldr	w3, [x19, #12]
	bl	_p2p_presence_req
	cbnz	w0, LBB0_2
; %bb.8:
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_ASSOCIATED,8,3             ; @WPA_ASSOCIATED
	.comm	_WPAS_MODE_INFRA,8,3            ; @WPAS_MODE_INFRA
.subsections_via_symbols
