	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_jfs_find_file
_grub_jfs_find_file:                    ## @grub_jfs_find_file
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_grub_strlen
	movq	%rax, %rdi
	callq	_grub_malloc
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_grub_strlen
	leaq	1(%rax), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_grub_strncpy
	movq	_GRUB_JFS_AGGR_INODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r15, %rdx
	callq	_grub_jfs_read_inode
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	%r14, %rdi
LBB0_21:
	callq	_grub_free
	movq	_grub_errno@GOTPCREL(%rip), %rax
LBB0_22:
	movq	(%rax), %rax
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movb	(%r14), %al
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$47, %al
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_3
## %bb.5:
	movq	%r14, %rdi
LBB0_6:
	callq	_grub_free
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_7:
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_grub_strchr
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	cmpb	$47, (%rax)
	jne	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movb	$0, (%rax)
	leaq	1(%rax), %r13
	cmpb	$47, 1(%rax)
	movq	%r13, %rax
	je	LBB0_11
	jmp	LBB0_12
LBB0_8:
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_10:
	movq	%rax, %r13
LBB0_12:
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_grub_jfs_opendir
	testq	%rax, %rax
	je	LBB0_1
## %bb.13:
	movq	%rax, %r12
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
LBB0_33:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	%rbx, %r14
	movq	%r13, %rbx
	movq	_GRUB_ERR_OUT_OF_RANGE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_33 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_grub_strlen
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	%r12, %rdi
	callq	_grub_jfs_getent
	cmpq	(%r13), %rax
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	4(%r12), %esi
	movq	%r14, %rdi
	callq	_grub_strcmp
	testl	%eax, %eax
	jne	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_33 Depth=1
	movl	(%r12), %r13d
	movl	4(%r15), %edi
	callq	_grub_le_to_cpu32
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_grub_jfs_closedir
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_grub_jfs_read_inode
	testq	%rax, %rax
	jne	LBB0_19
## %bb.24:                              ##   in Loop: Header=BB0_33 Depth=1
	movl	(%r15), %edi
	callq	_grub_le_to_cpu32
	movq	_GRUB_JFS_FILETYPE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_GRUB_JFS_FILETYPE_LNK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_grub_jfs_lookup_symlink
	movq	_grub_errno@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_33 Depth=1
	testq	%rbx, %rbx
	je	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_grub_strchr
	testq	%rax, %rax
	je	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	%rax, %r13
	movb	$0, (%rax)
	incq	%r13
	jmp	LBB0_32
LBB0_30:                                ##   in Loop: Header=BB0_33 Depth=1
	xorl	%r13d, %r13d
LBB0_32:                                ##   in Loop: Header=BB0_33 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_grub_jfs_opendir
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_33
	jmp	LBB0_1
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_grub_free
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_28:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_19:
	xorl	%r12d, %r12d
LBB0_20:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_grub_jfs_closedir
	movq	_GRUB_ERR_FILE_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_grub_error
	movq	%rbx, %rdi
	jmp	LBB0_21
LBB0_26:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_JFS_AGGR_INODE,4,2        ## @GRUB_JFS_AGGR_INODE
	.comm	_grub_errno,8,3                 ## @grub_errno
	.comm	_GRUB_ERR_NONE,8,3              ## @GRUB_ERR_NONE
	.comm	_GRUB_ERR_OUT_OF_RANGE,8,3      ## @GRUB_ERR_OUT_OF_RANGE
	.comm	_GRUB_JFS_FILETYPE_MASK,4,2     ## @GRUB_JFS_FILETYPE_MASK
	.comm	_GRUB_JFS_FILETYPE_LNK,4,2      ## @GRUB_JFS_FILETYPE_LNK
	.comm	_GRUB_ERR_FILE_NOT_FOUND,4,2    ## @GRUB_ERR_FILE_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file not found"

	.no_dead_strip	_grub_jfs_find_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_jfs_find_file
_grub_jfs_find_file:                    ; @grub_jfs_find_file
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_grub_strlen
	bl	_grub_malloc
	mov	x19, x0
	mov	x0, x21
	bl	_grub_strlen
	add	x2, x0, #1
	mov	x0, x19
	mov	x1, x21
	bl	_grub_strncpy
Lloh0:
	adrp	x8, _GRUB_JFS_AGGR_INODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRUB_JFS_AGGR_INODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x20
	bl	_grub_jfs_read_inode
	cbz	x0, LBB0_4
LBB0_1:
	mov	x0, x19
	bl	_grub_free
Lloh3:
	adrp	x8, _grub_errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
LBB0_2:
	ldr	x0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldrb	w8, [x19]
	mov	x21, x19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #47
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x21, #1]!
	cbnz	w8, LBB0_5
LBB0_7:
	mov	x0, x19
	bl	_grub_free
	mov	x0, #0
	b	LBB0_3
LBB0_8:
	mov	x0, x21
	mov	w1, #47
	bl	_grub_strchr
	mov	x22, x0
	cbz	x0, LBB0_11
; %bb.9:
	ldrb	w8, [x22]
	cmp	w8, #47
	b.ne	LBB0_11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	strb	wzr, [x22]
	ldrb	w8, [x22, #1]!
	cmp	w8, #47
	b.eq	LBB0_10
LBB0_11:
	mov	x0, x20
	mov	x1, x20
	bl	_grub_jfs_opendir
	cbz	x0, LBB0_1
; %bb.12:
	mov	x23, x0
Lloh5:
	adrp	x26, _GRUB_ERR_OUT_OF_RANGE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _GRUB_ERR_OUT_OF_RANGE@GOTPAGEOFF]
Lloh7:
	adrp	x27, _GRUB_JFS_FILETYPE_MASK@GOTPAGE
Lloh8:
	ldr	x27, [x27, _GRUB_JFS_FILETYPE_MASK@GOTPAGEOFF]
Lloh9:
	adrp	x28, _GRUB_JFS_FILETYPE_LNK@GOTPAGE
Lloh10:
	ldr	x28, [x28, _GRUB_JFS_FILETYPE_LNK@GOTPAGEOFF]
Lloh11:
	adrp	x25, _grub_errno@GOTPAGE
Lloh12:
	ldr	x25, [x25, _grub_errno@GOTPAGEOFF]
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	mov	x24, x21
	mov	x21, x22
LBB0_14:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	bl	_grub_strlen
	cbz	x0, LBB0_24
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x23
	bl	_grub_jfs_getent
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_26
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	w1, [x23, #4]
	mov	x0, x24
	bl	_grub_strcmp
	cbnz	w0, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w24, [x23]
	ldr	w0, [x20, #4]
	bl	_grub_le_to_cpu32
	mov	x22, x0
	mov	x0, x23
	bl	_grub_jfs_closedir
	mov	x0, x20
	mov	x1, x24
	mov	x2, x20
	bl	_grub_jfs_read_inode
	cbnz	x0, LBB0_25
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x20]
	bl	_grub_le_to_cpu32
	ldr	w8, [x27]
	and	w8, w8, w0
	ldr	w9, [x28]
	cmp	w8, w9
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_grub_jfs_lookup_symlink
	ldr	x8, [x25]
	cbnz	x8, LBB0_27
LBB0_20:                                ;   in Loop: Header=BB0_13 Depth=1
	cbz	x21, LBB0_7
; %bb.21:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x21
	mov	w1, #47
	bl	_grub_strchr
	mov	x22, x0
	cbz	x0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_13 Depth=1
	strb	wzr, [x22], #1
LBB0_23:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	mov	x1, x20
	bl	_grub_jfs_opendir
	mov	x23, x0
	cbnz	x0, LBB0_13
	b	LBB0_27
LBB0_24:
	mov	x0, x19
	bl	_grub_free
Lloh13:
	adrp	x8, _GRUB_ERR_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GRUB_ERR_NONE@GOTPAGEOFF]
	b	LBB0_2
LBB0_25:
	mov	x23, #0
LBB0_26:
	mov	x0, x23
	bl	_grub_jfs_closedir
Lloh15:
	adrp	x8, _GRUB_ERR_FILE_NOT_FOUND@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GRUB_ERR_FILE_NOT_FOUND@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_grub_error
LBB0_27:
	mov	x0, x19
	bl	_grub_free
	ldr	x0, [x25]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_JFS_AGGR_INODE,4,2        ; @GRUB_JFS_AGGR_INODE
	.comm	_grub_errno,8,3                 ; @grub_errno
	.comm	_GRUB_ERR_NONE,8,3              ; @GRUB_ERR_NONE
	.comm	_GRUB_ERR_OUT_OF_RANGE,8,3      ; @GRUB_ERR_OUT_OF_RANGE
	.comm	_GRUB_JFS_FILETYPE_MASK,4,2     ; @GRUB_JFS_FILETYPE_MASK
	.comm	_GRUB_JFS_FILETYPE_LNK,4,2      ; @GRUB_JFS_FILETYPE_LNK
	.comm	_GRUB_ERR_FILE_NOT_FOUND,4,2    ; @GRUB_ERR_FILE_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file not found"

	.no_dead_strip	_grub_jfs_find_file
.subsections_via_symbols
