	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmet_bdev_ns_enable           ## -- Begin function nvmet_bdev_ns_enable
	.p2align	4, 0x90
_nvmet_bdev_ns_enable:                  ## @nvmet_bdev_ns_enable
	.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, %rbx
	movl	16(%rdi), %edi
	movq	_FMODE_READ@GOTPCREL(%rip), %rax
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_blkdev_get_by_path
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	_ENOTBLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	je	LBB0_3
## %bb.2:
	movl	16(%rbx), %r15d
	movq	(%rbx), %rdi
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_pr_err
LBB0_3:
	movq	$0, (%rbx)
	jmp	LBB0_5
LBB0_4:
	movl	(%rdi), %edi
	callq	_i_size_read
	movl	%eax, 12(%rbx)
	movq	(%rbx), %rdi
	callq	_bdev_logical_block_size
	movl	%eax, %edi
	callq	_blksize_bits
	movl	%eax, 8(%rbx)
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.comm	_ENOTBLK,4,2                    ## @ENOTBLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to open block device %s: (%ld)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmet_bdev_ns_enable           ; -- Begin function nvmet_bdev_ns_enable
	.p2align	2
_nvmet_bdev_ns_enable:                  ; @nvmet_bdev_ns_enable
	.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, _FMODE_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FMODE_READ@GOTPAGEOFF]
	ldr	w0, [x0, #16]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FMODE_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FMODE_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x2, #0
	bl	_blkdev_get_by_path
	str	x0, [x19]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_4
; %bb.1:
	bl	_PTR_ERR
	mov	x20, x0
Lloh6:
	adrp	x8, _ENOTBLK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOTBLK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w21, [x19, #16]
	ldr	x0, [x19]
	bl	_PTR_ERR
	mov	x2, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_err
LBB0_3:
	str	xzr, [x19]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x0]
	bl	_i_size_read
	str	w0, [x19, #12]
	ldr	x0, [x19]
	bl	_bdev_logical_block_size
	bl	_blksize_bits
	mov	w20, #0
	str	w0, [x19, #8]
LBB0_5:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.comm	_ENOTBLK,4,2                    ; @ENOTBLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to open block device %s: (%ld)\n"

.subsections_via_symbols
