	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_overflow_devnum
_find_overflow_devnum:                  ## @find_overflow_devnum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_overflow_maj@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
LBB0_3:
	movq	_overflow_map@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IB_UCM_MAX_DEVICES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_find_first_zero_bit
	cmpl	(%rbx), %eax
	movl	$-1, %ebx
	cmovll	%eax, %ebx
	jmp	LBB0_4
LBB0_1:
	movq	_IB_UCM_MAX_DEVICES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_overflow_maj@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rcx
	xorl	%esi, %esi
	callq	_alloc_chrdev_region
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_overflow_maj,4,2               ## @overflow_maj
	.comm	_IB_UCM_MAX_DEVICES,4,2         ## @IB_UCM_MAX_DEVICES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"infiniband_cm"

L_.str.1:                               ## @.str.1
	.asciz	"ucm: couldn't register dynamic device number\n"

	.comm	_overflow_map,4,2               ## @overflow_map
	.no_dead_strip	_find_overflow_devnum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_overflow_devnum
_find_overflow_devnum:                  ; @find_overflow_devnum
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _overflow_maj@GOTPAGE
Lloh1:
	ldr	x8, [x8, _overflow_maj@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x20, _IB_UCM_MAX_DEVICES@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IB_UCM_MAX_DEVICES@GOTPAGEOFF]
	cbz	w8, LBB0_2
LBB0_1:
Lloh5:
	adrp	x8, _overflow_map@GOTPAGE
Lloh6:
	ldr	x8, [x8, _overflow_map@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_find_first_zero_bit
	ldr	w8, [x20]
	cmp	w0, w8
	csinv	w19, w0, wzr, lt
	b	LBB0_4
LBB0_2:
	ldr	w2, [x20]
Lloh8:
	adrp	x0, _overflow_maj@GOTPAGE
Lloh9:
	ldr	x0, [x0, _overflow_maj@GOTPAGEOFF]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	w1, #0
	bl	_alloc_chrdev_region
	cbz	w0, LBB0_1
; %bb.3:
	mov	x19, x0
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_overflow_maj,4,2               ; @overflow_maj
	.comm	_IB_UCM_MAX_DEVICES,4,2         ; @IB_UCM_MAX_DEVICES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"infiniband_cm"

l_.str.1:                               ; @.str.1
	.asciz	"ucm: couldn't register dynamic device number\n"

	.comm	_overflow_map,4,2               ; @overflow_map
	.no_dead_strip	_find_overflow_devnum
.subsections_via_symbols
