	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_rcb_set_rx_coalesced_frames ## -- Begin function hns_rcb_set_rx_coalesced_frames
	.p2align	4, 0x90
_hns_rcb_set_rx_coalesced_frames:       ## @hns_rcb_set_rx_coalesced_frames
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_hns_rcb_get_rx_coalesced_frames
	xorl	%r14d, %r14d
	cmpq	%rbx, %rax
	je	LBB0_6
## %bb.1:
	cmpq	%rbx, (%r12)
	jle	LBB0_4
## %bb.2:
	movq	_HNS_RCB_MAX_COALESCED_FRAMES@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jl	LBB0_4
## %bb.3:
	movq	_HNS_RCB_MIN_COALESCED_FRAMES@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jg	LBB0_4
## %bb.5:
	movq	_RCB_CFG_PKTLINE_REG@GOTPCREL(%rip), %rax
	shlq	$2, %r15
	addq	(%rax), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_dsaf_write_dev
	jmp	LBB0_6
LBB0_4:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_RCB_MAX_COALESCED_FRAMES,8,3 ## @HNS_RCB_MAX_COALESCED_FRAMES
	.comm	_HNS_RCB_MIN_COALESCED_FRAMES,8,3 ## @HNS_RCB_MIN_COALESCED_FRAMES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error: not support coalesce_frames setting!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RCB_CFG_PKTLINE_REG,8,3        ## @RCB_CFG_PKTLINE_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_rcb_set_rx_coalesced_frames ; -- Begin function hns_rcb_set_rx_coalesced_frames
	.p2align	2
_hns_rcb_set_rx_coalesced_frames:       ; @hns_rcb_set_rx_coalesced_frames
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_hns_rcb_get_rx_coalesced_frames
	cmp	x0, x19
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _HNS_RCB_MAX_COALESCED_FRAMES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HNS_RCB_MAX_COALESCED_FRAMES@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _HNS_RCB_MIN_COALESCED_FRAMES@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HNS_RCB_MIN_COALESCED_FRAMES@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x19
	ccmp	x9, x19, #8, gt
	ccmp	x10, x19, #0, ge
	b.le	LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _RCB_CFG_PKTLINE_REG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RCB_CFG_PKTLINE_REG@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x1, x8, x21, lsl #2
	mov	x0, x20
	mov	x2, x19
	bl	_dsaf_write_dev
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_RCB_MAX_COALESCED_FRAMES,8,3 ; @HNS_RCB_MAX_COALESCED_FRAMES
	.comm	_HNS_RCB_MIN_COALESCED_FRAMES,8,3 ; @HNS_RCB_MIN_COALESCED_FRAMES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error: not support coalesce_frames setting!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RCB_CFG_PKTLINE_REG,8,3        ; @RCB_CFG_PKTLINE_REG
.subsections_via_symbols
