	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __subn_get_opa_hfi1_cong_log
___subn_get_opa_hfi1_cong_log:          ## @__subn_get_opa_hfi1_cong_log
	.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, %r12
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	16(%rbp), %r13d
	movq	%rcx, %rdi
	movl	%r8d, %esi
	callq	_to_iport
	movq	%rax, %rdi
	callq	_ppd_from_ibp
	testl	%r14d, %r14d
	jne	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movl	$40, %edi
	movl	%r13d, %esi
	callq	_smp_length_check
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_10:
	movq	%r15, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reply                          ## TAILCALL
LBB0_3:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irq
	movq	_OPA_CC_LOG_TYPE_HFI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	callq	_cpu_to_be16
	movl	%eax, 20(%rbx)
	movl	16(%rbx), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rsi
	movl	$4, %edx
	callq	_memcpy
	xorl	%eax, %eax
	callq	_ktime_get_ns
                                        ## kill: def $eax killed $eax def $rax
	leal	1023(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$10, %edi
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	callq	_cpu_to_be32
	movq	%rax, 8(%rbx)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_OPA_CONG_LOG_ELEMS@GOTPCREL(%rip), %rsi
	cmpl	$0, (%rsi)
	jle	LBB0_8
## %bb.4:
	movq	_U32_MAX@GOTPCREL(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	movslq	(%rsi), %rax
	addq	$32, %r15
	cmpq	%rax, %r14
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %r13
	movslq	(%rbx), %rax
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	cmpl	(%rsi), %ecx
	movl	$0, %edx
	cmovel	%edx, %ecx
	movl	%ecx, (%rbx)
	leaq	(%rax,%rax,2), %r12
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	subl	(%r13,%r12,8), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	(%rdi), %ecx
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	(,%r12,8), %rax
	addq	%r13, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movl	28(%rax,%r15), %edi
	leaq	20(,%r12,8), %rsi
	addq	%r13, %rsi
	movl	$3, %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movl	24(%rax,%r15), %edi
	leaq	16(,%r12,8), %rsi
	addq	%r13, %rsi
	movl	$3, %edx
	callq	_memcpy
	movl	4(%r13,%r12,8), %eax
	movl	8(%r13,%r12,8), %ecx
	andl	$31, %eax
	andl	$7, %ecx
	leal	(%rcx,%rax,8), %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx,%r15)
	movl	12(%r13,%r12,8), %edi
	callq	_cpu_to_be32
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx,%r15)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	_U32_MAX@GOTPCREL(%rip), %rdi
	movq	_OPA_CONG_LOG_ELEMS@GOTPCREL(%rip), %rsi
	movq	(%rbx), %rcx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 8(%rcx,%r15)
	jmp	LBB0_7
LBB0_8:
	movq	16(%rbx), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	$0, 8(%rbx)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irq
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	addl	$40, (%rax)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ## @IB_SMP_INVALID_FIELD
	.comm	_OPA_CC_LOG_TYPE_HFI,4,2        ## @OPA_CC_LOG_TYPE_HFI
	.comm	_OPA_CONG_LOG_ELEMS,4,2         ## @OPA_CONG_LOG_ELEMS
	.comm	_U32_MAX,4,2                    ## @U32_MAX
	.no_dead_strip	___subn_get_opa_hfi1_cong_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __subn_get_opa_hfi1_cong_log
___subn_get_opa_hfi1_cong_log:          ; @__subn_get_opa_hfi1_cong_log
	.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	x23, x6
	mov	x20, x5
	mov	x21, x2
	mov	x24, x1
	mov	x19, x0
	mov	x0, x3
	mov	x1, x4
	bl	_to_iport
	bl	_ppd_from_ibp
	cbnz	w24, LBB0_2
; %bb.1:
	mov	x22, x0
	mov	w0, #40
	mov	x1, x23
	bl	_smp_length_check
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_3:
	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_4:
	str	x20, [sp, #24]                  ; 8-byte Folded Spill
	add	x0, x22, #4
	stp	x19, x0, [sp, #8]               ; 16-byte Folded Spill
	bl	_spin_lock_irq
Lloh3:
	adrp	x8, _OPA_CC_LOG_TYPE_HFI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPA_CC_LOG_TYPE_HFI@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #32]
	str	xzr, [x21, #24]
	ldr	x0, [x22, #8]
	bl	_cpu_to_be16
	str	w0, [x21, #20]
	ldr	w0, [x21, #16]
	ldr	x1, [x22, #16]
	mov	w2, #4
	bl	_memcpy
	bl	_ktime_get_ns
	add	w8, w0, #1023
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w24, w8, #10
	mov	x0, x24
	bl	_cpu_to_be32
	str	x0, [x21, #8]
Lloh6:
	adrp	x25, _OPA_CONG_LOG_ELEMS@GOTPAGE
Lloh7:
	ldr	x25, [x25, _OPA_CONG_LOG_ELEMS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x26, #0
	mov	x27, #0
	mov	w28, #24
Lloh8:
	adrp	x19, _U32_MAX@GOTPAGE
Lloh9:
	ldr	x19, [x19, _U32_MAX@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x25]
	add	x26, x26, #32
	cmp	x27, x8
	b.ge	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #24]
	ldrsw	x9, [x22]
	add	w10, w9, #1
	str	w10, [x22]
	ldr	w11, [x25]
	cmp	w10, w11
	csinc	w10, wzr, w9, eq
	str	w10, [x22]
	madd	x20, x9, x28, x8
	ldr	w10, [x20]
	sub	w10, w24, w10
	cmp	w10, #0
	cinc	w10, w10, lt
	ldr	w11, [x19]
	cmp	w11, w10, asr #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [x21]
	add	x10, x10, x26
	ldr	w0, [x10, #28]
	madd	x23, x9, x28, x8
	add	x1, x23, #20
	mov	w2, #3
	bl	_memcpy
	ldr	x8, [x21]
	add	x8, x8, x26
	ldr	w0, [x8, #24]
	add	x1, x23, #16
	mov	w2, #3
	bl	_memcpy
	ldp	w8, w9, [x23, #4]
	and	w9, w9, #0x7
	bfi	w9, w8, #3, #5
	ldr	x8, [x21]
	str	w9, [x8, x26]
	ldr	w0, [x23, #12]
	bl	_cpu_to_be32
	ldr	x8, [x21]
	add	x8, x8, x26
	str	x0, [x8, #16]
	ldr	w0, [x20]
	bl	_cpu_to_be32
	ldr	x8, [x21]
	add	x8, x8, x26
	str	x0, [x8, #8]
	b	LBB0_6
LBB0_9:
	ldr	x0, [x22, #16]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	xzr, [x22, #8]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_spin_unlock_irq
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x9, LBB0_3
; %bb.10:
	ldr	w8, [x9]
	add	w8, w8, #40
	str	w8, [x9]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ; @IB_SMP_INVALID_FIELD
	.comm	_OPA_CC_LOG_TYPE_HFI,4,2        ; @OPA_CC_LOG_TYPE_HFI
	.comm	_OPA_CONG_LOG_ELEMS,4,2         ; @OPA_CONG_LOG_ELEMS
	.comm	_U32_MAX,4,2                    ; @U32_MAX
	.no_dead_strip	___subn_get_opa_hfi1_cong_log
.subsections_via_symbols
