	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppl_validate_rdev
_ppl_validate_rdev:                     ## @ppl_validate_rdev
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_BDEVNAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	24(%rbx), %edi
	movq	_PPL_HEADER_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	sarl	$9, %eax
	subl	%eax, %edi
	jle	LBB0_2
## %bb.1:
	movq	_STRIPE_SECTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rounddown
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	movl	(%r15), %ecx
	sarl	$9, %ecx
	addl	%eax, %ecx
	movq	(%rbx), %rax
	movq	32(%rbx), %rdx
	cmpq	%rax, %rdx
	jge	LBB0_9
## %bb.4:
	movslq	%ecx, %rsi
	addq	%rsi, %rdx
	cmpq	%rax, %rdx
	jg	LBB0_10
LBB0_5:
	movq	56(%rbx), %rdi
	cmpl	$0, (%rdi)
	je	LBB0_6
LBB0_8:
	movl	%ecx, 24(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_2:
	movq	56(%rbx), %rdi
	callq	_mdname
	movl	%eax, %r15d
	movl	48(%rbx), %edi
	movq	%r14, %rsi
	callq	_bdevname
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_pr_warn
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_9:
	addq	8(%rbx), %rax
	cmpq	%rdx, %rax
	jle	LBB0_5
LBB0_10:
	movq	56(%rbx), %rdi
	callq	_mdname
	movl	%eax, %r15d
	movl	48(%rbx), %edi
	movq	%r14, %rsi
	callq	_bdevname
	leaq	L_.str.1(%rip), %rdi
LBB0_13:
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_pr_warn
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_14:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	40(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.7:
	movl	16(%rbx), %edx
	sarl	$9, %edx
	cmpl	%edx, %eax
	jge	LBB0_8
	jmp	LBB0_12
LBB0_11:
	addl	%ecx, %eax
	jle	LBB0_8
LBB0_12:
	callq	_mdname
	movl	%eax, %r15d
	movl	48(%rbx), %edi
	movq	%r14, %rsi
	callq	_bdevname
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_13
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BDEVNAME_SIZE,4,2              ## @BDEVNAME_SIZE
	.comm	_PPL_HEADER_SIZE,4,2            ## @PPL_HEADER_SIZE
	.comm	_STRIPE_SECTORS,4,2             ## @STRIPE_SECTORS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md/raid:%s: PPL space too small on %s\n"

	.comm	_ENOSPC,4,2                     ## @ENOSPC
L_.str.1:                               ## @.str.1
	.asciz	"md/raid:%s: PPL space overlaps with data on %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"md/raid:%s: PPL space overlaps with superblock on %s\n"

	.no_dead_strip	_ppl_validate_rdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppl_validate_rdev
_ppl_validate_rdev:                     ; @ppl_validate_rdev
	.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
	sub	sp, sp, #16
	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, #-40]
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	x20, x9, x8
	mov	sp, x20
	ldr	w8, [x0, #24]
Lloh8:
	adrp	x21, _PPL_HEADER_SIZE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _PPL_HEADER_SIZE@GOTPAGEOFF]
	ldr	w9, [x21]
	sub	w0, w8, w9, asr #9
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.1:
Lloh10:
	adrp	x8, _STRIPE_SECTORS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STRIPE_SECTORS@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_rounddown
	cmp	w0, #0
	b.le	LBB0_6
; %bb.2:
	ldr	w8, [x21]
	add	w8, w0, w8, asr #9
	ldr	x9, [x19, #32]
	ldr	x10, [x19]
	cmp	x9, x10
	b.ge	LBB0_7
; %bb.3:
	add	x9, x9, w8, sxtw
	cmp	x9, x10
	b.gt	LBB0_8
LBB0_4:
	ldr	x0, [x19, #56]
	ldr	w9, [x0]
	cbz	w9, LBB0_13
LBB0_5:
	mov	w0, #0
	str	w8, [x19, #24]
	b	LBB0_11
LBB0_6:
	ldr	x0, [x19, #56]
	bl	_mdname
	mov	x21, x0
	ldr	w0, [x19, #48]
	mov	x1, x20
	bl	_bdevname
	mov	x2, x0
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_warn
Lloh15:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	ldr	x11, [x19, #8]
	add	x10, x11, x10
	cmp	x10, x9
	b.le	LBB0_4
LBB0_8:
	ldr	x0, [x19, #56]
	bl	_mdname
	mov	x21, x0
	ldr	w0, [x19, #48]
	mov	x1, x20
	bl	_bdevname
	mov	x2, x0
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	mov	x1, x21
	bl	_pr_warn
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.12:
	sub	sp, x29, #32
	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
LBB0_13:
	ldr	w9, [x19, #40]
	cmp	w9, #1
	b.lt	LBB0_15
; %bb.14:
	ldr	w10, [x19, #16]
	cmp	w9, w10, asr #9
	b.ge	LBB0_5
	b	LBB0_16
LBB0_15:
	add	w9, w9, w8
	cmp	w9, #1
	b.lt	LBB0_5
LBB0_16:
	bl	_mdname
	mov	x21, x0
	ldr	w0, [x19, #48]
	mov	x1, x20
	bl	_bdevname
	mov	x2, x0
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_BDEVNAME_SIZE,4,2              ; @BDEVNAME_SIZE
	.comm	_PPL_HEADER_SIZE,4,2            ; @PPL_HEADER_SIZE
	.comm	_STRIPE_SECTORS,4,2             ; @STRIPE_SECTORS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md/raid:%s: PPL space too small on %s\n"

	.comm	_ENOSPC,4,2                     ; @ENOSPC
l_.str.1:                               ; @.str.1
	.asciz	"md/raid:%s: PPL space overlaps with data on %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"md/raid:%s: PPL space overlaps with superblock on %s\n"

	.no_dead_strip	_ppl_validate_rdev
.subsections_via_symbols
