	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_execute_get_log_page_error
_nvmet_execute_get_log_page_error:      ## @nvmet_execute_get_log_page_error
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %r13
	leaq	8(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	_NVMET_ERROR_LOG_SLOTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.1:
	movq	(%r13), %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rbx
	jmp	LBB0_4
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ebx
LBB0_4:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(,%rbx,4), %rdx
	addq	16(%r13), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	$4, %ecx
	callq	_nvmet_copy_to_sgl
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%rbx, %rbx
	movq	_NVMET_ERROR_LOG_SLOTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmoveq	%rax, %rbx
	decq	%rbx
	addl	$4, %r12d
	incq	%r14
	cmpq	%rax, %r14
	jb	LBB0_5
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvmet_req_complete             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVMET_ERROR_LOG_SLOTS,8,3      ## @NVMET_ERROR_LOG_SLOTS
	.no_dead_strip	_nvmet_execute_get_log_page_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_execute_get_log_page_error
_nvmet_execute_get_log_page_error:      ; @nvmet_execute_get_log_page_error
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x22, [x8]
	add	x20, x22, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x23, _NVMET_ERROR_LOG_SLOTS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NVMET_ERROR_LOG_SLOTS@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x24, #0
	mov	w21, #0
	ldr	x9, [x22]
	udiv	x10, x9, x8
	msub	x25, x10, x8, x9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	add	x2, x8, x25, lsl #2
	mov	x0, x19
	mov	x1, x21
	mov	w3, #4
	bl	_nvmet_copy_to_sgl
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23]
	cmp	x25, #0
	csel	x9, x8, x25, eq
	sub	x25, x9, #1
	add	w21, w21, #4
	add	x24, x24, #1
	cmp	x24, x8
	b.lo	LBB0_2
LBB0_4:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nvmet_req_complete
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NVMET_ERROR_LOG_SLOTS,8,3      ; @NVMET_ERROR_LOG_SLOTS
	.no_dead_strip	_nvmet_execute_get_log_page_error
.subsections_via_symbols
