	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_alloc_devdata              ## -- Begin function qib_alloc_devdata
	.p2align	4, 0x90
_qib_alloc_devdata:                     ## @qib_alloc_devdata
	.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, %rbx
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_qib_unit_table@GOTPCREL(%rip), %rdi
	callq	_idr_pre_get
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	addl	$12, %ebx
	movl	%ebx, %edi
	callq	_ib_alloc_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %rbx
	movq	_qib_devs_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	leaq	8(%rbx), %rdx
	movq	_qib_unit_table@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_idr_get_new
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	_qib_dev_list@GOTPCREL(%rip), %rsi
	callq	_list_add
	movq	_qib_devs_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	_qib_cpulist_count@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	jne	LBB0_10
## %bb.7:
	xorl	%eax, %eax
	callq	_num_online_cpus
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_BITS_TO_LONGS
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,8), %edi
	movl	(%r12), %esi
	callq	_kzalloc
	movq	_qib_cpulist@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r15, (%r13)
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_5:
	movl	%eax, %r15d
	movq	_qib_devs_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movl	%r15d, %edx
	negl	%edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_qib_early_err
	movq	%rbx, %rdi
	callq	_ib_dealloc_device
	movl	%r15d, %edi
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_qib_early_err
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qib_unit_table,4,2             ## @qib_unit_table
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_qib_devs_lock,4,2              ## @qib_devs_lock
	.comm	_qib_dev_list,4,2               ## @qib_dev_list
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not allocate unit ID: error %d\n"

	.comm	_qib_cpulist_count,8,3          ## @qib_cpulist_count
	.comm	_qib_cpulist,8,3                ## @qib_cpulist
L_.str.1:                               ## @.str.1
	.asciz	"Could not alloc cpulist info, cpu affinity might be wrong\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_alloc_devdata              ; -- Begin function qib_alloc_devdata
	.p2align	2
_qib_alloc_devdata:                     ; @qib_alloc_devdata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x0, _qib_unit_table@GOTPAGE
Lloh3:
	ldr	x0, [x0, _qib_unit_table@GOTPAGEOFF]
	bl	_idr_pre_get
	cbz	w0, LBB0_6
; %bb.1:
	add	w0, w20, #12
	bl	_ib_alloc_device
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
Lloh4:
	adrp	x0, _qib_devs_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _qib_devs_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	add	x2, x20, #8
Lloh6:
	adrp	x0, _qib_unit_table@GOTPAGE
Lloh7:
	ldr	x0, [x0, _qib_unit_table@GOTPAGEOFF]
	mov	x1, x20
	bl	_idr_get_new
	tbnz	w0, #31, LBB0_8
; %bb.3:
	add	x0, x20, #4
Lloh8:
	adrp	x1, _qib_dev_list@GOTPAGE
Lloh9:
	ldr	x1, [x1, _qib_dev_list@GOTPAGEOFF]
	bl	_list_add
Lloh10:
	adrp	x0, _qib_devs_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _qib_devs_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
Lloh12:
	adrp	x23, _qib_cpulist_count@GOTPAGE
Lloh13:
	ldr	x23, [x23, _qib_cpulist_count@GOTPAGEOFF]
	ldr	x8, [x23]
	cbnz	x8, LBB0_10
; %bb.4:
	bl	_num_online_cpus
	mov	x21, x0
	bl	_BITS_TO_LONGS
	lsl	w0, w0, #3
	ldr	w1, [x22]
	bl	_kzalloc
Lloh14:
	adrp	x8, _qib_cpulist@GOTPAGE
Lloh15:
	ldr	x8, [x8, _qib_cpulist@GOTPAGEOFF]
Lloh16:
	str	x0, [x8]
	cbz	x0, LBB0_9
; %bb.5:
	str	x21, [x23]
	b	LBB0_10
LBB0_6:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	add	sp, sp, #80
	b	_ERR_PTR
LBB0_8:
	mov	x21, x0
Lloh20:
	adrp	x0, _qib_devs_lock@GOTPAGE
Lloh21:
	ldr	x0, [x0, _qib_devs_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	neg	w8, w21
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_qib_early_err
	mov	x0, x20
	bl	_ib_dealloc_device
	mov	x0, x21
	b	LBB0_7
LBB0_9:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_qib_early_err
LBB0_10:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_qib_unit_table,4,2             ; @qib_unit_table
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_qib_devs_lock,4,2              ; @qib_devs_lock
	.comm	_qib_dev_list,4,2               ; @qib_dev_list
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not allocate unit ID: error %d\n"

	.comm	_qib_cpulist_count,8,3          ; @qib_cpulist_count
	.comm	_qib_cpulist,8,3                ; @qib_cpulist
l_.str.1:                               ; @.str.1
	.asciz	"Could not alloc cpulist info, cpu affinity might be wrong\n"

.subsections_via_symbols
