	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __subn_set_opa_cc_table
___subn_set_opa_cc_table:               ## @__subn_set_opa_cc_table
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	16(%rbp), %r13d
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movl	%r8d, %esi
	callq	_to_iport
	movq	%rax, %rdi
	callq	_ppd_from_ibp
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	callq	_OPA_AM_START_BLK
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_OPA_AM_NBLK
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movl	%eax, %r12d
	movq	_IB_CCT_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%r12d, %eax
	leal	4(,%rax,4), %edi
	movl	%r13d, %esi
	callq	_smp_length_check
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	leal	(%r12,%rbx), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	jg	LBB0_8
## %bb.3:
	movq	_IB_CCT_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%eax, %ebx
	decl	%r12d
	imull	%eax, %r12d
	leal	(%rbx,%r12), %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	callq	_be16_to_cpu
	cltd
	movq	_IB_CCT_ENTRIES@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	addl	%edx, %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	callq	_be16_to_cpu
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	cmpl	%r13d, %eax
	jle	LBB0_4
LBB0_8:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	%r15, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reply                          ## TAILCALL
LBB0_4:
	incl	%eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	callq	_spin_lock
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, 4(%rax)
	cmpl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	jg	LBB0_7
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movslq	%ebx, %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	addl	%edx, %r12d
	incl	%r12d
	leaq	(%rax,%rcx,4), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_be16_to_cpu
	movl	%eax, (%r13,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_6
LBB0_7:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_apply_cc_state
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___subn_get_opa_cc_table        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_CCT_ENTRIES,4,2             ## @IB_CCT_ENTRIES
	.comm	_IB_SMP_INVALID_FIELD,4,2       ## @IB_SMP_INVALID_FIELD
	.no_dead_strip	___subn_set_opa_cc_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __subn_set_opa_cc_table
___subn_set_opa_cc_table:               ; @__subn_set_opa_cc_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x6
	str	x5, [sp, #24]                   ; 8-byte Folded Spill
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
	mov	x0, x3
	mov	x1, x4
	bl	_to_iport
	bl	_ppd_from_ibp
	mov	x26, x0
	mov	x0, x25
	bl	_OPA_AM_START_BLK
	mov	x27, x0
	mov	x0, x25
	bl	_OPA_AM_NBLK
	cbz	w0, LBB0_4
; %bb.1:
	mov	x28, x0
Lloh0:
	adrp	x21, _IB_CCT_ENTRIES@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IB_CCT_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x21]
	mul	w8, w0, w8
	lsl	w8, w8, #2
	add	w0, w8, #4
	mov	x1, x20
	bl	_smp_length_check
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x26]
	add	w9, w28, w27
	cmp	w9, w8
	b.gt	LBB0_4
; %bb.3:
	ldr	w8, [x21]
	mul	w10, w8, w27
	sub	w9, w28, #1
	mul	w8, w8, w9
	stp	w8, w10, [sp, #16]              ; 8-byte Folded Spill
	add	w27, w10, w8
	ldr	w0, [x24, #8]
	bl	_be16_to_cpu
	ldr	w8, [x21]
	sdiv	w9, w0, w8
	msub	w28, w9, w8, w0
	add	w21, w27, w28
	ldr	w0, [x24, #8]
	bl	_be16_to_cpu
	cmp	w0, w21
	b.le	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_reply
LBB0_5:
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	add	w27, w0, #1
	add	x0, x26, #8
	str	x0, [sp]                        ; 8-byte Folded Spill
	bl	_spin_lock
	str	w27, [x26, #4]
	ldr	w10, [sp, #20]                  ; 4-byte Folded Reload
	cmp	w10, w21
	b.gt	LBB0_8
; %bb.6:
	mov	x21, #0
	ldr	x8, [x26, #16]
	ldr	w9, [sp, #16]                   ; 4-byte Folded Reload
	add	w9, w28, w9
	add	w28, w9, #1
	add	x27, x8, w10, sxtw #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	lsl	x20, x21, #2
	ldr	w0, [x8, x20]
	bl	_be16_to_cpu
	str	w0, [x27, x20]
	add	x21, x21, #1
	cmp	x28, x21
	b.ne	LBB0_7
LBB0_8:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_spin_unlock
	mov	x0, x26
	bl	_apply_cc_state
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	ldr	x5, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w6, [sp, #12]                   ; 4-byte Folded Reload
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	___subn_get_opa_cc_table
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_CCT_ENTRIES,4,2             ; @IB_CCT_ENTRIES
	.comm	_IB_SMP_INVALID_FIELD,4,2       ; @IB_SMP_INVALID_FIELD
	.no_dead_strip	___subn_set_opa_cc_table
.subsections_via_symbols
