	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_set_intr_coalesce
_netxen_set_intr_coalesce:              ## @netxen_set_intr_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movl	32(%rax), %edi
	callq	_NX_IS_REVISION_P3
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	movq	_NETXEN_ADAPTER_UP_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movl	(%r14), %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jg	LBB0_1
## %bb.4:
	movl	4(%r14), %edx
	cmpl	$65535, %edx                    ## imm = 0xFFFF
	jg	LBB0_1
## %bb.5:
	movl	8(%r14), %ecx
	cmpl	$65535, %ecx                    ## imm = 0xFFFF
	jg	LBB0_1
## %bb.6:
	movl	12(%r14), %esi
	cmpl	$65535, %esi                    ## imm = 0xFFFF
	jg	LBB0_1
## %bb.7:
	cmpq	$0, 144(%r14)
	jne	LBB0_1
## %bb.8:
	cmpq	$0, 136(%r14)
	jne	LBB0_1
## %bb.9:
	cmpq	$0, 128(%r14)
	jne	LBB0_1
## %bb.10:
	cmpq	$0, 120(%r14)
	jne	LBB0_1
## %bb.11:
	cmpq	$0, 112(%r14)
	jne	LBB0_1
## %bb.12:
	cmpq	$0, 104(%r14)
	jne	LBB0_1
## %bb.13:
	cmpq	$0, 96(%r14)
	jne	LBB0_1
## %bb.14:
	cmpq	$0, 88(%r14)
	jne	LBB0_1
## %bb.15:
	cmpq	$0, 80(%r14)
	jne	LBB0_1
## %bb.16:
	cmpq	$0, 72(%r14)
	jne	LBB0_1
## %bb.17:
	cmpq	$0, 64(%r14)
	jne	LBB0_1
## %bb.18:
	cmpq	$0, 56(%r14)
	jne	LBB0_1
## %bb.19:
	cmpq	$0, 48(%r14)
	jne	LBB0_1
## %bb.20:
	cmpq	$0, 40(%r14)
	jne	LBB0_1
## %bb.21:
	cmpq	$0, 32(%r14)
	jne	LBB0_1
## %bb.22:
	cmpq	$0, 24(%r14)
	jne	LBB0_1
## %bb.23:
	cmpq	$0, 16(%r14)
	je	LBB0_24
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_28:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	testl	%eax, %eax
	sete	%dil
	testl	%edx, %edx
	sete	%r8b
	xorl	%ebx, %ebx
	orb	%dil, %r8b
	je	LBB0_25
## %bb.26:
	movq	_NETXEN_NIC_INTR_DEFAULT@GOTPCREL(%rip), %rax
	movq	_NETXEN_DEFAULT_INTR_COALESCE_RX_TIME_US@GOTPCREL(%rip), %rdx
	movq	_NETXEN_DEFAULT_INTR_COALESCE_RX_PACKETS@GOTPCREL(%rip), %r8
	movq	(%rax), %rdi
	movl	(%rdx), %eax
	movl	(%r8), %edx
	jmp	LBB0_27
LBB0_25:
	xorl	%edi, %edi
LBB0_27:
	movq	%rdi, 24(%r15)
	movl	%eax, 8(%r15)
	movl	%edx, 12(%r15)
	movl	%ecx, 16(%r15)
	movl	%esi, 20(%r15)
	movq	%r15, %rdi
	callq	_netxen_config_intr_coalesce
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NETXEN_ADAPTER_UP_MAGIC,8,3    ## @NETXEN_ADAPTER_UP_MAGIC
	.comm	_NETXEN_NIC_INTR_DEFAULT,8,3    ## @NETXEN_NIC_INTR_DEFAULT
	.comm	_NETXEN_DEFAULT_INTR_COALESCE_RX_TIME_US,4,2 ## @NETXEN_DEFAULT_INTR_COALESCE_RX_TIME_US
	.comm	_NETXEN_DEFAULT_INTR_COALESCE_RX_PACKETS,4,2 ## @NETXEN_DEFAULT_INTR_COALESCE_RX_PACKETS
	.no_dead_strip	_netxen_set_intr_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_set_intr_coalesce
_netxen_set_intr_coalesce:              ; @netxen_set_intr_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
	mov	x19, x0
	ldr	w0, [x0, #32]
	bl	_NX_IS_REVISION_P3
	cbz	w0, LBB0_23
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _NETXEN_ADAPTER_UP_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETXEN_ADAPTER_UP_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #16, lsl #12                ; =65536
	b.ge	LBB0_23
; %bb.3:
	ldr	w9, [x20, #4]
	cmp	w9, #16, lsl #12                ; =65536
	b.ge	LBB0_23
; %bb.4:
	ldr	w10, [x20, #8]
	cmp	w10, #16, lsl #12               ; =65536
	b.ge	LBB0_23
; %bb.5:
	ldr	w11, [x20, #12]
	cmp	w11, #16, lsl #12               ; =65536
	b.ge	LBB0_23
; %bb.6:
	ldr	x12, [x20, #144]
	cbnz	x12, LBB0_23
; %bb.7:
	ldr	x12, [x20, #136]
	cbnz	x12, LBB0_23
; %bb.8:
	ldr	x12, [x20, #128]
	cbnz	x12, LBB0_23
; %bb.9:
	ldr	x12, [x20, #120]
	cbnz	x12, LBB0_23
; %bb.10:
	ldr	x12, [x20, #112]
	cbnz	x12, LBB0_23
; %bb.11:
	ldr	x12, [x20, #104]
	cbnz	x12, LBB0_23
; %bb.12:
	ldr	x12, [x20, #96]
	cbnz	x12, LBB0_23
; %bb.13:
	ldr	x12, [x20, #88]
	cbnz	x12, LBB0_23
; %bb.14:
	ldr	x12, [x20, #80]
	cbnz	x12, LBB0_23
; %bb.15:
	ldr	x12, [x20, #72]
	cbnz	x12, LBB0_23
; %bb.16:
	ldr	x12, [x20, #64]
	cbnz	x12, LBB0_23
; %bb.17:
	ldr	x12, [x20, #56]
	cbnz	x12, LBB0_23
; %bb.18:
	ldr	x12, [x20, #48]
	cbnz	x12, LBB0_23
; %bb.19:
	ldr	x12, [x20, #40]
	cbnz	x12, LBB0_23
; %bb.20:
	ldr	x12, [x20, #32]
	cbnz	x12, LBB0_23
; %bb.21:
	ldr	x12, [x20, #24]
	cbnz	x12, LBB0_23
; %bb.22:
	ldr	x12, [x20, #16]
	cbz	x12, LBB0_25
LBB0_23:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_24:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_25:
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
Lloh6:
	adrp	x12, _NETXEN_NIC_INTR_DEFAULT@GOTPAGE
Lloh7:
	ldr	x12, [x12, _NETXEN_NIC_INTR_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
Lloh9:
	adrp	x13, _NETXEN_DEFAULT_INTR_COALESCE_RX_TIME_US@GOTPAGE
Lloh10:
	ldr	x13, [x13, _NETXEN_DEFAULT_INTR_COALESCE_RX_TIME_US@GOTPAGEOFF]
Lloh11:
	ldr	w13, [x13]
Lloh12:
	adrp	x14, _NETXEN_DEFAULT_INTR_COALESCE_RX_PACKETS@GOTPAGE
Lloh13:
	ldr	x14, [x14, _NETXEN_DEFAULT_INTR_COALESCE_RX_PACKETS@GOTPAGEOFF]
Lloh14:
	ldr	w14, [x14]
	csel	x12, x12, xzr, eq
	csel	w8, w13, w8, eq
	csel	w9, w14, w9, eq
	str	x12, [x19, #24]
	stp	w8, w9, [x19, #8]
	stp	w10, w11, [x19, #16]
	mov	x0, x19
	bl	_netxen_config_intr_coalesce
	mov	w0, #0
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NETXEN_ADAPTER_UP_MAGIC,8,3    ; @NETXEN_ADAPTER_UP_MAGIC
	.comm	_NETXEN_NIC_INTR_DEFAULT,8,3    ; @NETXEN_NIC_INTR_DEFAULT
	.comm	_NETXEN_DEFAULT_INTR_COALESCE_RX_TIME_US,4,2 ; @NETXEN_DEFAULT_INTR_COALESCE_RX_TIME_US
	.comm	_NETXEN_DEFAULT_INTR_COALESCE_RX_PACKETS,4,2 ; @NETXEN_DEFAULT_INTR_COALESCE_RX_PACKETS
	.no_dead_strip	_netxen_set_intr_coalesce
.subsections_via_symbols
