	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_match_dev_type_member
_p2p_match_dev_type_member:             ## @p2p_match_dev_type_member
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.2:
	movq	%rsi, %r12
	callq	_wpabuf_head
	movq	%rax, %r15
	movq	(%rbx), %rdi
	callq	_wpabuf_len
	cltq
	leaq	(%r15,%rax,4), %r13
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	4(%rax,%rax), %eax
	cltq
	leaq	(%r15,%rax,4), %r15
	movq	%r13, %rax
	subq	%r15, %rax
	sarq	$2, %rax
	movq	_WPS_DEV_TYPE_LEN@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rcx
	incq	%rcx
	cmpq	%rcx, %rax
	jl	LBB0_5
## %bb.3:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_wps_parse_msg
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	movl	$1, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-56(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.7:
	movl	-48(%rbp), %esi
	movq	%r15, %rdi
	callq	_dev_type_list_match
	testq	%rax, %rax
	jne	LBB0_4
## %bb.10:
	movslq	(%rbx), %rax
	leaq	(%r15,%rax,4), %r12
	addq	$4, %r12
	movslq	(%r15,%rax,4), %rbx
	subq	%r12, %r13
	sarq	$2, %r13
	imulq	%rbx, %rax
	cmpq	%rax, %r13
	jl	LBB0_5
## %bb.11:
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.12:
	incl	%ebx
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %esi
	movq	-56(%rbp), %rdx
	movq	%r12, %rdi
	callq	_dev_type_list_match
	testq	%rax, %rax
	jne	LBB0_4
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_WPS_DEV_TYPE_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r12,%rax,4), %r12
	decl	%ebx
	cmpl	$1, %ebx
	jg	LBB0_13
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_WPS_DEV_TYPE_LEN,4,2           ## @WPS_DEV_TYPE_LEN
	.no_dead_strip	_p2p_match_dev_type_member
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2p_match_dev_type_member
_p2p_match_dev_type_member:             ; @p2p_match_dev_type_member
	.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	x20, x0
	mov	w0, #0
	cbz	x1, LBB0_6
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x19, x1
	mov	x0, x8
	bl	_wpabuf_head
	mov	x21, x0
	ldr	x0, [x20]
	bl	_wpabuf_len
	add	x22, x21, w0, sxtw #2
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	add	w8, w8, #4
	add	x20, x21, w8, sxtw #2
	sub	x8, x22, x20
Lloh3:
	adrp	x21, _WPS_DEV_TYPE_LEN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _WPS_DEV_TYPE_LEN@GOTPAGEOFF]
	ldrsw	x9, [x21]
	add	x9, x9, #1
	cmp	x9, x8, asr #2
	b.le	LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	mov	x1, sp
	mov	x0, x19
	bl	_wps_parse_msg
	cbz	x0, LBB0_7
LBB0_5:
	mov	w0, #1
LBB0_6:
	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_7:
	ldr	x2, [sp]
	cbz	x2, LBB0_5
; %bb.8:
	ldr	w1, [sp, #8]
	mov	x0, x20
	bl	_dev_type_list_match
	cbnz	x0, LBB0_5
; %bb.9:
	ldrsw	x9, [x21]
	add	x19, x20, x9, lsl #2
	ldrsw	x8, [x19], #4
	sub	x10, x22, x19
	mul	x9, x8, x9
	cmp	x9, x10, asr #2
	ccmp	w8, #1, #8, le
	b.lt	LBB0_3
; %bb.10:
	add	w20, w8, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [sp, #8]
	ldr	x2, [sp]
	mov	x0, x19
	bl	_dev_type_list_match
	cbnz	x0, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldrsw	x8, [x21]
	add	x19, x19, x8, lsl #2
	sub	w20, w20, #1
	cmp	w20, #1
	b.gt	LBB0_11
	b	LBB0_6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_WPS_DEV_TYPE_LEN,4,2           ; @WPS_DEV_TYPE_LEN
	.no_dead_strip	_p2p_match_dev_type_member
.subsections_via_symbols
