	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_ae_get_coalesce_range
_hns_ae_get_coalesce_range:             ## @hns_ae_get_coalesce_range
	.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	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_assert
	movl	8(%r13), %edi
	callq	_hns_ae_get_dsaf_dev
	movq	%rax, %rbx
	movq	_HNS_RCB_TX_FRAMES_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_HNS_RCB_RX_FRAMES_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	4(%rbx), %edi
	callq	_AE_IS_VER1
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	(%r13), %rcx
	movq	_HNAE_PORT_DEBUG@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_3
LBB0_2:
	movl	(%rbx), %eax
	decl	%eax
	movq	_HNS_RCB_TX_FRAMES_HIGH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
LBB0_3:
	movl	%eax, (%r12)
	movl	(%rbx), %eax
	decl	%eax
	movq	_HNS_RCB_RX_FRAMES_HIGH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_HNS_RCB_TX_USECS_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_HNS_RCB_RX_USECS_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	_HNS_RCB_TX_USECS_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	24(%rbp), %rcx
	movl	%eax, (%rcx)
	movq	_HNS_RCB_RX_USECS_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	32(%rbp), %rcx
	movl	%eax, (%rcx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_RCB_TX_FRAMES_LOW,4,2      ## @HNS_RCB_TX_FRAMES_LOW
	.comm	_HNS_RCB_RX_FRAMES_LOW,4,2      ## @HNS_RCB_RX_FRAMES_LOW
	.comm	_HNAE_PORT_DEBUG,8,3            ## @HNAE_PORT_DEBUG
	.comm	_HNS_RCB_TX_FRAMES_HIGH,4,2     ## @HNS_RCB_TX_FRAMES_HIGH
	.comm	_HNS_RCB_RX_FRAMES_HIGH,4,2     ## @HNS_RCB_RX_FRAMES_HIGH
	.comm	_HNS_RCB_TX_USECS_LOW,4,2       ## @HNS_RCB_TX_USECS_LOW
	.comm	_HNS_RCB_RX_USECS_LOW,4,2       ## @HNS_RCB_RX_USECS_LOW
	.comm	_HNS_RCB_TX_USECS_HIGH,4,2      ## @HNS_RCB_TX_USECS_HIGH
	.comm	_HNS_RCB_RX_USECS_HIGH,4,2      ## @HNS_RCB_RX_USECS_HIGH
	.no_dead_strip	_hns_ae_get_coalesce_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_ae_get_coalesce_range
_hns_ae_get_coalesce_range:             ; @hns_ae_get_coalesce_range
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x26, x2
	mov	x27, x1
	mov	x25, x0
	ldr	x28, [x29, #16]
	bl	_assert
	ldr	w0, [x25, #8]
	bl	_hns_ae_get_dsaf_dev
	mov	x24, x0
Lloh0:
	adrp	x8, _HNS_RCB_TX_FRAMES_LOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNS_RCB_TX_FRAMES_LOW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x27]
Lloh3:
	adrp	x8, _HNS_RCB_RX_FRAMES_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HNS_RCB_RX_FRAMES_LOW@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x26]
	ldr	w0, [x0, #4]
	bl	_AE_IS_VER1
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x25]
Lloh6:
	adrp	x9, _HNAE_PORT_DEBUG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HNAE_PORT_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	ldr	w8, [x24]
	sub	w8, w8, #1
Lloh9:
	adrp	x9, _HNS_RCB_TX_FRAMES_HIGH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HNS_RCB_TX_FRAMES_HIGH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	b	LBB0_4
LBB0_3:
	mov	w8, #1
LBB0_4:
	str	w8, [x23]
	ldr	w8, [x24]
	sub	w8, w8, #1
Lloh12:
	adrp	x9, _HNS_RCB_RX_FRAMES_HIGH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HNS_RCB_RX_FRAMES_HIGH@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	str	w8, [x22]
Lloh15:
	adrp	x8, _HNS_RCB_TX_USECS_LOW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HNS_RCB_TX_USECS_LOW@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh18:
	adrp	x8, _HNS_RCB_RX_USECS_LOW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HNS_RCB_RX_USECS_LOW@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh21:
	adrp	x8, _HNS_RCB_TX_USECS_HIGH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HNS_RCB_TX_USECS_HIGH@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh24:
	adrp	x8, _HNS_RCB_RX_USECS_HIGH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HNS_RCB_RX_USECS_HIGH@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x28]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_RCB_TX_FRAMES_LOW,4,2      ; @HNS_RCB_TX_FRAMES_LOW
	.comm	_HNS_RCB_RX_FRAMES_LOW,4,2      ; @HNS_RCB_RX_FRAMES_LOW
	.comm	_HNAE_PORT_DEBUG,8,3            ; @HNAE_PORT_DEBUG
	.comm	_HNS_RCB_TX_FRAMES_HIGH,4,2     ; @HNS_RCB_TX_FRAMES_HIGH
	.comm	_HNS_RCB_RX_FRAMES_HIGH,4,2     ; @HNS_RCB_RX_FRAMES_HIGH
	.comm	_HNS_RCB_TX_USECS_LOW,4,2       ; @HNS_RCB_TX_USECS_LOW
	.comm	_HNS_RCB_RX_USECS_LOW,4,2       ; @HNS_RCB_RX_USECS_LOW
	.comm	_HNS_RCB_TX_USECS_HIGH,4,2      ; @HNS_RCB_TX_USECS_HIGH
	.comm	_HNS_RCB_RX_USECS_HIGH,4,2      ; @HNS_RCB_RX_USECS_HIGH
	.no_dead_strip	_hns_ae_get_coalesce_range
.subsections_via_symbols
