	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_user_exp_rcv_init         ## -- Begin function hfi1_user_exp_rcv_init
	.p2align	4, 0x90
_hfi1_user_exp_rcv_init:                ## @hfi1_user_exp_rcv_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
	movq	16(%rsi), %r12
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_init
	leaq	48(%rbx), %rdi
	callq	_spin_lock_init
	movl	(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	8(%r15), %edi
	movq	_TID_UNMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HFI1_CAP_UGET_MASK
	testl	%eax, %eax
	je	LBB0_3
LBB0_7:
	movq	%r14, %rdi
	callq	_spin_lock
	movl	4(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.8:
	cmpl	$0, 12(%rbx)
	je	LBB0_12
## %bb.9:
	movl	(%r15), %eax
	cltd
	idivl	%ecx
	movl	%eax, (%rbx)
	testl	%edx, %edx
	je	LBB0_14
## %bb.10:
	cmpl	%edx, 4(%rbx)
	jge	LBB0_14
## %bb.11:
	incl	%eax
	jmp	LBB0_13
LBB0_12:
	movl	(%r15), %eax
LBB0_13:
	movl	%eax, (%rbx)
LBB0_14:
	movq	%r14, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_3:
	movq	$0, 40(%rbx)
	movl	(%r15), %edi
	movl	(%r13), %edx
	movl	$1, %esi
	callq	_kcalloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	16(%rbx), %esi
	movq	(%r12), %rax
	movl	(%rax), %ecx
	leaq	12(%rbx), %r8
	movq	_tid_rb_ops@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	callq	_hfi1_mmu_rb_register
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_dd_dev_info
	jmp	LBB0_7
LBB0_4:
	movq	24(%rbx), %rdi
	callq	_kfree
	movq	$0, 24(%rbx)
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TID_UNMAP,4,2                  ## @TID_UNMAP
	.comm	_tid_rb_ops,4,2                 ## @tid_rb_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed MMU notifier registration %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_user_exp_rcv_init         ; -- Begin function hfi1_user_exp_rcv_init
	.p2align	2
_hfi1_user_exp_rcv_init:                ; @hfi1_user_exp_rcv_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x1, #16]
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_init
	add	x0, x19, #48
	bl	_spin_lock_init
	ldr	w0, [x21]
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_14
; %bb.1:
	ldr	w0, [x21, #8]
Lloh2:
	adrp	x8, _TID_UNMAP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TID_UNMAP@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_HFI1_CAP_UGET_MASK
	cbz	w0, LBB0_10
LBB0_2:
	mov	x0, x20
	bl	_spin_lock
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_7
; %bb.3:
	ldr	w9, [x19, #12]
	cbz	w9, LBB0_7
; %bb.4:
	ldr	w10, [x21]
	sdiv	w9, w10, w8
	str	w9, [x19]
	msub	w8, w9, w8, w10
	cbz	w8, LBB0_9
; %bb.5:
	ldr	w10, [x19, #4]
	cmp	w10, w8
	b.ge	LBB0_9
; %bb.6:
	add	w8, w9, #1
	b	LBB0_8
LBB0_7:
	ldr	w8, [x21]
LBB0_8:
	str	w8, [x19]
LBB0_9:
	mov	x0, x20
	bl	_spin_unlock
	mov	w0, #0
	b	LBB0_15
LBB0_10:
	str	xzr, [x19, #40]
	ldr	w0, [x21]
	ldr	w2, [x23]
	mov	w1, #1
	bl	_kcalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_13
; %bb.11:
	ldr	w1, [x19, #16]
	ldr	x8, [x22]
	ldr	w3, [x8]
	add	x4, x19, #12
Lloh5:
	adrp	x2, _tid_rb_ops@GOTPAGE
Lloh6:
	ldr	x2, [x2, _tid_rb_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_hfi1_mmu_rb_register
	cbz	w0, LBB0_2
; %bb.12:
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dd_dev_info
	b	LBB0_2
LBB0_13:
	ldr	x0, [x19, #24]
	bl	_kfree
	str	xzr, [x19, #24]
LBB0_14:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TID_UNMAP,4,2                  ; @TID_UNMAP
	.comm	_tid_rb_ops,4,2                 ; @tid_rb_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed MMU notifier registration %d\n"

.subsections_via_symbols
