	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_init_old_ctx
_netxen_init_old_ctx:                   ## @netxen_init_old_ctx
	.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	%rdi, %r12
	movl	(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	48(%rdi), %rbx
	movq	40(%rdi), %r15
	movl	4(%rbx), %edi
	callq	_cpu_to_le64
	movq	%rax, 48(%r15)
	movl	(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, 40(%r15)
	cmpl	$0, 4(%r12)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %r14
	movl	4(%r14,%rbx), %edi
	callq	_cpu_to_le64
	movq	32(%r15), %rcx
	movq	%rax, 8(%rcx,%rbx,2)
	movl	(%r14,%rbx), %edi
	callq	_cpu_to_le32
	movq	32(%r15), %rcx
	movq	%rax, (%rcx,%rbx,2)
	incq	%r13
	movslq	4(%r12), %rax
	addq	$8, %rbx
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_3:
	movl	8(%r12), %edi
	testl	%edi, %edi
	jle	LBB0_7
## %bb.4:
	movq	24(%r12), %rbx
	movl	4(%rbx), %edi
	callq	_cpu_to_le64
	movq	%rax, 24(%r15)
	movl	(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r15)
	movl	4(%rbx), %edi
	callq	_cpu_to_le64
	movq	8(%r15), %rcx
	movq	%rax, 16(%rcx)
	movl	(%rbx), %edi
	callq	_cpu_to_le32
	movq	8(%r15), %rcx
	movq	%rax, 8(%rcx)
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	movl	8(%r12), %edi
	cmpl	$2, %edi
	jl	LBB0_7
## %bb.5:
	movl	$1, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %r14
	movl	4(%r14,%rbx,8), %edi
	callq	_cpu_to_le64
	movq	8(%r15), %rcx
	movq	%rax, 40(%rcx,%r13)
	movl	(%r14,%rbx,8), %edi
	callq	_cpu_to_le32
	movq	8(%r15), %rcx
	movq	%rax, 32(%rcx,%r13)
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	8(%r15), %rcx
	movl	%eax, 24(%rcx,%r13)
	incq	%rbx
	movslq	8(%r12), %rdi
	addq	$24, %r13
	cmpq	%rdi, %rbx
	jl	LBB0_6
LBB0_7:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le32
	movq	%rax, (%r15)
	cmpl	$2, 8(%r12)
	jl	LBB0_8
## %bb.9:
	movq	_NETXEN_CTX_SIGNATURE_V2@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_NETXEN_CTX_SIGNATURE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	(%rax), %r15d
	orl	%ebx, %r15d
	movl	%ebx, %edi
	callq	_CRB_CTX_ADDR_REG_LO
	movl	%eax, %r14d
	movl	16(%r12), %edi
	callq	_lower32
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_NXWR32
	movl	%ebx, %edi
	callq	_CRB_CTX_ADDR_REG_HI
	movl	%eax, %r14d
	movl	16(%r12), %edi
	callq	_upper32
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_NXWR32
	movl	%ebx, %edi
	callq	_CRB_CTX_SIGNATURE_REG
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_NXWR32
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETXEN_CTX_SIGNATURE_V2,4,2    ## @NETXEN_CTX_SIGNATURE_V2
	.comm	_NETXEN_CTX_SIGNATURE,4,2       ## @NETXEN_CTX_SIGNATURE
	.no_dead_strip	_netxen_init_old_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_init_old_ctx
_netxen_init_old_ctx:                   ; @netxen_init_old_ctx
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w20, [x0]
	ldp	x22, x21, [x0, #40]
	ldr	w0, [x21, #4]
	bl	_cpu_to_le64
	str	x0, [x22, #48]
	ldr	w0, [x21]
	bl	_cpu_to_le32
	str	x0, [x22, #40]
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x23, #0
	mov	x24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x25, x8, x23
	ldr	w0, [x25, #4]
	bl	_cpu_to_le64
	ldr	x8, [x22, #32]
	add	x8, x8, x21
	str	x0, [x8, #8]
	ldr	w0, [x25]
	bl	_cpu_to_le32
	ldr	x8, [x22, #32]
	str	x0, [x8, x21]
	add	x24, x24, #1
	ldrsw	x8, [x19, #4]
	add	x23, x23, #8
	add	x21, x21, #16
	cmp	x24, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	w0, [x19, #8]
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:
	ldr	x21, [x19, #24]
	ldr	w0, [x21, #4]
	bl	_cpu_to_le64
	str	x0, [x22, #24]
	ldr	w0, [x21]
	bl	_cpu_to_le32
	str	x0, [x22, #16]
	ldr	w0, [x21, #4]
	bl	_cpu_to_le64
	ldr	x8, [x22, #8]
	str	x0, [x8, #16]
	ldr	w0, [x21]
	bl	_cpu_to_le32
	ldr	x8, [x22, #8]
	str	x0, [x8, #8]
	mov	w0, #0
	bl	_cpu_to_le16
	ldr	x8, [x22, #8]
	str	w0, [x8]
	ldr	w0, [x19, #8]
	cmp	w0, #2
	b.lt	LBB0_7
; %bb.5:
	mov	x23, #0
	mov	x24, #0
	mov	w21, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x25, x8, x24
	ldr	w0, [x25, #12]
	bl	_cpu_to_le64
	ldr	x8, [x22, #8]
	add	x8, x8, x23
	str	x0, [x8, #40]
	ldr	w0, [x25, #8]
	bl	_cpu_to_le32
	ldr	x8, [x22, #8]
	add	x8, x8, x23
	str	x0, [x8, #32]
	mov	x0, x21
	bl	_cpu_to_le16
	ldr	x8, [x22, #8]
	add	x8, x8, x23
	str	w0, [x8, #24]
	add	x21, x21, #1
	ldrsw	x0, [x19, #8]
	add	x24, x24, #8
	add	x23, x23, #24
	cmp	x21, x0
	b.lt	LBB0_6
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_cpu_to_le32
	str	x0, [x22]
Lloh0:
	adrp	x8, _NETXEN_CTX_SIGNATURE_V2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETXEN_CTX_SIGNATURE_V2@GOTPAGEOFF]
	ldr	w9, [x19, #8]
Lloh2:
	adrp	x10, _NETXEN_CTX_SIGNATURE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _NETXEN_CTX_SIGNATURE@GOTPAGEOFF]
	cmp	w9, #1
	csel	x8, x8, x10, gt
	ldr	w22, [x8]
	mov	x0, x20
	bl	_CRB_CTX_ADDR_REG_LO
	mov	x21, x0
	ldr	w0, [x19, #16]
	bl	_lower32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_NXWR32
	mov	x0, x20
	bl	_CRB_CTX_ADDR_REG_HI
	mov	x21, x0
	ldr	w0, [x19, #16]
	bl	_upper32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_NXWR32
	mov	x0, x20
	bl	_CRB_CTX_SIGNATURE_REG
	mov	x1, x0
	orr	w2, w22, w20
	mov	x0, x19
	bl	_NXWR32
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NETXEN_CTX_SIGNATURE_V2,4,2    ; @NETXEN_CTX_SIGNATURE_V2
	.comm	_NETXEN_CTX_SIGNATURE,4,2       ; @NETXEN_CTX_SIGNATURE
	.no_dead_strip	_netxen_init_old_ctx
.subsections_via_symbols
