	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function locate_attr
_locate_attr:                           ## @locate_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_init_attr
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_find_attr
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_AF_ALST@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	testl	%ecx, (%rbx)
	jne	LBB0_6
## %bb.3:
	movzbl	%r15b, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_find_attr
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_4
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_grub_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_free_attr
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_init_attr
	movq	%rbx, %rdi
	movl	%r15d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_find_attr                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_ALST,4,2                    ## @AF_ALST
	.comm	_GRUB_ERR_NONE,4,2              ## @GRUB_ERR_NONE
	.comm	_grub_errno,4,2                 ## @grub_errno
	.no_dead_strip	_locate_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function locate_attr
_locate_attr:                           ; @locate_attr
	.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, x2
	mov	x21, x1
	mov	x20, x0
	bl	_init_attr
	mov	x0, x20
	mov	x1, x19
	bl	_find_attr
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x22, _AF_ALST@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AF_ALST@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_find_attr
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20]
	b	LBB0_2
LBB0_5:
	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_6:
Lloh2:
	adrp	x8, _GRUB_ERR_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GRUB_ERR_NONE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _grub_errno@GOTPAGE
Lloh6:
	ldr	x9, [x9, _grub_errno@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
	mov	x0, x20
	bl	_free_attr
	mov	x0, x20
	mov	x1, x21
	bl	_init_attr
	mov	x0, x20
	mov	x1, x19
	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
	b	_find_attr
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_ALST,4,2                    ; @AF_ALST
	.comm	_GRUB_ERR_NONE,4,2              ; @GRUB_ERR_NONE
	.comm	_grub_errno,4,2                 ; @grub_errno
	.no_dead_strip	_locate_attr
.subsections_via_symbols
