	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_qos_and_open_shortcut
_check_qos_and_open_shortcut:           ## @check_qos_and_open_shortcut
	.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
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	8(%rdi), %ebx
	movl	%ebx, -44(%rbp)
	movl	%ebx, %edi
	callq	_atm_mpoa_search_qos
	movq	%rax, %r15
	movq	8(%r14), %rax
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r12
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movl	(%rax), %ecx
	movl	(%r13), %edx
	andl	%ecx, %edx
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movl	(%r15), %esi
	jmp	LBB0_5
LBB0_4:
	movq	_ATM_UBR@GOTPCREL(%rip), %rdi
	movq	_ATM_CBR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdi), %esi
LBB0_5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testl	%esi, %edx
	je	LBB0_9
## %bb.6:
	movq	_ATM_UBR@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_8
## %bb.7:
	cmpq	$0, 8(%rax)
	jle	LBB0_9
LBB0_8:
	movq	%rax, (%rdi)
LBB0_9:
	cmpq	$0, (%rdi)
	je	LBB0_10
## %bb.16:
	movq	(%r14), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	leaq	-44(%rbp), %rdx
	callq	_dprintk
	movq	8(%r14), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	8(%r14), %rax
	movq	%r12, %rdi
	callq	*(%rax)
LBB0_11:
	movq	_OPEN_INGRESS_SVC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	testq	%r15, %r15
	je	LBB0_14
## %bb.12:
	movl	(%r15), %eax
	cmpl	(%r13), %eax
	jne	LBB0_14
## %bb.13:
	movl	%eax, (%r13)
	movq	(%r14), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_printk
	jmp	LBB0_15
LBB0_14:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_15:
	movq	%r13, %rdi
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msg_to_mpoad                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATM_UBR,4,2                    ## @ATM_UBR
	.comm	_ATM_CBR,4,2                    ## @ATM_CBR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mpoa: (%s) using egress SVC to reach %pI4\n"

	.comm	_OPEN_INGRESS_SVC,4,2           ## @OPEN_INGRESS_SVC
L_.str.1:                               ## @.str.1
	.asciz	"mpoa: (%s) trying to get a CBR shortcut\n"

	.no_dead_strip	_check_qos_and_open_shortcut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_qos_and_open_shortcut
_check_qos_and_open_shortcut:           ; @check_qos_and_open_shortcut
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w22, [x0, #8]
	str	w22, [sp, #12]
	mov	x0, x22
	bl	_atm_mpoa_search_qos
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	mov	x0, x22
	mov	x1, x19
	blr	x8
	cbz	x0, LBB0_11
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.2:
	ldr	w9, [x8]
	ldr	w10, [x20]
	and	w10, w10, w9
	cbz	x21, LBB0_4
; %bb.3:
	ldr	w11, [x21]
	tst	w10, w11
	b.ne	LBB0_5
	b	LBB0_8
LBB0_4:
Lloh0:
	adrp	x11, _ATM_UBR@GOTPAGE
Lloh1:
	ldr	x11, [x11, _ATM_UBR@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
Lloh3:
	adrp	x12, _ATM_CBR@GOTPAGE
Lloh4:
	ldr	x12, [x12, _ATM_CBR@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x12]
	orr	w11, w12, w11
	tst	w10, w11
	b.eq	LBB0_8
LBB0_5:
Lloh6:
	adrp	x10, _ATM_UBR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ATM_UBR@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_7
; %bb.6:
	ldr	x9, [x8, #8]
	cmp	x9, #1
	b.lt	LBB0_8
LBB0_7:
	str	x8, [x23]
LBB0_8:
	ldr	x8, [x23]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_dprintk
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x22
	blr	x8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x22
	blr	x8
LBB0_11:
Lloh11:
	adrp	x8, _OPEN_INGRESS_SVC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OPEN_INGRESS_SVC@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	cbz	x21, LBB0_14
; %bb.12:
	ldr	w8, [x21]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.13:
	str	w8, [x20]
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
	b	LBB0_15
LBB0_14:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_msg_to_mpoad
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ATM_UBR,4,2                    ; @ATM_UBR
	.comm	_ATM_CBR,4,2                    ; @ATM_CBR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mpoa: (%s) using egress SVC to reach %pI4\n"

	.comm	_OPEN_INGRESS_SVC,4,2           ; @OPEN_INGRESS_SVC
l_.str.1:                               ; @.str.1
	.asciz	"mpoa: (%s) trying to get a CBR shortcut\n"

	.no_dead_strip	_check_qos_and_open_shortcut
.subsections_via_symbols
