	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_update_sq_head
_nvmet_update_sq_head:                  ## @nvmet_update_sq_head
	.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, %r15
	movq	(%rdi), %rdi
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.1:
	movl	4(%rdi), %r14d
	addq	$4, %rdi
	leal	1(%r14), %eax
	cltd
	idivl	%ecx
	movl	%r14d, %esi
	callq	_cmpxchg
	movq	(%r15), %rdi
	cmpl	%r14d, %eax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	4(%rdi), %rcx
	movl	4(%rdi), %ebx
	leal	1(%rbx), %eax
	cltd
	idivl	(%rdi)
	movq	%rcx, %rdi
	movl	%ebx, %esi
	callq	_cmpxchg
	movq	(%r15), %rdi
	cmpl	%ebx, %eax
	jne	LBB0_2
LBB0_3:
	movzwl	4(%rdi), %edi
	callq	_cpu_to_le16
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nvmet_update_sq_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_update_sq_head
_nvmet_update_sq_head:                  ; @nvmet_update_sq_head
	.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
	mov	x19, x0
	ldr	x0, [x0]
	ldr	w8, [x0]
	cbz	w8, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x0, #4]!
	add	w9, w20, #1
	sdiv	w10, w9, w8
	msub	w2, w10, w8, w9
	mov	x1, x20
	bl	_cmpxchg
	mov	x8, x0
	ldr	x0, [x19]
	cmp	w8, w20
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x0]
	b	LBB0_1
LBB0_3:
	ldrh	w0, [x0, #4]
	bl	_cpu_to_le16
	ldr	x8, [x19, #8]
	str	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nvmet_update_sq_head
.subsections_via_symbols
