	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_initialize_interrupt_registers
_netxen_initialize_interrupt_registers: ## @netxen_initialize_interrupt_registers
	.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	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_NX_P3_B0@GOTPCREL(%rip), %rcx
	movq	_legacy_intr@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r15
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	movq	16(%rbx), %rax
	shlq	$4, %rax
	addq	%rax, %r15
LBB0_2:
	movl	8(%r15), %eax
	movl	12(%r15), %esi
	movq	_ISR_INT_STATE_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%eax, 56(%rbx)
	movq	%rbx, %rdi
	callq	_netxen_get_ioaddr
	movq	%rax, 48(%rbx)
	movl	4(%r15), %esi
	movq	%rbx, %rdi
	callq	_netxen_get_ioaddr
	movq	%rax, 40(%rbx)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_netxen_get_ioaddr
	movq	%rax, 32(%rbx)
	movq	_ISR_INT_VECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_netxen_get_ioaddr
	movq	%rax, 24(%rbx)
	movq	8(%rbx), %rax
	movq	_NX_P3_B1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
## %bb.3:
	movq	_CRB_INT_VECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_netxen_get_ioaddr
	movq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NX_P3_B0,8,3                   ## @NX_P3_B0
	.comm	_legacy_intr,8,3                ## @legacy_intr
	.comm	_ISR_INT_STATE_REG,4,2          ## @ISR_INT_STATE_REG
	.comm	_ISR_INT_VECTOR,4,2             ## @ISR_INT_VECTOR
	.comm	_NX_P3_B1,8,3                   ## @NX_P3_B1
	.comm	_CRB_INT_VECTOR,4,2             ## @CRB_INT_VECTOR
	.no_dead_strip	_netxen_initialize_interrupt_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_initialize_interrupt_registers
_netxen_initialize_interrupt_registers: ; @netxen_initialize_interrupt_registers
	.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, x0
Lloh0:
	adrp	x8, _NX_P3_B0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NX_P3_B0@GOTPAGEOFF]
	ldr	x9, [x0, #8]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x10, _legacy_intr@GOTPAGE
Lloh4:
	ldr	x10, [x10, _legacy_intr@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x10]
	cmp	x9, x8
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	add	x20, x20, x8, lsl #4
LBB0_2:
Lloh6:
	adrp	x8, _ISR_INT_STATE_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ISR_INT_STATE_REG@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	ldp	w8, w1, [x20, #8]
	str	w8, [x19, #56]
	mov	x0, x19
	bl	_netxen_get_ioaddr
	str	x0, [x19, #48]
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_netxen_get_ioaddr
	str	x0, [x19, #40]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_netxen_get_ioaddr
	str	x0, [x19, #32]
Lloh9:
	adrp	x8, _ISR_INT_VECTOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ISR_INT_VECTOR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_netxen_get_ioaddr
	str	x0, [x19, #24]
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _NX_P3_B1@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NX_P3_B1@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _CRB_INT_VECTOR@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CRB_INT_VECTOR@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w1, w10, w21, lt
	mov	x0, x19
	bl	_netxen_get_ioaddr
	str	x0, [x19]
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NX_P3_B0,8,3                   ; @NX_P3_B0
	.comm	_legacy_intr,8,3                ; @legacy_intr
	.comm	_ISR_INT_STATE_REG,4,2          ; @ISR_INT_STATE_REG
	.comm	_ISR_INT_VECTOR,4,2             ; @ISR_INT_VECTOR
	.comm	_NX_P3_B1,8,3                   ; @NX_P3_B1
	.comm	_CRB_INT_VECTOR,4,2             ; @CRB_INT_VECTOR
	.no_dead_strip	_netxen_initialize_interrupt_registers
.subsections_via_symbols
