	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ibv_get_device_list          ## -- Begin function __ibv_get_device_list
	.p2align	4, 0x90
___ibv_get_device_list:                 ## @__ibv_get_device_list
	.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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	$0, (%r14)
LBB0_2:
	movq	_count_devices@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_device_list_once@GOTPCREL(%rip), %rdi
	callq	_pthread_once
	movq	_num_devices@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	js	LBB0_8
## %bb.3:
	leal	1(%rbx), %edi
	movl	$8, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %r15
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	movq	_device_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	(,%rbx,8), %rdx
	movq	%r15, %rdi
	callq	_memcpy
LBB0_6:
	testq	%r14, %r14
	je	LBB0_11
## %bb.7:
	movl	%ebx, (%r14)
	jmp	LBB0_11
LBB0_8:
	negl	%ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	jmp	LBB0_10
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_10:
	xorl	%r15d, %r15d
LBB0_11:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_device_list_once,4,2           ## @device_list_once
	.comm	_count_devices,4,2              ## @count_devices
	.comm	_num_devices,4,2                ## @num_devices
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_device_list,8,3                ## @device_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ibv_get_device_list          ; -- Begin function __ibv_get_device_list
	.p2align	2
___ibv_get_device_list:                 ; @__ibv_get_device_list
	.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
	cbz	x0, LBB0_2
; %bb.1:
	str	wzr, [x19]
LBB0_2:
Lloh0:
	adrp	x8, _count_devices@GOTPAGE
Lloh1:
	ldr	x8, [x8, _count_devices@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _device_list_once@GOTPAGE
Lloh4:
	ldr	x0, [x0, _device_list_once@GOTPAGEOFF]
	bl	_pthread_once
Lloh5:
	adrp	x8, _num_devices@GOTPAGE
Lloh6:
	ldr	x8, [x8, _num_devices@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	tbnz	w21, #31, LBB0_8
; %bb.3:
	add	w0, w21, #1
	mov	w1, #8
	bl	_calloc
	mov	x20, x0
	cbz	x0, LBB0_9
; %bb.4:
	cbz	w21, LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _device_list@GOTPAGE
Lloh9:
	ldr	x8, [x8, _device_list@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	lsl	x2, x21, #3
	mov	x0, x20
	bl	_memcpy
LBB0_6:
	cbz	x19, LBB0_11
; %bb.7:
	str	w21, [x19]
	b	LBB0_11
LBB0_8:
	mov	x20, #0
	neg	w8, w21
	b	LBB0_10
LBB0_9:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
LBB0_10:
Lloh14:
	adrp	x9, _errno@GOTPAGE
Lloh15:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh16:
	str	w8, [x9]
LBB0_11:
	mov	x0, x20
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_device_list_once,4,2           ; @device_list_once
	.comm	_count_devices,4,2              ; @count_devices
	.comm	_num_devices,4,2                ; @num_devices
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_device_list,8,3                ; @device_list
.subsections_via_symbols
