	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_scan_ns_list
_nvme_scan_ns_list:                     ## @nvme_scan_ns_list
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_DIV_ROUND_UP_ULL
	movl	%eax, %r14d
	movq	_NVME_IDENTIFY_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rax, %r15
	movl	$0, %r13d
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_nvme_identify_ns_list
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	$1024, %esi                     ## imm = 0x400
	callq	_min
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	%r14d, %r13d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%r12
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	$1024, %esi                     ## imm = 0x400
	callq	_min
	movl	%eax, %eax
	cmpq	%rax, %r12
	jae	LBB0_13
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	movl	(%r15,%r12,4), %edi
	callq	_le32_to_cpu
	testl	%eax, %eax
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nvme_validate_ns
	incl	%r13d
	cmpl	%r14d, %r13d
	jb	LBB0_8
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=3
	incl	%r13d
	cmpl	%r13d, %r14d
	je	LBB0_11
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_nvme_find_get_ns
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_nvme_ns_remove
	movq	%r15, %rdi
	callq	_nvme_put_ns
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %r14d                ## 4-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	subl	%r12d, -44(%rbp)                ## 4-byte Folded Spill
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	incl	%r12d
	cmpl	%r14d, %r12d
	jne	LBB0_3
LBB0_15:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_nvme_remove_invalid_namespaces
	xorl	%ebx, %ebx
LBB0_16:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_17
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_IDENTIFY_DATA_SIZE,4,2    ## @NVME_IDENTIFY_DATA_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_nvme_scan_ns_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_scan_ns_list
_nvme_scan_ns_list:                     ; @nvme_scan_ns_list
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #1024
	bl	_DIV_ROUND_UP_ULL
	mov	x22, x0
Lloh0:
	adrp	x8, _NVME_IDENTIFY_DATA_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVME_IDENTIFY_DATA_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_17
; %bb.1:
	mov	x20, x0
	mov	w23, #0
	cbz	w22, LBB0_15
; %bb.2:
	mov	w26, #0
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	bl	_nvme_identify_ns_list
	cbnz	w0, LBB0_19
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	w1, #1024
	bl	_min
	cbz	w0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x23, x24
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x27, x27, #1
	mov	x0, x21
	mov	w1, #1024
	bl	_min
	cmp	x27, w0, uxtw
	b.hs	LBB0_14
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	ldr	w0, [x20, x27, lsl #2]
	bl	_le32_to_cpu
	cbz	w0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x24, x0
	mov	x0, x19
	mov	x1, x24
	bl	_nvme_validate_ns
	add	w23, w23, #1
	cmp	w23, w24
	b.lo	LBB0_11
	b	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=3
	add	w23, w23, #1
	cmp	w24, w23
	b.eq	LBB0_6
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x19
	mov	x1, x23
	bl	_nvme_find_get_ns
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	mov	x25, x0
	bl	_nvme_ns_remove
	mov	x0, x25
	bl	_nvme_put_ns
	b	LBB0_10
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w27, #0
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w21, w21, w27
	add	w26, w26, #1
	cmp	w26, w22
	b.ne	LBB0_3
LBB0_15:
	mov	x0, x19
	mov	x1, x23
	bl	_nvme_remove_invalid_namespaces
	mov	w24, #0
LBB0_16:
	mov	x0, x20
	bl	_kfree
	b	LBB0_18
LBB0_17:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_18:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	mov	x24, x0
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_IDENTIFY_DATA_SIZE,4,2    ; @NVME_IDENTIFY_DATA_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_nvme_scan_ns_list
.subsections_via_symbols
