	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfar_scoalesce
_gfar_scoalesce:                        ## @gfar_scoalesce
	.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
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_FSL_GIANFAR_DEV_HAS_COALESCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_1
## %bb.3:
	movq	(%r14), %rsi
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	cmpq	$0, 8(%r14)
	setne	%al
LBB0_5:
	movl	%eax, 4(%r15)
	cmpq	$0, 40(%r15)
	je	LBB0_6
## %bb.7:
	movq	_GFAR_MAX_COAL_USECS@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	%rax, %rsi
	jle	LBB0_10
LBB0_8:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_9
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	8(%r14), %rbx
	movq	_GFAR_MAX_COAL_FRAMES@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpq	%rax, %rbx
	jle	LBB0_12
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
LBB0_9:
	movq	%rax, %rsi
	callq	_pr_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r15, %rdi
	callq	_gfar_usecs2ticks
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mk_ic_value
	movq	%rax, 32(%r15)
	movq	16(%r14), %rsi
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.13:
	cmpq	$0, 24(%r14)
	setne	%al
LBB0_14:
	movl	%eax, 8(%r15)
	movq	(%r12), %rax
	cmpq	%rax, %rsi
	jg	LBB0_8
## %bb.15:
	movq	24(%r14), %rbx
	movq	(%r13), %rax
	cmpq	%rax, %rbx
	jg	LBB0_11
## %bb.16:
	movq	%r15, %rdi
	callq	_gfar_usecs2ticks
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mk_ic_value
	movq	%rax, 16(%r15)
	movq	24(%r15), %rdi
	addq	$4, %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_gfar_write
	cmpl	$0, 4(%r15)
	je	LBB0_18
## %bb.17:
	movq	24(%r15), %rdi
	movq	32(%r15), %rsi
	addq	$4, %rdi
	callq	_gfar_write
LBB0_18:
	movq	24(%r15), %rdi
	xorl	%esi, %esi
	callq	_gfar_write
	cmpl	$0, 8(%r15)
	je	LBB0_20
## %bb.19:
	movq	16(%r15), %rsi
	movq	24(%r15), %rdi
	callq	_gfar_write
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_FSL_GIANFAR_DEV_HAS_COALESCE,4,2 ## @FSL_GIANFAR_DEV_HAS_COALESCE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFAR_MAX_COAL_USECS,8,3        ## @GFAR_MAX_COAL_USECS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Coalescing is limited to %d microseconds\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFAR_MAX_COAL_FRAMES,8,3       ## @GFAR_MAX_COAL_FRAMES
L_.str.1:                               ## @.str.1
	.asciz	"Coalescing is limited to %d frames\n"

	.no_dead_strip	_gfar_scoalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfar_scoalesce
_gfar_scoalesce:                        ; @gfar_scoalesce
	.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, x1
	bl	_netdev_priv
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FSL_GIANFAR_DEV_HAS_COALESCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FSL_GIANFAR_DEV_HAS_COALESCE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x1, [x20]
	cbz	x1, LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w8, ne
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
	mov	w8, #0
LBB0_5:
	str	w8, [x19, #4]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_8
; %bb.6:
Lloh5:
	adrp	x22, _GFAR_MAX_COAL_USECS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _GFAR_MAX_COAL_USECS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x1, x8
	b.le	LBB0_9
LBB0_7:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	ldr	x21, [x20, #8]
Lloh11:
	adrp	x23, _GFAR_MAX_COAL_FRAMES@GOTPAGE
Lloh12:
	ldr	x23, [x23, _GFAR_MAX_COAL_FRAMES@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x21, x8
	b.le	LBB0_14
LBB0_10:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	mov	x1, x8
	bl	_pr_info
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
	ret
LBB0_14:
	mov	x0, x19
	bl	_gfar_usecs2ticks
	mov	x1, x0
	mov	x0, x21
	bl	_mk_ic_value
	str	x0, [x19, #32]
	ldr	x1, [x20, #16]
	cbz	x1, LBB0_16
; %bb.15:
	ldr	x8, [x20, #24]
	cmp	x8, #0
	cset	w8, ne
	b	LBB0_17
LBB0_16:
	mov	w8, #0
LBB0_17:
	str	w8, [x19, #8]
	ldr	x8, [x22]
	cmp	x1, x8
	b.gt	LBB0_7
; %bb.18:
	ldr	x20, [x20, #24]
	ldr	x8, [x23]
	cmp	x20, x8
	b.gt	LBB0_10
; %bb.19:
	mov	x0, x19
	bl	_gfar_usecs2ticks
	mov	x1, x0
	mov	x0, x20
	bl	_mk_ic_value
	str	x0, [x19, #16]
	ldr	x8, [x19, #24]
	add	x0, x8, #4
	mov	x1, #0
	bl	_gfar_write
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_21
; %bb.20:
	ldp	x8, x1, [x19, #24]
	add	x0, x8, #4
	bl	_gfar_write
LBB0_21:
	ldr	x0, [x19, #24]
	mov	x1, #0
	bl	_gfar_write
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_23
; %bb.22:
	ldp	x1, x0, [x19, #16]
	bl	_gfar_write
LBB0_23:
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_FSL_GIANFAR_DEV_HAS_COALESCE,4,2 ; @FSL_GIANFAR_DEV_HAS_COALESCE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFAR_MAX_COAL_USECS,8,3        ; @GFAR_MAX_COAL_USECS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Coalescing is limited to %d microseconds\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFAR_MAX_COAL_FRAMES,8,3       ; @GFAR_MAX_COAL_FRAMES
l_.str.1:                               ; @.str.1
	.asciz	"Coalescing is limited to %d frames\n"

	.no_dead_strip	_gfar_scoalesce
.subsections_via_symbols
