	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qos_endport_setup
_qos_endport_setup:                     ## @qos_endport_setup
	.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
	movq	%r8, %rbx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r12
	cmpq	$0, 8(%rsi)
	movq	(%rdi), %rax
	movl	$1, %ecx
	jne	LBB0_2
## %bb.1:
	xorl	%ecx, %ecx
	cmpq	$0, 8(%rax)
	setne	%cl
LBB0_2:
	movq	(%rax), %rax
	movq	(%rax), %r13
	movl	(%r14), %eax
	movl	%eax, 4(%r12)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	xorl	%edx, %edx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %r8
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r9
	callq	_vlarb_update
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_10
## %bb.3:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_5:
	movq	_IB_PORT_CAP_HAS_SL_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$0, %r15d
	testl	%eax, (%r12)
	je	LBB0_10
## %bb.6:
	addq	$4, %r14
	testq	%r13, %r13
	je	LBB0_9
## %bb.7:
	movq	8(%r13), %r9
	testq	%r9, %r9
	je	LBB0_9
## %bb.8:
	movl	(%r14), %eax
	movl	%eax, -72(%rbp)
	movl	(%r13), %edi
	leaq	-72(%rbp), %r14
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	*%r9
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	%rax, (%rsp)
	xorl	%r15d, %r15d
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_sl2vl_update_table
	negq	%rax
	sbbl	%r15d, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_PORT_CAP_HAS_SL_MAP,4,2     ## @IB_PORT_CAP_HAS_SL_MAP
	.no_dead_strip	_qos_endport_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qos_endport_setup
_qos_endport_setup:                     ; @qos_endport_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x24, x3
	mov	x4, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x9, [x1, #8]
	ldr	x8, [x0]
	cbz	x9, LBB0_2
; %bb.1:
	mov	w22, #1
	b	LBB0_3
LBB0_2:
	ldr	x9, [x8, #8]
	cmp	x9, #0
	cset	w22, ne
LBB0_3:
	ldr	x8, [x8]
	ldr	x25, [x8]
	mov	x23, x4
	ldr	w8, [x23], #4
	str	w8, [x20, #4]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	mov	x3, x22
	mov	x5, x19
	bl	_vlarb_update
	cbz	x0, LBB0_5
; %bb.4:
	mov	w0, #-1
	b	LBB0_12
LBB0_5:
	cbz	w24, LBB0_7
LBB0_6:
	mov	w0, #0
	b	LBB0_12
LBB0_7:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IB_PORT_CAP_HAS_SL_MAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_PORT_CAP_HAS_SL_MAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.8:
	cbz	x25, LBB0_11
; %bb.9:
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w9, [x23]
	str	w9, [sp, #12]
	ldr	w0, [x25]
	add	x23, sp, #12
	add	x4, sp, #12
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	blr	x8
LBB0_11:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	mov	x4, x22
	mov	x5, x23
	mov	x6, x19
	bl	_sl2vl_update_table
	cmp	x0, #0
	csetm	w0, ne
LBB0_12:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_PORT_CAP_HAS_SL_MAP,4,2     ; @IB_PORT_CAP_HAS_SL_MAP
	.no_dead_strip	_qos_endport_setup
.subsections_via_symbols
