	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subn_set_sl_to_vl
_subn_set_sl_to_vl:                     ## @subn_set_sl_to_vl
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movl	%edx, %esi
	callq	_to_iport
	movq	%rax, %r13
	movq	_IB_PORT_SL_MAP_SUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	je	LBB0_5
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rbx
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r14,2), %eax
	sarl	$4, %eax
	movq	(%r13), %rdi
	movl	%r14d, %ecx
	movl	%eax, (%rdi,%rcx,4)
	movl	(%rbx,%r14,2), %eax
	andl	$15, %eax
	leal	1(%r14), %ecx
	movl	%eax, (%rdi,%rcx,4)
	callq	_ARRAY_SIZE
	addq	$2, %r14
	cmpl	%eax, %r14d
	jb	LBB0_3
LBB0_4:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_to_iport
	movq	%rax, %rdi
	callq	_ppd_from_ibp
	movq	__QIB_EVENT_SL2VL_CHANGE_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_qib_set_uevent_bits
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_subn_get_sl_to_vl              ## TAILCALL
LBB0_5:
	movq	_IB_SMP_UNSUP_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reply                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_PORT_SL_MAP_SUP,4,2         ## @IB_PORT_SL_MAP_SUP
	.comm	_IB_SMP_UNSUP_METHOD,4,2        ## @IB_SMP_UNSUP_METHOD
	.comm	__QIB_EVENT_SL2VL_CHANGE_BIT,4,2 ## @_QIB_EVENT_SL2VL_CHANGE_BIT
	.no_dead_strip	_subn_set_sl_to_vl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subn_set_sl_to_vl
_subn_set_sl_to_vl:                     ; @subn_set_sl_to_vl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	bl	_to_iport
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _IB_PORT_SL_MAP_SUP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_PORT_SL_MAP_SUP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x22, x0
	ldr	x23, [x19, #8]
	ldr	x0, [x0]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_4
; %bb.2:
	mov	w24, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	asr	w8, w8, #4
	ldr	x0, [x22]
	str	w8, [x0, w24, uxtw #2]
	ldr	w8, [x23], #4
	and	w8, w8, #0xf
	add	w9, w24, #1
	str	w8, [x0, w9, uxtw #2]
	add	w24, w24, #2
	bl	_ARRAY_SIZE
	cmp	w24, w0
	b.lo	LBB0_3
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	bl	_to_iport
	bl	_ppd_from_ibp
Lloh3:
	adrp	x8, __QIB_EVENT_SL2VL_CHANGE_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, __QIB_EVENT_SL2VL_CHANGE_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_qib_set_uevent_bits
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_subn_get_sl_to_vl
LBB0_5:
Lloh6:
	adrp	x8, _IB_SMP_UNSUP_METHOD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_SMP_UNSUP_METHOD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_reply
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_PORT_SL_MAP_SUP,4,2         ; @IB_PORT_SL_MAP_SUP
	.comm	_IB_SMP_UNSUP_METHOD,4,2        ; @IB_SMP_UNSUP_METHOD
	.comm	__QIB_EVENT_SL2VL_CHANGE_BIT,4,2 ; @_QIB_EVENT_SL2VL_CHANGE_BIT
	.no_dead_strip	_subn_set_sl_to_vl
.subsections_via_symbols
