	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmp_establish_pp_connection    ## -- Begin function cmp_establish_pp_connection
	.p2align	4, 0x90
_cmp_establish_pp_connection:           ## @cmp_establish_pp_connection
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CMP_OUTPUT_PLUG_CONTROL_REG_0@GOTPCREL(%rip), %rax
	shll	$2, %esi
	movslq	%esi, %r15
	addq	(%rax), %r15
	leaq	-64(%rbp), %rdx
	movq	%r15, %rsi
	callq	_cmp_read
	testl	%eax, %eax
	js	LBB0_15
## %bb.1:
	movl	$6, %r14d
	movq	-64(%rbp), %rdi
	leaq	-64(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	callq	_get_opcr_online
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r13
	movq	%r13, %rdi
	callq	_get_opcr_p2p_connections
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi
	callq	_get_opcr_channel
	movl	(%rbx), %edi
	cmpl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_set_opcr_channel
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_set_opcr_data_rate
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_set_opcr_overhead_id
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi
	callq	_get_opcr_p2p_connections
	leaq	1(%rax), %rsi
	movq	%r12, %rdi
	callq	_set_opcr_p2p_connections
	movq	-64(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	%r13, -64(%rbp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_cmp_lock
	testl	%eax, %eax
	js	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi
	cmpq	%rdi, %r13
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%r14d
	jne	LBB0_2
	jmp	LBB0_14
LBB0_10:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_13
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
LBB0_13:
	callq	_dev_err
LBB0_14:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CMP_OUTPUT_PLUG_CONTROL_REG_0,8,3 ## @CMP_OUTPUT_PLUG_CONTROL_REG_0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CMP: output offline\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.1:                               ## @.str.1
	.asciz	"CMP: cannot change channel\n"

L_.str.2:                               ## @.str.2
	.asciz	"CMP: overlaying connection\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmp_establish_pp_connection    ; -- Begin function cmp_establish_pp_connection
	.p2align	2
_cmp_establish_pp_connection:           ; @cmp_establish_pp_connection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _CMP_OUTPUT_PLUG_CONTROL_REG_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMP_OUTPUT_PLUG_CONTROL_REG_0@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	lsl	w9, w1, #2
	add	x21, x8, w9, sxtw
	add	x2, sp, #8
	mov	x1, x21
	bl	_cmp_read
	tbnz	w0, #31, LBB0_15
; %bb.1:
	mov	w24, #6
	ldr	x0, [sp, #8]
Lloh6:
	adrp	x22, l_.str.2@PAGE
Lloh7:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_get_opcr_online
	cbz	w0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x23, [sp, #8]
	mov	x0, x23
	bl	_get_opcr_p2p_connections
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #8]
	bl	_get_opcr_channel
	mov	x8, x0
	ldr	w0, [x20]
	cmp	w8, w19
	b.ne	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, x22
	bl	_dev_info
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #8
	mov	x1, x19
	bl	_set_opcr_channel
	add	x0, sp, #8
	mov	w1, #2
	bl	_set_opcr_data_rate
	add	x0, sp, #8
	mov	w1, #0
	bl	_set_opcr_overhead_id
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #8]
	bl	_get_opcr_p2p_connections
	add	x1, x0, #1
	add	x0, sp, #8
	bl	_set_opcr_p2p_connections
	ldr	x8, [sp, #8]
	stp	x23, x8, [sp, #8]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_cmp_lock
	tbnz	w0, #31, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #8]
	cmp	x23, x0
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w24, w24, #1
	b.ne	LBB0_2
	b	LBB0_14
LBB0_10:
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_11:
	mov	w0, #0
	b	LBB0_15
LBB0_12:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	bl	_dev_err
LBB0_14:
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CMP_OUTPUT_PLUG_CONTROL_REG_0,8,3 ; @CMP_OUTPUT_PLUG_CONTROL_REG_0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CMP: output offline\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.1:                               ; @.str.1
	.asciz	"CMP: cannot change channel\n"

l_.str.2:                               ; @.str.2
	.asciz	"CMP: overlaying connection\n"

.subsections_via_symbols
