	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_get_p2p_role
_wpas_get_p2p_role:                     ## @wpas_get_p2p_role
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rcx
	movq	_WPAS_P2P_ROLE_DEVICE@GOTPCREL(%rip), %rax
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.1:
	movq	(%rdi), %rdx
	movq	_WPA_COMPLETED@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_8
## %bb.2:
	movl	(%rcx), %edx
	leal	-128(%rdx), %esi
	cmpl	$2, %esi
	jae	LBB0_4
## %bb.3:
	movq	_WPAS_P2P_ROLE_GO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	cmpl	$130, %edx
	jne	LBB0_8
## %bb.5:
	cmpl	$0, 4(%rcx)
	jne	LBB0_6
## %bb.7:
	movq	_WPAS_P2P_ROLE_DEVICE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_WPAS_P2P_ROLE_CLIENT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPAS_P2P_ROLE_DEVICE,4,2       ## @WPAS_P2P_ROLE_DEVICE
	.comm	_WPA_COMPLETED,8,3              ## @WPA_COMPLETED
	.comm	_WPAS_P2P_ROLE_GO,4,2           ## @WPAS_P2P_ROLE_GO
	.comm	_WPAS_P2P_ROLE_CLIENT,4,2       ## @WPAS_P2P_ROLE_CLIENT
	.no_dead_strip	_wpas_get_p2p_role
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_get_p2p_role
_wpas_get_p2p_role:                     ; @wpas_get_p2p_role
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_6
; %bb.1:
	ldr	x10, [x0]
Lloh0:
	adrp	x8, _WPA_COMPLETED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WPA_COMPLETED@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x8]
Lloh3:
	adrp	x8, _WPAS_P2P_ROLE_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WPAS_P2P_ROLE_DEVICE@GOTPAGEOFF]
	cmp	x10, x11
	b.ne	LBB0_7
; %bb.2:
	ldr	w10, [x9]
	sub	w11, w10, #128
	cmp	w11, #2
	b.hs	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _WPAS_P2P_ROLE_GO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WPAS_P2P_ROLE_GO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ret
LBB0_4:
	cmp	w10, #130
	b.ne	LBB0_6
; %bb.5:
	ldr	w9, [x9, #4]
Lloh8:
	adrp	x10, _WPAS_P2P_ROLE_CLIENT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _WPAS_P2P_ROLE_CLIENT@GOTPAGEOFF]
	cmp	w9, #0
	csel	x8, x8, x10, eq
	ldr	w0, [x8]
	ret
LBB0_6:
Lloh10:
	adrp	x8, _WPAS_P2P_ROLE_DEVICE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WPAS_P2P_ROLE_DEVICE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WPAS_P2P_ROLE_DEVICE,4,2       ; @WPAS_P2P_ROLE_DEVICE
	.comm	_WPA_COMPLETED,8,3              ; @WPA_COMPLETED
	.comm	_WPAS_P2P_ROLE_GO,4,2           ; @WPAS_P2P_ROLE_GO
	.comm	_WPAS_P2P_ROLE_CLIENT,4,2       ; @WPAS_P2P_ROLE_CLIENT
	.no_dead_strip	_wpas_get_p2p_role
.subsections_via_symbols
