	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function velocity_set_coalesce
_velocity_set_coalesce:                 ## @velocity_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	cmpl	$4033, (%rbx)                   ## imm = 0xFC1
	jge	LBB0_1
## %bb.2:
	movl	4(%rbx), %esi
	cmpl	$4033, %esi                     ## imm = 0xFC1
	jge	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movl	8(%rbx), %eax
	cmpl	$256, %eax                      ## imm = 0x100
	jge	LBB0_1
## %bb.4:
	movl	12(%rbx), %ecx
	cmpl	$256, %ecx                      ## imm = 0x100
	jl	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	%ecx, 12(%r14)
	movl	%eax, 16(%r14)
	leaq	24(%r14), %rdi
	callq	_set_pending_timer_val
	movq	%r14, %rdi
	addq	$20, %rdi
	movl	(%rbx), %esi
	callq	_set_pending_timer_val
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	4(%r14), %edi
	callq	_mac_disable_int
	movq	%r14, %rdi
	callq	_setup_adaptive_interrupts
	movq	%r14, %rdi
	callq	_setup_queue_timers
	movl	4(%r14), %esi
	movl	8(%r14), %edi
	callq	_mac_write_int_mask
	movl	4(%r14), %edi
	callq	_mac_clear_isr
	movl	4(%r14), %edi
	callq	_mac_enable_int
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_velocity_set_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function velocity_set_coalesce
_velocity_set_coalesce:                 ; @velocity_set_coalesce
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_netdev_priv
	ldr	w8, [x20]
	cmp	w8, #4033
	b.ge	LBB0_4
; %bb.1:
	ldr	w1, [x20, #4]
	cmp	w1, #4033
	b.ge	LBB0_4
; %bb.2:
	ldr	w8, [x20, #8]
	cmp	w8, #256
	b.ge	LBB0_4
; %bb.3:
	ldr	w9, [x20, #12]
	cmp	w9, #256
	b.lt	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x19, x0
	stp	w9, w8, [x0, #12]
	add	x0, x0, #24
	bl	_set_pending_timer_val
	add	x0, x19, #20
	ldr	w1, [x20]
	bl	_set_pending_timer_val
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w0, [x19, #4]
	bl	_mac_disable_int
	mov	x0, x19
	bl	_setup_adaptive_interrupts
	mov	x0, x19
	bl	_setup_queue_timers
	ldp	w1, w0, [x19, #4]
	bl	_mac_write_int_mask
	ldr	w0, [x19, #4]
	bl	_mac_clear_isr
	ldr	w0, [x19, #4]
	bl	_mac_enable_int
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_velocity_set_coalesce
.subsections_via_symbols
