	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ub_id_get
_ub_id_get:                             ## @ub_id_get
	.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	_ub_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_UB_MAX_HOSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$-1, %ebx
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	_ub_hostv@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rdx,%rcx,4)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movl	$1, (%rdx,%rcx,4)
	movl	%ecx, %ebx
LBB0_5:
	movq	_ub_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ub_lock,4,2                    ## @ub_lock
	.comm	_UB_MAX_HOSTS,4,2               ## @UB_MAX_HOSTS
	.comm	_ub_hostv,8,3                   ## @ub_hostv
	.no_dead_strip	_ub_id_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ub_id_get
_ub_id_get:                             ; @ub_id_get
	.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	x0, _ub_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ub_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _UB_MAX_HOSTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UB_MAX_HOSTS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, #0
Lloh5:
	adrp	x9, _ub_hostv@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ub_hostv@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x19, lsl #2]
	cbz	w10, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x19, #1
	cmp	x8, x19
	b.ne	LBB0_2
LBB0_4:
	mov	w19, #-1
	b	LBB0_6
LBB0_5:
	mov	w8, #1
	str	w8, [x9, x19, lsl #2]
LBB0_6:
Lloh8:
	adrp	x0, _ub_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _ub_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ub_lock,4,2                    ; @ub_lock
	.comm	_UB_MAX_HOSTS,4,2               ; @UB_MAX_HOSTS
	.comm	_ub_hostv,8,3                   ; @ub_hostv
	.no_dead_strip	_ub_id_get
.subsections_via_symbols
