	.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_smart
_nvmet_execute_get_log_page_smart:      ## @nvmet_execute_get_log_page_smart
	.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	_NVME_SC_INTERNAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpl	$4, (%rdi)
	jne	LBB0_8
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r14
	movq	16(%r15), %rax
	movq	(%rax), %rbx
	movq	_NVME_NSID_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%r15, %rdi
	movq	%r14, %rsi
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.3:
	callq	_nvmet_get_smart_log_all
	jmp	LBB0_5
LBB0_4:
	callq	_nvmet_get_smart_log_nsid
LBB0_5:
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	8(%r15), %rax
	movq	(%rax), %rdi
	callq	_spin_lock_irqsave
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	movq	%r14, %rsi
	callq	_put_unaligned_le64
	movq	8(%r15), %rax
	movq	(%rax), %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	$4, %ecx
	callq	_nvmet_copy_to_sgl
	movq	%rax, %rbx
LBB0_7:
	movq	%r14, %rdi
	callq	_kfree
LBB0_8:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvmet_req_complete             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_SC_INTERNAL,8,3           ## @NVME_SC_INTERNAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_NVME_NSID_ALL,4,2              ## @NVME_NSID_ALL
	.no_dead_strip	_nvmet_execute_get_log_page_smart
.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_smart
_nvmet_execute_get_log_page_smart:      ; @nvmet_execute_get_log_page_smart
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _NVME_SC_INTERNAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVME_SC_INTERNAL@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	w8, [x0]
	cmp	w8, #4
	b.ne	LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	x21, [x8]
Lloh6:
	adrp	x8, _NVME_NSID_ALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVME_NSID_ALL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	cmp	x21, x0
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_nvmet_get_smart_log_all
	mov	x21, x0
	cbnz	x0, LBB0_6
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_nvmet_get_smart_log_nsid
	mov	x21, x0
	cbnz	x0, LBB0_6
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x8, #4]
	mov	x1, x20
	bl	_put_unaligned_le64
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	w3, #4
	bl	_nvmet_copy_to_sgl
	mov	x21, x0
LBB0_6:
	mov	x0, x20
	bl	_kfree
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_nvmet_req_complete
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_SC_INTERNAL,8,3           ; @NVME_SC_INTERNAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_NVME_NSID_ALL,4,2              ; @NVME_NSID_ALL
	.no_dead_strip	_nvmet_execute_get_log_page_smart
.subsections_via_symbols
