	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_search
_p2p_search:                            ## @p2p_search
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpq	$0, 40(%rdi)
	je	LBB0_1
## %bb.14:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_p2p_dbg                        ## TAILCALL
LBB0_1:
	movq	_DEV_PW_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	24(%rbx), %rax
	movl	8(%rax), %edi
	callq	*16(%rax)
	cmpq	$0, 32(%rbx)
	movq	(%rbx), %rax
	movq	_P2P_FIND_PROGRESSIVE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	je	LBB0_5
## %bb.2:
	cmpq	%rcx, %rax
	je	LBB0_4
## %bb.3:
	movq	_P2P_FIND_START_WITH_FULL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_4
LBB0_5:
	xorl	%r14d, %r14d
	cmpq	%rcx, %rax
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_p2p_get_next_prog_freq
	movl	%eax, %r14d
	testl	%eax, %eax
	jg	LBB0_10
## %bb.7:
	movq	(%rbx), %rax
LBB0_8:
	movq	_P2P_FIND_START_WITH_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	movl	8(%rbx), %r14d
	testl	%r14d, %r14d
	jle	LBB0_11
LBB0_10:
	movq	_P2P_SCAN_SOCIAL_PLUS_ONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_p2p_dbg
	jmp	LBB0_12
LBB0_11:
	movq	_P2P_SCAN_SOCIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_p2p_dbg
	jmp	LBB0_12
LBB0_4:
	movq	_P2P_SCAN_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_p2p_dbg
	movq	$0, 32(%rbx)
LBB0_12:
	movq	24(%rbx), %rax
	movl	8(%rax), %edi
	movl	20(%rbx), %ecx
	movl	12(%rbx), %r9d
	movl	16(%rbx), %r8d
	movl	%r12d, (%rsp)
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_15
## %bb.13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_p2p_dbg
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_p2p_continue_find              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEV_PW_DEFAULT,4,2             ## @DEV_PW_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Driver is still in Listen state - wait for it to end before continuing"

	.comm	_P2P_FIND_PROGRESSIVE,8,3       ## @P2P_FIND_PROGRESSIVE
	.comm	_P2P_FIND_START_WITH_FULL,8,3   ## @P2P_FIND_START_WITH_FULL
	.comm	_P2P_SCAN_FULL,4,2              ## @P2P_SCAN_FULL
L_.str.1:                               ## @.str.1
	.asciz	"Starting search (pending full scan)"

	.comm	_P2P_SCAN_SOCIAL_PLUS_ONE,4,2   ## @P2P_SCAN_SOCIAL_PLUS_ONE
L_.str.2:                               ## @.str.2
	.asciz	"Starting search (+ freq %u)"

	.comm	_P2P_SCAN_SOCIAL,4,2            ## @P2P_SCAN_SOCIAL
L_.str.3:                               ## @.str.3
	.asciz	"Starting search"

L_.str.4:                               ## @.str.4
	.asciz	"Scan request schedule failed"

	.no_dead_strip	_p2p_search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2p_search
_p2p_search:                            ; @p2p_search
	.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	x19, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	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
	b	_p2p_dbg
LBB0_2:
Lloh2:
	adrp	x8, _DEV_PW_DEFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DEV_PW_DEFAULT@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	ldr	x8, [x19, #24]
	ldr	x9, [x8, #16]
	ldr	w0, [x8, #8]
	blr	x9
	ldr	x10, [x19, #32]
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _P2P_FIND_PROGRESSIVE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _P2P_FIND_PROGRESSIVE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x22, _P2P_FIND_START_WITH_FULL@GOTPAGE
Lloh9:
	ldr	x22, [x22, _P2P_FIND_START_WITH_FULL@GOTPAGEOFF]
	cbz	x10, LBB0_5
; %bb.3:
	ldr	x10, [x22]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _P2P_SCAN_FULL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _P2P_SCAN_FULL@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_p2p_dbg
	mov	w21, #0
	str	xzr, [x19, #32]
	b	LBB0_14
LBB0_5:
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_p2p_get_next_prog_freq
	mov	x21, x0
	cmp	w0, #0
	b.gt	LBB0_11
; %bb.7:
	ldr	x8, [x19]
	b	LBB0_9
LBB0_8:
	mov	w21, #0
LBB0_9:
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
	ldr	w21, [x19, #8]
	cmp	w21, #1
	b.lt	LBB0_12
LBB0_11:
Lloh15:
	adrp	x8, _P2P_SCAN_SOCIAL_PLUS_ONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _P2P_SCAN_SOCIAL_PLUS_ONE@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	str	x21, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh20:
	adrp	x8, _P2P_SCAN_SOCIAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _P2P_SCAN_SOCIAL@GOTPAGEOFF]
Lloh22:
	ldr	w22, [x8]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_p2p_dbg
LBB0_14:
	ldr	x8, [x19, #24]
	ldr	x9, [x8]
	ldr	w0, [x8, #8]
	ldp	w4, w3, [x19, #16]
	ldr	w5, [x19, #12]
	mov	x1, x22
	mov	x2, x21
	mov	x6, x20
	blr	x9
	tbnz	w0, #31, LBB0_16
; %bb.15:
	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_16:
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_p2p_dbg
	mov	x0, x19
	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
	b	_p2p_continue_find
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_PW_DEFAULT,4,2             ; @DEV_PW_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Driver is still in Listen state - wait for it to end before continuing"

	.comm	_P2P_FIND_PROGRESSIVE,8,3       ; @P2P_FIND_PROGRESSIVE
	.comm	_P2P_FIND_START_WITH_FULL,8,3   ; @P2P_FIND_START_WITH_FULL
	.comm	_P2P_SCAN_FULL,4,2              ; @P2P_SCAN_FULL
l_.str.1:                               ; @.str.1
	.asciz	"Starting search (pending full scan)"

	.comm	_P2P_SCAN_SOCIAL_PLUS_ONE,4,2   ; @P2P_SCAN_SOCIAL_PLUS_ONE
l_.str.2:                               ; @.str.2
	.asciz	"Starting search (+ freq %u)"

	.comm	_P2P_SCAN_SOCIAL,4,2            ; @P2P_SCAN_SOCIAL
l_.str.3:                               ; @.str.3
	.asciz	"Starting search"

l_.str.4:                               ; @.str.4
	.asciz	"Scan request schedule failed"

	.no_dead_strip	_p2p_search
.subsections_via_symbols
