	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_do_user_init
_ipath_do_user_init:                    ## @ipath_do_user_init
	.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, %r15
	movq	%rdi, %rbx
	callq	_port_fp
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_subport_fp
	testq	%rax, %rax
	je	LBB0_1
## %bb.15:
	movl	16(%r12), %ebx
	movq	_IPATH_PORT_MASTER_UNINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$20, %r12
	movq	%r12, %rsi
	callq	_test_bit
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wait_event_interruptible       ## TAILCALL
LBB0_1:
	movq	80(%r12), %r14
	movl	(%r15), %esi
	testl	%esi, %esi
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_ipath_setrcvhdrsize
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_14
LBB0_3:
	movl	(%r12), %edx
	movl	(%r14), %ecx
	movl	4(%r14), %r8d
	cmpl	%ecx, %edx
	jle	LBB0_4
## %bb.5:
	leal	-1(%rdx), %eax
	imull	%r8d, %eax
	addl	%ecx, %eax
	jmp	LBB0_6
LBB0_4:
	incl	%r8d
	leal	-1(%rdx), %eax
	imull	%r8d, %eax
LBB0_6:
	movl	%r8d, 4(%r12)
	movl	%eax, 8(%r12)
	movslq	8(%r14), %rcx
	movslq	%eax, %r9
	imulq	%r9, %rcx
	addq	56(%r14), %rcx
	movq	%rcx, 72(%r12)
	movq	_VERBOSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_ipath_cdbg
	movl	4(%r12), %edx
	movl	8(%r12), %esi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_ipath_chg_pioavailkernel
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ipath_create_rcvhdrq
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:
	movq	%r12, %rdi
	callq	_ipath_create_user_egr
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movq	_ur_rcvegrindextail@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_ipath_read_ureg32
	movl	%eax, %r13d
	movq	_ur_rcvegrindexhead@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_ipath_write_ureg
	movl	$-1, 12(%r12)
	movl	(%rbx), %edi
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_ipath_cdbg
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r12)
	movq	$0, 64(%r12)
	movl	40(%r12), %eax
	movl	%eax, 44(%r12)
	movslq	(%r12), %rdi
	addq	48(%r14), %rdi
	leaq	16(%r14), %rsi
	callq	_set_bit
	movq	_IPATH_NODMA_RTAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r14)
	jne	LBB0_12
## %bb.9:
	cmpq	$0, 32(%r12)
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	_ipath_clear_rcvhdrtail
LBB0_11:
	movq	40(%r14), %rax
	movl	(%rax), %esi
	movq	16(%r14), %rdx
	movb	32(%r14), %al
	btrq	%rax, %rdx
	movq	%r14, %rdi
	callq	_ipath_write_kreg
LBB0_12:
	movq	16(%r14), %rdx
	movq	40(%r14), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ipath_write_kreg
	cmpq	$0, 24(%r12)
	je	LBB0_14
## %bb.13:
	movq	_IPATH_PORT_MASTER_UNINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r12), %rsi
	callq	_clear_bit
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_wake_up
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPATH_PORT_MASTER_UNINIT,4,2   ## @IPATH_PORT_MASTER_UNINIT
	.comm	_VERBOSE,4,2                    ## @VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"piobuf base for port %u is 0x%x, piocnt %u, first pio %u\n"

	.comm	_ur_rcvegrindextail,4,2         ## @ur_rcvegrindextail
	.comm	_ur_rcvegrindexhead,4,2         ## @ur_rcvegrindexhead
L_.str.1:                               ## @.str.1
	.asciz	"Wrote port%d egrhead %x from tail regs\n"

	.comm	_IPATH_NODMA_RTAIL,4,2          ## @IPATH_NODMA_RTAIL
	.no_dead_strip	_ipath_do_user_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipath_do_user_init
_ipath_do_user_init:                    ; @ipath_do_user_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_port_fp
	mov	x19, x0
	mov	x0, x20
	bl	_subport_fp
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w20, [x19, #16]
Lloh0:
	adrp	x8, _IPATH_PORT_MASTER_UNINIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPATH_PORT_MASTER_UNINIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_test_bit
	cmp	w0, #0
	cset	w1, eq
	mov	x0, x20
	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
	add	sp, sp, #64
	b	_wait_event_interruptible
LBB0_2:
	ldr	x20, [x19, #80]
	ldr	w1, [x21]
	cbz	w1, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_ipath_setrcvhdrsize
	cbnz	w0, LBB0_13
LBB0_4:
	ldr	w2, [x19]
	ldp	w8, w9, [x20]
	sub	w10, w2, #1
	madd	w11, w9, w10, w8
	add	w12, w9, #1
	mul	w10, w12, w10
	cmp	w2, w8
	csel	w8, w11, w10, gt
	cinc	w9, w9, le
	stp	w9, w8, [x19, #4]
	ldr	x10, [x20, #56]
	ldrsw	x11, [x20, #8]
	sxtw	x12, w8
	madd	x3, x11, x12, x10
	str	x3, [x19, #72]
Lloh3:
	adrp	x22, _VERBOSE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _VERBOSE@GOTPAGEOFF]
	ldr	w0, [x22]
	stp	x9, x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_ipath_cdbg
	ldp	w2, w1, [x19, #4]
	mov	x0, x20
	mov	w3, #0
	bl	_ipath_chg_pioavailkernel
	mov	x0, x20
	mov	x1, x19
	bl	_ipath_create_rcvhdrq
	cbnz	w0, LBB0_13
; %bb.5:
	mov	x0, x19
	bl	_ipath_create_user_egr
	cbnz	w0, LBB0_13
; %bb.6:
Lloh7:
	adrp	x8, _ur_rcvegrindextail@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ur_rcvegrindextail@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x20
	bl	_ipath_read_ureg32
	mov	x21, x0
Lloh10:
	adrp	x8, _ur_rcvegrindexhead@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ur_rcvegrindexhead@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w3, [x19]
	mov	x0, x20
	mov	x2, x21
	bl	_ipath_write_ureg
	mov	w8, #-1
	str	w8, [x19, #12]
	ldr	w0, [x22]
	ldr	w2, [x19]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x21
	bl	_ipath_cdbg
	stp	xzr, xzr, [x19, #56]
	str	xzr, [x19, #48]
	ldr	w8, [x19, #40]
	str	w8, [x19, #44]
	ldr	x8, [x20, #48]
	ldrsw	x9, [x19]
	add	x0, x8, x9
	add	x1, x20, #16
	bl	_set_bit
	ldr	w8, [x20, #24]
Lloh15:
	adrp	x9, _IPATH_NODMA_RTAIL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IPATH_NODMA_RTAIL@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.7:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_ipath_clear_rcvhdrtail
LBB0_9:
	ldp	x9, x8, [x20, #32]
	ldr	w1, [x8]
	ldr	x8, [x20, #16]
	mov	w10, #1
	lsl	x9, x10, x9
	bic	x2, x8, x9
	mov	x0, x20
	bl	_ipath_write_kreg
LBB0_10:
	ldr	x8, [x20, #40]
	ldr	w1, [x8]
	ldr	x2, [x20, #16]
	mov	x0, x20
	bl	_ipath_write_kreg
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_12
; %bb.11:
Lloh18:
	adrp	x8, _IPATH_PORT_MASTER_UNINIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IPATH_PORT_MASTER_UNINIT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_clear_bit
	add	x0, x19, #16
	bl	_wake_up
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IPATH_PORT_MASTER_UNINIT,4,2   ; @IPATH_PORT_MASTER_UNINIT
	.comm	_VERBOSE,4,2                    ; @VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"piobuf base for port %u is 0x%x, piocnt %u, first pio %u\n"

	.comm	_ur_rcvegrindextail,4,2         ; @ur_rcvegrindextail
	.comm	_ur_rcvegrindexhead,4,2         ; @ur_rcvegrindexhead
l_.str.1:                               ; @.str.1
	.asciz	"Wrote port%d egrhead %x from tail regs\n"

	.comm	_IPATH_NODMA_RTAIL,4,2          ; @IPATH_NODMA_RTAIL
	.no_dead_strip	_ipath_do_user_init
.subsections_via_symbols
