	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_metadata_dev
_parse_metadata_dev:                    ## @parse_metadata_dev
	.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	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BDEVNAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_at_least_one_arg
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	8(%r14), %r13d
	movq	%rbx, %rdi
	callq	_dm_shift_arg
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%r13d, %edi
	movl	%eax, %esi
	movq	%r14, %rcx
	callq	_dm_get_device
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r12)
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	movq	(%r14), %rdi
	callq	_get_dev_size
	movq	_DM_CACHE_METADATA_MAX_SECTORS_WARNING@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jle	LBB0_6
## %bb.5:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_bdevname
	movq	_THIN_METADATA_MAX_SECTORS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_DMWARN
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BDEVNAME_SIZE,4,2              ## @BDEVNAME_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error opening metadata device"

	.comm	_DM_CACHE_METADATA_MAX_SECTORS_WARNING,8,3 ## @DM_CACHE_METADATA_MAX_SECTORS_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"Metadata device %s is larger than %u sectors: excess space will not be used."

	.comm	_THIN_METADATA_MAX_SECTORS,4,2  ## @THIN_METADATA_MAX_SECTORS
	.no_dead_strip	_parse_metadata_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_metadata_dev
_parse_metadata_dev:                    ; @parse_metadata_dev
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _BDEVNAME_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BDEVNAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	mov	x0, x1
	mov	x1, x2
	bl	_at_least_one_arg
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w23, [x19, #8]
	mov	x0, x22
	bl	_dm_shift_arg
	mov	x1, x0
Lloh8:
	adrp	x8, _FMODE_READ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FMODE_READ@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _FMODE_WRITE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FMODE_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x23
	mov	x3, x19
	bl	_dm_get_device
	cbz	w0, LBB0_4
; %bb.2:
Lloh14:
	adrp	x8, l_.str@PAGE
Lloh15:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x20]
	b	LBB0_7
LBB0_3:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
	ldr	x0, [x19]
	bl	_get_dev_size
Lloh19:
	adrp	x8, _DM_CACHE_METADATA_MAX_SECTORS_WARNING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DM_CACHE_METADATA_MAX_SECTORS_WARNING@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_6
; %bb.5:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_bdevname
	mov	x1, x0
Lloh22:
	adrp	x8, _THIN_METADATA_MAX_SECTORS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _THIN_METADATA_MAX_SECTORS@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DMWARN
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_BDEVNAME_SIZE,4,2              ; @BDEVNAME_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error opening metadata device"

	.comm	_DM_CACHE_METADATA_MAX_SECTORS_WARNING,8,3 ; @DM_CACHE_METADATA_MAX_SECTORS_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"Metadata device %s is larger than %u sectors: excess space will not be used."

	.comm	_THIN_METADATA_MAX_SECTORS,4,2  ; @THIN_METADATA_MAX_SECTORS
	.no_dead_strip	_parse_metadata_dev
.subsections_via_symbols
