	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_afs_validate_sblock
_grub_afs_validate_sblock:              ## @grub_afs_validate_sblock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_grub_afs_to_cpu32
	movq	_GRUB_AFS_SBLOCK_MAGIC1@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	movl	4(%rbx), %edi
	callq	_grub_afs_to_cpu32
	movl	%eax, 4(%rbx)
	movl	8(%rbx), %edi
	callq	_grub_afs_to_cpu32
	movl	%eax, 8(%rbx)
	movl	12(%rbx), %edi
	callq	_grub_afs_to_cpu32
	movl	%eax, 12(%rbx)
	movl	16(%rbx), %edi
	callq	_grub_afs_to_cpu32
	movl	%eax, 16(%rbx)
	movl	20(%rbx), %edi
	callq	_grub_afs_to_cpu64
	movl	%eax, 20(%rbx)
	movl	24(%rbx), %edi
	callq	_grub_afs_to_cpu64
	movl	%eax, 24(%rbx)
	movl	28(%rbx), %edi
	callq	_grub_afs_to_cpu32
	movl	%eax, 28(%rbx)
	movl	32(%rbx), %edi
	callq	_grub_afs_to_cpu32
	movl	%eax, 32(%rbx)
	movl	36(%rbx), %edi
	callq	_grub_afs_to_cpu32
	movl	%eax, 36(%rbx)
	movl	40(%rbx), %edi
	callq	_grub_afs_to_cpu32
	movl	%eax, 40(%rbx)
	movl	32(%rbx), %edi
	callq	_grub_afs_to_cpu32
	movl	%eax, 32(%rbx)
	movl	44(%rbx), %edi
	callq	_grub_afs_to_cpu32
	movl	%eax, 44(%rbx)
	movslq	4(%rbx), %rax
	movq	_GRUB_AFS_SBLOCK_MAGIC2@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_10
## %bb.2:
	movslq	8(%rbx), %rax
	movq	_GRUB_AFS_SBLOCK_MAGIC3@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_10
## %bb.3:
	movl	12(%rbx), %eax
	movl	$1, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	cmpl	16(%rbx), %esi
	jne	LBB0_10
## %bb.4:
	movl	24(%rbx), %edx
	cmpl	%edx, 20(%rbx)
	jg	LBB0_10
## %bb.5:
	cmpl	%esi, 28(%rbx)
	jne	LBB0_10
## %bb.6:
	movb	36(%rbx), %cl
	movl	$1, %edi
	shll	%cl, %edi
	movl	40(%rbx), %r8d
	movl	%r8d, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	cmpl	%esi, %edi
	jne	LBB0_10
## %bb.7:
	imull	32(%rbx), %r8d
	cmpl	%edx, %r8d
	jl	LBB0_10
## %bb.8:
	movl	52(%rbx), %edi
	callq	_grub_afs_to_cpu16
	movslq	44(%rbx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_10
## %bb.9:
	movl	48(%rbx), %edi
	callq	_grub_afs_to_cpu32
	movslq	44(%rbx), %rcx
	xorl	%r14d, %r14d
	cmpq	%rcx, %rax
	setle	%r14b
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_AFS_SBLOCK_MAGIC1,8,3     ## @GRUB_AFS_SBLOCK_MAGIC1
	.comm	_GRUB_AFS_SBLOCK_MAGIC2,8,3     ## @GRUB_AFS_SBLOCK_MAGIC2
	.comm	_GRUB_AFS_SBLOCK_MAGIC3,8,3     ## @GRUB_AFS_SBLOCK_MAGIC3
	.no_dead_strip	_grub_afs_validate_sblock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_afs_validate_sblock
_grub_afs_validate_sblock:              ; @grub_afs_validate_sblock
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
	bl	_grub_afs_to_cpu32
Lloh0:
	adrp	x8, _GRUB_AFS_SBLOCK_MAGIC1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRUB_AFS_SBLOCK_MAGIC1@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_grub_afs_to_cpu32
	str	w0, [x19, #4]
	ldr	w0, [x19, #8]
	bl	_grub_afs_to_cpu32
	str	w0, [x19, #8]
	ldr	w0, [x19, #12]
	bl	_grub_afs_to_cpu32
	str	w0, [x19, #12]
	ldr	w0, [x19, #16]
	bl	_grub_afs_to_cpu32
	str	w0, [x19, #16]
	ldr	w0, [x19, #20]
	bl	_grub_afs_to_cpu64
	str	w0, [x19, #20]
	ldr	w0, [x19, #24]
	bl	_grub_afs_to_cpu64
	str	w0, [x19, #24]
	ldr	w0, [x19, #28]
	bl	_grub_afs_to_cpu32
	str	w0, [x19, #28]
	ldr	w0, [x19, #32]
	bl	_grub_afs_to_cpu32
	str	w0, [x19, #32]
	ldr	w0, [x19, #36]
	bl	_grub_afs_to_cpu32
	str	w0, [x19, #36]
	ldr	w0, [x19, #40]
	bl	_grub_afs_to_cpu32
	str	w0, [x19, #40]
	ldr	w0, [x19, #32]
	bl	_grub_afs_to_cpu32
	str	w0, [x19, #32]
	ldr	w0, [x19, #44]
	bl	_grub_afs_to_cpu32
	str	w0, [x19, #44]
	ldrsw	x8, [x19, #4]
Lloh3:
	adrp	x9, _GRUB_AFS_SBLOCK_MAGIC2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GRUB_AFS_SBLOCK_MAGIC2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.2:
	ldrsw	x8, [x19, #8]
Lloh6:
	adrp	x9, _GRUB_AFS_SBLOCK_MAGIC3@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GRUB_AFS_SBLOCK_MAGIC3@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.3:
	mov	w9, #1
	ldp	w8, w11, [x19, #12]
	lsl	w10, w9, w8
	cmp	w10, w11
	b.ne	LBB0_10
; %bb.4:
	ldp	w11, w9, [x19, #20]
	cmp	w11, w9
	b.gt	LBB0_10
; %bb.5:
	ldr	w11, [x19, #28]
	cmp	w11, w10
	b.ne	LBB0_10
; %bb.6:
	mov	w11, #1
	ldp	w12, w10, [x19, #36]
	lsl	w11, w11, w12
	lsl	w8, w10, w8
	cmp	w11, w8
	b.ne	LBB0_10
; %bb.7:
	ldr	w8, [x19, #32]
	mul	w8, w8, w10
	cmp	w8, w9
	b.lt	LBB0_10
; %bb.8:
	ldr	w0, [x19, #52]
	bl	_grub_afs_to_cpu16
	ldrsw	x8, [x19, #44]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
	ldr	w0, [x19, #48]
	bl	_grub_afs_to_cpu32
	ldrsw	x8, [x19, #44]
	cmp	x0, x8
	cset	w0, le
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_AFS_SBLOCK_MAGIC1,8,3     ; @GRUB_AFS_SBLOCK_MAGIC1
	.comm	_GRUB_AFS_SBLOCK_MAGIC2,8,3     ; @GRUB_AFS_SBLOCK_MAGIC2
	.comm	_GRUB_AFS_SBLOCK_MAGIC3,8,3     ; @GRUB_AFS_SBLOCK_MAGIC3
	.no_dead_strip	_grub_afs_validate_sblock
.subsections_via_symbols
