	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skge_set_coalesce
_skge_set_coalesce:                     ## @skge_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	%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, %r12
	callq	_netdev_priv
	movq	8(%rax), %r14
	movslq	(%rax), %r13
	movq	_B2_IRQM_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_skge_read32
	movl	%eax, %ebx
	movl	(%r12), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	leal	-33334(%rsi), %eax
	cmpl	$-33310, %eax                   ## imm = 0xFFFF7DE2
	jbe	LBB0_3
## %bb.4:
	movq	_rxirqmask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orl	(%rax,%r13,4), %ebx
	movl	%esi, %r15d
	jmp	LBB0_5
LBB0_1:
	movq	_rxirqmask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	$25, %r15d
LBB0_5:
	movl	4(%r12), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	addl	$-33334, %eax                   ## imm = 0xFFFF7DCA
	cmpl	$-33310, %eax                   ## imm = 0xFFFF7DE2
	ja	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_6:
	movq	_txirqmask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %eax
	notl	%eax
	andl	%eax, %ebx
	jmp	LBB0_9
LBB0_8:
	movq	_txirqmask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orl	(%rax,%r13,4), %ebx
	movl	%r15d, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_min
	movl	%eax, %r15d
LBB0_9:
	movq	_B2_IRQM_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_skge_write32
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.11:
	movq	_B2_IRQM_INI@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_skge_usecs2clk
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_skge_write32
	movq	_B2_IRQM_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TIM_START@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_B2_IRQM_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TIM_STOP@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_skge_write32
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B2_IRQM_MSK,4,2                ## @B2_IRQM_MSK
	.comm	_rxirqmask,8,3                  ## @rxirqmask
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_txirqmask,8,3                  ## @txirqmask
	.comm	_B2_IRQM_CTRL,4,2               ## @B2_IRQM_CTRL
	.comm	_TIM_STOP,4,2                   ## @TIM_STOP
	.comm	_B2_IRQM_INI,4,2                ## @B2_IRQM_INI
	.comm	_TIM_START,4,2                  ## @TIM_START
	.no_dead_strip	_skge_set_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skge_set_coalesce
_skge_set_coalesce:                     ; @skge_set_coalesce
	.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	x21, x1
	bl	_netdev_priv
	ldr	x19, [x0, #8]
	ldrsw	x23, [x0]
Lloh0:
	adrp	x22, _B2_IRQM_MSK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _B2_IRQM_MSK@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_skge_read32
	ldr	w1, [x21]
	cbz	w1, LBB0_4
; %bb.1:
	mov	w8, #-33334
	mov	w9, #-33310
	add	w8, w1, w8
	cmp	w8, w9
	b.ls	LBB0_6
; %bb.2:
Lloh2:
	adrp	x8, _rxirqmask@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rxirqmask@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w8, [x8, x23, lsl #2]
	orr	w8, w8, w0
	mov	x20, x1
	ldr	w9, [x21, #4]
	cbnz	w9, LBB0_5
LBB0_3:
Lloh5:
	adrp	x9, _txirqmask@GOTPAGE
Lloh6:
	ldr	x9, [x9, _txirqmask@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w9, [x9, x23, lsl #2]
	bic	w21, w8, w9
	b	LBB0_8
LBB0_4:
Lloh8:
	adrp	x8, _rxirqmask@GOTPAGE
Lloh9:
	ldr	x8, [x8, _rxirqmask@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w8, [x8, x23, lsl #2]
	bic	w8, w0, w8
	mov	w20, #25
	ldr	w9, [x21, #4]
	cbz	w9, LBB0_3
LBB0_5:
	mov	w10, #-33334
	mov	w11, #-33310
	add	w9, w9, w10
	cmp	w9, w11
	b.hi	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_7:
Lloh14:
	adrp	x9, _txirqmask@GOTPAGE
Lloh15:
	ldr	x9, [x9, _txirqmask@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	w9, [x9, x23, lsl #2]
	orr	w21, w9, w8
	mov	x0, x20
	bl	_min
	mov	x20, x0
LBB0_8:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_skge_write32
	cbz	w21, LBB0_10
; %bb.9:
Lloh17:
	adrp	x8, _B2_IRQM_INI@GOTPAGE
Lloh18:
	ldr	x8, [x8, _B2_IRQM_INI@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_skge_usecs2clk
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_skge_write32
Lloh20:
	adrp	x8, _B2_IRQM_CTRL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _B2_IRQM_CTRL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _TIM_START@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TIM_START@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh25:
	adrp	x8, _B2_IRQM_CTRL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _B2_IRQM_CTRL@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _TIM_STOP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TIM_STOP@GOTPAGEOFF]
LBB0_11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_skge_write32
	mov	w0, #0
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_B2_IRQM_MSK,4,2                ; @B2_IRQM_MSK
	.comm	_rxirqmask,8,3                  ; @rxirqmask
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_txirqmask,8,3                  ; @txirqmask
	.comm	_B2_IRQM_CTRL,4,2               ; @B2_IRQM_CTRL
	.comm	_TIM_STOP,4,2                   ; @TIM_STOP
	.comm	_B2_IRQM_INI,4,2                ; @B2_IRQM_INI
	.comm	_TIM_START,4,2                  ; @TIM_START
	.no_dead_strip	_skge_set_coalesce
.subsections_via_symbols
