	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_attr
_read_attr:                             ## @read_attr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	%r14, 8(%rdi)
	movb	(%r14), %r13b
	movq	_AF_ALST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rdi)
	je	LBB0_6
## %bb.1:
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	_BLK_SHR@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_grub_divmod64
	movq	%rax, %r15
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r14
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_u16at
	movslq	%eax, %r12
	addq	%r14, %r12
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	cmpq	24(%rbx), %r12
	jae	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	%r13b, (%r12)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_u32at
	cmpq	%r15, %rax
	jg	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, 8(%rbx)
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_u16at
	cltq
	addq	%rax, %r12
	cmpq	24(%rbx), %r12
	jb	LBB0_3
LBB0_6:
	movzbl	%r13b, %esi
	movq	%rbx, %rdi
	callq	_find_attr
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	24(%rbp), %r10d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r10
	pushq	16(%rbp)
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_read_data
	addq	$32, %rsp
	jmp	LBB0_10
LBB0_8:
	movq	_grub_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_grub_error
LBB0_10:
	movq	%r14, (%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_ALST,4,2                    ## @AF_ALST
	.comm	_BLK_SHR,4,2                    ## @BLK_SHR
	.comm	_grub_errno,8,3                 ## @grub_errno
	.comm	_GRUB_ERR_BAD_FS,4,2            ## @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attribute not found"

	.no_dead_strip	_read_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_attr
_read_attr:                             ; @read_attr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x7
	stp	x5, x6, [sp, #16]               ; 16-byte Folded Spill
	mov	x22, x4
	mov	x23, x3
	mov	x25, x2
	mov	x26, x1
	mov	x19, x0
	ldr	x21, [x0]
	str	x21, [x0, #8]
	ldrb	w27, [x21]
	ldr	w8, [x0, #16]
Lloh0:
	adrp	x9, _AF_ALST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_ALST@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BLK_SHR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BLK_SHR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w1, w8, w9
	mov	x0, x25
	mov	w2, #0
	bl	_grub_divmod64
	mov	x28, x0
	ldr	x20, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #4
	bl	_u16at
	add	x20, x20, w0, sxtw
	ldr	x8, [x19, #24]
	cmp	x20, x8
	b.hs	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x20]
	cmp	w8, w27
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	w1, #8
	bl	_u32at
	cmp	x0, x28
	b.gt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x20, [x19, #8]
	b	LBB0_2
LBB0_6:
	mov	x0, x19
	mov	x1, x27
	bl	_find_attr
	cbz	x0, LBB0_8
; %bb.7:
	mov	x1, x0
	str	w24, [sp]
	mov	x0, x19
	mov	x2, x26
	mov	x3, x25
	mov	x4, x23
	mov	x5, x22
	ldp	x6, x7, [sp, #16]               ; 16-byte Folded Reload
	bl	_read_data
	b	LBB0_10
LBB0_8:
Lloh6:
	adrp	x8, _grub_errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	cbnz	x0, LBB0_10
; %bb.9:
Lloh9:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_grub_error
LBB0_10:
	str	x21, [x19]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_ALST,4,2                    ; @AF_ALST
	.comm	_BLK_SHR,4,2                    ; @BLK_SHR
	.comm	_grub_errno,8,3                 ; @grub_errno
	.comm	_GRUB_ERR_BAD_FS,4,2            ; @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attribute not found"

	.no_dead_strip	_read_attr
.subsections_via_symbols
