	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_device_free
_p2p_device_free:                       ## @p2p_device_free
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	cmpq	%rsi, 32(%rdi)
	je	LBB0_1
## %bb.2:
	cmpq	%r15, 24(%r14)
	je	LBB0_3
LBB0_4:
	cmpq	%r15, 16(%r14)
	je	LBB0_5
LBB0_6:
	cmpq	%r15, 8(%r14)
	je	LBB0_7
LBB0_8:
	movq	_P2P_DEV_REPORTED_ONCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_10
## %bb.9:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	40(%r15), %esi
	callq	*8(%rax)
LBB0_10:
	movq	_P2P_MAX_WPS_VENDOR_EXT@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_wpabuf_free
	movq	32(%r15), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_12
LBB0_13:
	movq	24(%r15), %rdi
	callq	_wpabuf_free
	movq	16(%r15), %rdi
	callq	_wpabuf_free
	movq	48(%r15), %rdi
	callq	_wpabuf_free
	movq	8(%r15), %rdi
	callq	_wpabuf_free
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_os_free                        ## TAILCALL
LBB0_1:
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_p2p_go_neg_failed
	cmpq	%r15, 24(%r14)
	jne	LBB0_4
LBB0_3:
	movq	$0, 24(%r14)
	cmpq	%r15, 16(%r14)
	jne	LBB0_6
LBB0_5:
	movq	$0, 16(%r14)
	cmpq	%r15, 8(%r14)
	jne	LBB0_8
LBB0_7:
	movq	$0, 8(%r14)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_P2P_DEV_REPORTED_ONCE,4,2      ## @P2P_DEV_REPORTED_ONCE
	.comm	_P2P_MAX_WPS_VENDOR_EXT,4,2     ## @P2P_MAX_WPS_VENDOR_EXT
	.no_dead_strip	_p2p_device_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2p_device_free
_p2p_device_free:                       ; @p2p_device_free
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	ldr	x8, [x0, #32]
	cmp	x8, x1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #-1
	bl	_p2p_go_neg_failed
LBB0_2:
	ldr	x8, [x20, #24]
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.3:
	str	xzr, [x20, #24]
LBB0_4:
	ldr	x8, [x20, #16]
	cmp	x8, x19
	b.ne	LBB0_6
; %bb.5:
	str	xzr, [x20, #16]
LBB0_6:
	ldr	x8, [x20, #8]
	cmp	x8, x19
	b.ne	LBB0_8
; %bb.7:
	str	xzr, [x20, #8]
LBB0_8:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _P2P_DEV_REPORTED_ONCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _P2P_DEV_REPORTED_ONCE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	ldr	w0, [x8]
	ldr	w1, [x19, #40]
	blr	x9
LBB0_10:
Lloh3:
	adrp	x20, _P2P_MAX_WPS_VENDOR_EXT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _P2P_MAX_WPS_VENDOR_EXT@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x21, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	lsl	x22, x21, #3
	ldr	x0, [x8, x22]
	bl	_wpabuf_free
	ldr	x8, [x19, #32]
	str	xzr, [x8, x22]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_12
LBB0_13:
	ldr	x0, [x19, #24]
	bl	_wpabuf_free
	ldr	x0, [x19, #16]
	bl	_wpabuf_free
	ldr	x0, [x19, #48]
	bl	_wpabuf_free
	ldr	x0, [x19, #8]
	bl	_wpabuf_free
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_os_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_P2P_DEV_REPORTED_ONCE,4,2      ; @P2P_DEV_REPORTED_ONCE
	.comm	_P2P_MAX_WPS_VENDOR_EXT,4,2     ; @P2P_MAX_WPS_VENDOR_EXT
	.no_dead_strip	_p2p_device_free
.subsections_via_symbols
