	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_scan_ie                    ## -- Begin function p2p_scan_ie
	.p2align	4, 0x90
_p2p_scan_ie:                           ## @p2p_scan_ie
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	48(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_VENDOR_ELEM_PROBE_REQ_P2P@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_wpabuf_put_buf
LBB0_3:
	movq	%r14, %rdi
	callq	_p2p_buf_add_ie_hdr
	movq	%rax, %r15
	movq	_P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	(%rbx), %esi
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.4:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.5:
	movq	_P2P_DEV_CAPAB_SERVICE_DISCOVERY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
LBB0_6:
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_p2p_buf_add_capability
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_p2p_buf_add_device_id
LBB0_8:
	movq	40(%rbx), %rax
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.9:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:
	movl	16(%rax), %esi
	movq	%r14, %rdi
	callq	_p2p_buf_add_listen_channel
LBB0_11:
	movq	24(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.12:
	movl	32(%rbx), %esi
	movq	%r14, %rdi
	callq	_p2p_buf_add_ext_listen_timing
LBB0_13:
	movq	_BAND_60_GHZ@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_p2p_buf_add_device_info
LBB0_15:
	cmpq	$0, 16(%rbx)
	je	LBB0_18
## %bb.16:
	cmpq	$0, 8(%rbx)
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_p2p_buf_add_service_hash
LBB0_18:
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_p2p_buf_update_ie_hdr          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VENDOR_ELEM_PROBE_REQ_P2P,8,3  ## @VENDOR_ELEM_PROBE_REQ_P2P
	.comm	_P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY,4,2 ## @P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY
	.comm	_P2P_DEV_CAPAB_SERVICE_DISCOVERY,4,2 ## @P2P_DEV_CAPAB_SERVICE_DISCOVERY
	.comm	_BAND_60_GHZ,4,2                ## @BAND_60_GHZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_scan_ie                    ; -- Begin function p2p_scan_ie
	.p2align	2
_p2p_scan_ie:                           ; @p2p_scan_ie
	.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	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _VENDOR_ELEM_PROBE_REQ_P2P@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VENDOR_ELEM_PROBE_REQ_P2P@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x1, [x8, x9, lsl #3]
	cbz	x1, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_wpabuf_put_buf
LBB0_3:
	mov	x0, x19
	bl	_p2p_buf_add_ie_hdr
	mov	x21, x0
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bic	w1, w8, w9
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _P2P_DEV_CAPAB_SERVICE_DISCOVERY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _P2P_DEV_CAPAB_SERVICE_DISCOVERY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w1, w8, w1
LBB0_6:
	mov	x0, x19
	mov	w2, #0
	bl	_p2p_buf_add_capability
	cbz	x23, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x23
	bl	_p2p_buf_add_device_id
LBB0_8:
	ldr	x8, [x20, #40]
	ldr	x2, [x8, #8]
	cbz	x2, LBB0_11
; %bb.9:
	ldr	x3, [x8]
	cbz	x3, LBB0_11
; %bb.10:
	ldr	w1, [x8, #16]
	mov	x0, x19
	bl	_p2p_buf_add_listen_channel
LBB0_11:
	ldr	x2, [x20, #24]
	cbz	x2, LBB0_13
; %bb.12:
	ldr	w1, [x20, #32]
	mov	x0, x19
	bl	_p2p_buf_add_ext_listen_timing
LBB0_13:
Lloh9:
	adrp	x8, _BAND_60_GHZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BAND_60_GHZ@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_15
; %bb.14:
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_p2p_buf_add_device_info
LBB0_15:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_18
; %bb.16:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_18
; %bb.17:
	mov	x0, x19
	mov	x1, x20
	bl	_p2p_buf_add_service_hash
LBB0_18:
	mov	x0, x19
	mov	x1, x21
	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	_p2p_buf_update_ie_hdr
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VENDOR_ELEM_PROBE_REQ_P2P,8,3  ; @VENDOR_ELEM_PROBE_REQ_P2P
	.comm	_P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY,4,2 ; @P2P_DEV_CAPAB_CLIENT_DISCOVERABILITY
	.comm	_P2P_DEV_CAPAB_SERVICE_DISCOVERY,4,2 ; @P2P_DEV_CAPAB_SERVICE_DISCOVERY
	.comm	_BAND_60_GHZ,4,2                ; @BAND_60_GHZ
.subsections_via_symbols
