	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_set_state                  ## -- Begin function p2p_set_state
	.p2align	4, 0x90
_p2p_set_state:                         ## @p2p_set_state
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_p2p_state_txt
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_p2p_state_txt
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_p2p_dbg
	movl	%r14d, (%rbx)
	movq	_P2P_IDLE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	leaq	8(%rbx), %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_p2p_dbg
	movq	24(%rbx), %rax
	movups	8(%rbx), %xmm0
	movups	%xmm0, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"State %s -> %s"

	.comm	_P2P_IDLE,4,2                   ## @P2P_IDLE
L_.str.1:                               ## @.str.1
	.asciz	"Apply change in listen channel"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_set_state                  ; -- Begin function p2p_set_state
	.p2align	2
_p2p_set_state:                         ; @p2p_set_state
	.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, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_p2p_state_txt
	mov	x21, x0
	mov	x0, x20
	bl	_p2p_state_txt
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_p2p_dbg
	str	w20, [x19]
Lloh2:
	adrp	x8, _P2P_IDLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _P2P_IDLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x19
	ldr	x8, [x20, #8]!
	cbz	x8, LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_p2p_dbg
	ldr	x8, [x19, #24]
	ldur	q0, [x19, #8]
	str	q0, [x8]
	stp	xzr, xzr, [x20]
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"State %s -> %s"

	.comm	_P2P_IDLE,4,2                   ; @P2P_IDLE
l_.str.1:                               ; @.str.1
	.asciz	"Apply change in listen channel"

.subsections_via_symbols
