	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_set_coalesce
_sky2_set_coalesce:                     ## @sky2_set_coalesce
	.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	%rsi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	8(%rax), %r14
	movq	%r14, %rdi
	movl	$16777215, %esi                 ## imm = 0xFFFFFF
	callq	_sky2_clk2us
	movq	(%r15), %rsi
	cmpq	%rax, %rsi
	jg	LBB0_3
## %bb.1:
	cmpq	%rax, 8(%r15)
	jg	LBB0_3
## %bb.2:
	cmpq	%rax, 16(%r15)
	jg	LBB0_3
## %bb.4:
	movl	(%rbx), %eax
	decl	%eax
	cmpl	%eax, 24(%r15)
	jge	LBB0_3
## %bb.5:
	movq	_RX_MAX_PENDING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 32(%r15)
	jg	LBB0_3
## %bb.6:
	cmpq	%rax, 40(%r15)
	jle	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_TIM_STOP@GOTPCREL(%rip), %r12
	movq	%r12, %rax
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	_STAT_TX_TIMER_INI@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_sky2_us2clk
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_sky2_write32
	movq	_TIM_START@GOTPCREL(%rip), %rax
LBB0_9:
	movq	_STAT_TX_TIMER_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%rax), %rdx
	movq	%r14, %rdi
	callq	_sky2_write8
	movq	_STAT_TX_IDX_TH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r15), %edx
	movq	%r14, %rdi
	callq	_sky2_write16
	movq	8(%r15), %rsi
	movq	%r12, %rax
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movq	_STAT_LEV_TIMER_INI@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_sky2_us2clk
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_sky2_write32
	movq	_TIM_START@GOTPCREL(%rip), %rax
LBB0_11:
	movq	_STAT_LEV_TIMER_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%rax), %rdx
	movq	%r14, %rdi
	callq	_sky2_write8
	movq	_STAT_FIFO_WM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%r15), %rdx
	movq	%r14, %rdi
	callq	_sky2_write8
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:
	movq	_STAT_ISR_TIMER_INI@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_sky2_us2clk
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_sky2_write32
	movq	_TIM_START@GOTPCREL(%rip), %r12
LBB0_13:
	movq	_STAT_ISR_TIMER_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rdx
	movq	%r14, %rdi
	callq	_sky2_write8
	movq	_STAT_FIFO_ISR_WM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%r15), %rdx
	movq	%r14, %rdi
	callq	_sky2_write8
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RX_MAX_PENDING,8,3             ## @RX_MAX_PENDING
	.comm	_STAT_TX_TIMER_CTRL,4,2         ## @STAT_TX_TIMER_CTRL
	.comm	_TIM_STOP,8,3                   ## @TIM_STOP
	.comm	_STAT_TX_TIMER_INI,4,2          ## @STAT_TX_TIMER_INI
	.comm	_TIM_START,8,3                  ## @TIM_START
	.comm	_STAT_TX_IDX_TH,4,2             ## @STAT_TX_IDX_TH
	.comm	_STAT_LEV_TIMER_CTRL,4,2        ## @STAT_LEV_TIMER_CTRL
	.comm	_STAT_LEV_TIMER_INI,4,2         ## @STAT_LEV_TIMER_INI
	.comm	_STAT_FIFO_WM,4,2               ## @STAT_FIFO_WM
	.comm	_STAT_ISR_TIMER_CTRL,4,2        ## @STAT_ISR_TIMER_CTRL
	.comm	_STAT_ISR_TIMER_INI,4,2         ## @STAT_ISR_TIMER_INI
	.comm	_STAT_FIFO_ISR_WM,4,2           ## @STAT_FIFO_ISR_WM
	.no_dead_strip	_sky2_set_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_set_coalesce
_sky2_set_coalesce:                     ; @sky2_set_coalesce
	.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, x1
	bl	_netdev_priv
	mov	x21, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	mov	w1, #16777215
	bl	_sky2_clk2us
	ldr	x1, [x19]
	cmp	x1, x0
	b.gt	LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
	cmp	x8, x0
	b.gt	LBB0_6
; %bb.2:
	ldr	x8, [x19, #16]
	cmp	x8, x0
	b.gt	LBB0_6
; %bb.3:
	ldr	w8, [x19, #24]
	ldr	w9, [x21]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ge	LBB0_6
; %bb.4:
	ldr	x9, [x19, #32]
Lloh0:
	adrp	x8, _RX_MAX_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_MAX_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.gt	LBB0_6
; %bb.5:
	ldr	x9, [x19, #40]
	cmp	x9, x8
	b.le	LBB0_8
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
LBB0_8:
	cbz	x1, LBB0_10
; %bb.9:
Lloh6:
	adrp	x8, _STAT_TX_TIMER_INI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STAT_TX_TIMER_INI@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_sky2_us2clk
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_sky2_write32
Lloh9:
	adrp	x8, _TIM_START@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TIM_START@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh11:
	adrp	x8, _TIM_STOP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TIM_STOP@GOTPAGEOFF]
LBB0_11:
Lloh13:
	adrp	x9, _STAT_TX_TIMER_CTRL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _STAT_TX_TIMER_CTRL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x9]
	ldr	x2, [x8]
	mov	x0, x20
	bl	_sky2_write8
Lloh16:
	adrp	x8, _STAT_TX_IDX_TH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _STAT_TX_IDX_TH@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
	mov	x0, x20
	bl	_sky2_write16
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_13
; %bb.12:
Lloh19:
	adrp	x8, _STAT_LEV_TIMER_INI@GOTPAGE
Lloh20:
	ldr	x8, [x8, _STAT_LEV_TIMER_INI@GOTPAGEOFF]
Lloh21:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_sky2_us2clk
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_sky2_write32
Lloh22:
	adrp	x8, _TIM_START@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TIM_START@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh24:
	adrp	x8, _TIM_STOP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TIM_STOP@GOTPAGEOFF]
LBB0_14:
Lloh26:
	adrp	x9, _STAT_LEV_TIMER_CTRL@GOTPAGE
Lloh27:
	ldr	x9, [x9, _STAT_LEV_TIMER_CTRL@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x9]
	ldr	x2, [x8]
	mov	x0, x20
	bl	_sky2_write8
Lloh29:
	adrp	x8, _STAT_FIFO_WM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _STAT_FIFO_WM@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	x2, [x19, #32]
	mov	x0, x20
	bl	_sky2_write8
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_16
; %bb.15:
Lloh32:
	adrp	x8, _STAT_ISR_TIMER_INI@GOTPAGE
Lloh33:
	ldr	x8, [x8, _STAT_ISR_TIMER_INI@GOTPAGEOFF]
Lloh34:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_sky2_us2clk
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_sky2_write32
Lloh35:
	adrp	x8, _TIM_START@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TIM_START@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh37:
	adrp	x8, _TIM_STOP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TIM_STOP@GOTPAGEOFF]
LBB0_17:
Lloh39:
	adrp	x9, _STAT_ISR_TIMER_CTRL@GOTPAGE
Lloh40:
	ldr	x9, [x9, _STAT_ISR_TIMER_CTRL@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x9]
	ldr	x2, [x8]
	mov	x0, x20
	bl	_sky2_write8
Lloh42:
	adrp	x8, _STAT_FIFO_ISR_WM@GOTPAGE
Lloh43:
	ldr	x8, [x8, _STAT_FIFO_ISR_WM@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	ldr	x2, [x19, #40]
	mov	x0, x20
	bl	_sky2_write8
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RX_MAX_PENDING,8,3             ; @RX_MAX_PENDING
	.comm	_STAT_TX_TIMER_CTRL,4,2         ; @STAT_TX_TIMER_CTRL
	.comm	_TIM_STOP,8,3                   ; @TIM_STOP
	.comm	_STAT_TX_TIMER_INI,4,2          ; @STAT_TX_TIMER_INI
	.comm	_TIM_START,8,3                  ; @TIM_START
	.comm	_STAT_TX_IDX_TH,4,2             ; @STAT_TX_IDX_TH
	.comm	_STAT_LEV_TIMER_CTRL,4,2        ; @STAT_LEV_TIMER_CTRL
	.comm	_STAT_LEV_TIMER_INI,4,2         ; @STAT_LEV_TIMER_INI
	.comm	_STAT_FIFO_WM,4,2               ; @STAT_FIFO_WM
	.comm	_STAT_ISR_TIMER_CTRL,4,2        ; @STAT_ISR_TIMER_CTRL
	.comm	_STAT_ISR_TIMER_INI,4,2         ; @STAT_ISR_TIMER_INI
	.comm	_STAT_FIFO_ISR_WM,4,2           ; @STAT_FIFO_ISR_WM
	.no_dead_strip	_sky2_set_coalesce
.subsections_via_symbols
