	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_create_ctxts               ## -- Begin function qib_create_ctxts
	.p2align	4, 0x90
_qib_create_ctxts:                      ## @qib_create_ctxts
	.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, %r14
	movq	40(%rdi), %rax
	movl	(%rax), %edi
	callq	_pcibus_to_node
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_numa_node_id
LBB0_2:
	movl	%eax, (%r14)
	movl	32(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movl	4(%r14), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	xorl	%ebx, %ebx
	movq	_QIB_DEFAULT_P_KEY@GOTPCREL(%rip), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	%eax, %ebx
	jae	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %ecx
	btl	%ebx, %ecx
	jb	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	12(%r14)
                                        ## kill: def $edx killed $edx def $rdx
	leaq	(,%rdx,4), %rdi
	addq	24(%r14), %rdi
	movl	(%r14), %edx
	movl	%ebx, %esi
	callq	_qib_create_ctxtdata
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %ecx
	movq	8(%rax), %rdx
	movl	%ecx, (%rdx)
	movl	$1, (%rax)
	movl	4(%r14), %eax
	jmp	LBB0_8
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_qib_dev_err
	movq	16(%r14), %rdi
	callq	_kfree
	movq	$0, 16(%r14)
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate ctxtdata for Kernel ctxt, failing\n"

	.comm	_QIB_DEFAULT_P_KEY,4,2          ## @QIB_DEFAULT_P_KEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_create_ctxts               ; -- Begin function qib_create_ctxts
	.p2align	2
_qib_create_ctxts:                      ; @qib_create_ctxts
	.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
	ldr	x8, [x0, #40]
	ldr	w0, [x8]
	bl	_pcibus_to_node
	tbz	w0, #31, LBB0_2
; %bb.1:
	bl	_numa_node_id
LBB0_2:
	str	w0, [x19]
	ldr	w0, [x19, #32]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_11
; %bb.3:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_9
; %bb.4:
	mov	w20, #0
Lloh3:
	adrp	x21, _QIB_DEFAULT_P_KEY@GOTPAGE
Lloh4:
	ldr	x21, [x21, _QIB_DEFAULT_P_KEY@GOTPAGEOFF]
	mov	w22, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w20, w20, #1
	cmp	w20, w8
	b.hs	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, #8]
	lsr	w9, w9, w20
	tbnz	w9, #0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #24]
	ldr	w9, [x19, #12]
	udiv	w10, w20, w9
	msub	w9, w10, w9, w20
	add	x0, x8, w9, uxtw #2
	ldr	w2, [x19]
	mov	x1, x20
	bl	_qib_create_ctxtdata
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
	ldr	x9, [x0, #8]
	str	w8, [x9]
	str	w22, [x0]
	ldr	w8, [x19, #4]
	b	LBB0_5
LBB0_9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_qib_dev_err
	ldr	x0, [x19, #16]
	bl	_kfree
	str	xzr, [x19, #16]
LBB0_11:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate ctxtdata for Kernel ctxt, failing\n"

	.comm	_QIB_DEFAULT_P_KEY,4,2          ; @QIB_DEFAULT_P_KEY
.subsections_via_symbols
