	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_subctxts
_init_subctxts:                         ## @init_subctxts
	.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
	movl	(%rdx), %ebx
	xorl	%r15d, %r15d
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	4(%rdx), %edi
	movzwl	%di, %esi
	sarl	$16, %edi
	callq	_qib_compatible_subctxts
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_QLOGIC_IB_MAX_SUBCTXT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jbe	LBB0_6
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movl	8(%r13), %edi
	movl	4(%r12), %edx
	movzwl	%dx, %ecx
	sarl	$16, %edx
	movq	_QIB_USER_SWMAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_QIB_USER_SWMINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rsi
	callq	_qib_devinfo
	jmp	LBB0_13
LBB0_6:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	%ebx, %edi
	callq	_vmalloc_user
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%r13), %edi
	imull	4(%r13), %edi
	shll	$2, %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ALIGN
	imull	%ebx, %eax
	movl	%eax, %edi
	callq	_vmalloc_user
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	imull	(%r14), %ebx
	imull	4(%r14), %ebx
	movl	%ebx, %edi
	callq	_vmalloc_user
	movq	%rax, 48(%r14)
	testq	%rax, %rax
	je	LBB0_11
## %bb.14:
	movl	(%r12), %eax
	movl	%eax, 8(%r14)
	movl	8(%r12), %eax
	movl	%eax, 44(%r14)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 12(%r14)
	movq	_QIB_CTXT_MASTER_UNINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %r14
	movq	%r14, %rsi
	callq	_set_bit
	jmp	LBB0_13
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_13
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_12
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	32(%r14), %rdi
	callq	_vfree
LBB0_12:
	negl	%r15d
	movq	24(%r14), %rdi
	callq	_vfree
	movq	$0, 24(%r14)
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mismatched user version (%d.%d) and driver version (%d.%d) while context sharing. Ensure that driver and library are from the same release.\n"

	.comm	_QIB_USER_SWMAJOR,4,2           ## @QIB_USER_SWMAJOR
	.comm	_QIB_USER_SWMINOR,4,2           ## @QIB_USER_SWMINOR
	.comm	_QLOGIC_IB_MAX_SUBCTXT,4,2      ## @QLOGIC_IB_MAX_SUBCTXT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QIB_CTXT_MASTER_UNINIT,4,2     ## @QIB_CTXT_MASTER_UNINIT
	.no_dead_strip	_init_subctxts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_subctxts
_init_subctxts:                         ; @init_subctxts
	.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
	ldr	w22, [x2]
	cbz	w22, LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w8, [x2, #4]
	asr	w0, w8, #16
	and	w1, w8, #0xffff
	bl	_qib_compatible_subctxts
	cbz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _QLOGIC_IB_MAX_SUBCTXT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLOGIC_IB_MAX_SUBCTXT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ls	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	mov	w20, #0
	b	LBB0_15
LBB0_5:
	ldr	w0, [x21, #8]
	ldr	w8, [x20, #4]
	asr	w2, w8, #16
	and	w3, w8, #0xffff
Lloh5:
	adrp	x8, _QIB_USER_SWMAJOR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QIB_USER_SWMAJOR@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
Lloh8:
	adrp	x8, _QIB_USER_SWMINOR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QIB_USER_SWMINOR@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_qib_devinfo
	mov	w20, #0
	b	LBB0_15
LBB0_6:
Lloh13:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh14:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	mul	w0, w8, w22
	bl	_vmalloc_user
	str	x0, [x19, #24]
	cbz	x0, LBB0_10
; %bb.7:
	ldp	w8, w9, [x21]
	mul	w8, w8, w9
	lsl	w0, w8, #2
	ldr	w1, [x23]
	bl	_ALIGN
	mul	w0, w0, w22
	bl	_vmalloc_user
	str	x0, [x19, #32]
	cbz	x0, LBB0_12
; %bb.8:
	ldp	w8, w9, [x19]
	mul	w8, w8, w22
	mul	w0, w8, w9
	bl	_vmalloc_user
	str	x0, [x19, #48]
	cbz	x0, LBB0_13
; %bb.9:
	ldr	w8, [x20]
	str	w8, [x19, #8]
	ldr	w8, [x20, #8]
	str	w8, [x19, #44]
	movi.2s	v0, #1
	stur	d0, [x19, #12]
Lloh15:
	adrp	x8, _QIB_CTXT_MASTER_UNINIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QIB_CTXT_MASTER_UNINIT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x1, x19, #40
	bl	_set_bit
	mov	w20, #0
	b	LBB0_15
LBB0_10:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_12:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
	b	LBB0_14
LBB0_13:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
	ldr	x0, [x19, #32]
	bl	_vfree
LBB0_14:
	neg	w20, w20
	ldr	x0, [x19, #24]
	bl	_vfree
	str	xzr, [x19, #24]
LBB0_15:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mismatched user version (%d.%d) and driver version (%d.%d) while context sharing. Ensure that driver and library are from the same release.\n"

	.comm	_QIB_USER_SWMAJOR,4,2           ; @QIB_USER_SWMAJOR
	.comm	_QIB_USER_SWMINOR,4,2           ; @QIB_USER_SWMINOR
	.comm	_QLOGIC_IB_MAX_SUBCTXT,4,2      ; @QLOGIC_IB_MAX_SUBCTXT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QIB_CTXT_MASTER_UNINIT,4,2     ; @QIB_CTXT_MASTER_UNINIT
	.no_dead_strip	_init_subctxts
.subsections_via_symbols
