	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ub_next_lock
_ub_next_lock:                          ## @ub_next_lock
	.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_qlockv@GOTPCREL(%rip), %rdx
	movq	_ub_qlock_next@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	leaq	(,%rax,4), %rbx
	incq	%rax
	movq	_UB_QLOCK_NUM@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rax, %rdi
	orq	%rsi, %rdi
	addq	(%rdx), %rbx
	shrq	$32, %rdi
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	movq	%rdx, (%rcx)
	movq	_ub_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ub_lock,4,2                    ## @ub_lock
	.comm	_ub_qlockv,8,3                  ## @ub_qlockv
	.comm	_ub_qlock_next,8,3              ## @ub_qlock_next
	.comm	_UB_QLOCK_NUM,8,3               ## @UB_QLOCK_NUM
	.no_dead_strip	_ub_next_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ub_next_lock
_ub_next_lock:                          ; @ub_next_lock
	.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	x19, _ub_lock@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ub_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _ub_qlockv@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ub_qlockv@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _ub_qlock_next@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ub_qlock_next@GOTPAGEOFF]
	ldr	x10, [x9]
	add	x20, x8, x10, lsl #2
	add	x8, x10, #1
Lloh7:
	adrp	x10, _UB_QLOCK_NUM@GOTPAGE
Lloh8:
	ldr	x10, [x10, _UB_QLOCK_NUM@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	udiv	x11, x8, x10
	msub	x8, x11, x10, x8
	str	x8, [x9]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ub_lock,4,2                    ; @ub_lock
	.comm	_ub_qlockv,8,3                  ; @ub_qlockv
	.comm	_ub_qlock_next,8,3              ; @ub_qlock_next
	.comm	_UB_QLOCK_NUM,8,3               ; @UB_QLOCK_NUM
	.no_dead_strip	_ub_next_lock
.subsections_via_symbols
