	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_magicfind                 ## -- Begin function file_magicfind
	.p2align	4, 0x90
_file_magicfind:                        ## @file_magicfind
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	8(%rax), %rcx
	movq	16(%rcx), %r15
	movl	$-1, %eax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %r15
	je	LBB0_13
## %bb.1:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_FILE_NAME@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %r15
	cmpq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_4
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	(%r15), %r13
	testq	%r13, %r13
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%rbx
	addq	$24, %r14
	cmpq	%rbx, %r13
	je	LBB0_3
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rax
	cmpq	(%r12), %rax
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	16(%r14), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.8:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, 8(%rdx)
	leaq	1(%rbx), %rax
	cmpq	%rax, %r13
	cmovaq	%r13, %rax
	addq	$32, %r14
	movq	%rbx, %rcx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rcx
	cmpq	%r13, %rcx
	jae	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, (%r14)
	leaq	24(%r14), %r14
	jne	LBB0_9
	jmp	LBB0_12
LBB0_10:
	movq	%rax, %rcx
LBB0_12:
	subq	%rbx, %rcx
	movq	%rcx, (%rdx)
	xorl	%eax, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$-1, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_FILE_NAME,8,3                  ## @FILE_NAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_magicfind                 ; -- Begin function file_magicfind
	.p2align	2
_file_magicfind:                        ; @file_magicfind
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0]
	ldr	x24, [x8, #8]
	ldr	x25, [x24, #16]
	cmp	x25, x24
	b.eq	LBB0_11
; %bb.1:
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x26, _FILE_NAME@GOTPAGE
Lloh1:
	ldr	x26, [x26, _FILE_NAME@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x25, [x25, #16]
	cmp	x25, x24
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x22, [x25]
	cbz	x22, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	ldr	x8, [x25, #8]
	add	x23, x8, #32
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x21, x21, #1
	add	x23, x23, #24
	cmp	x22, x21
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x8, [x23, #-32]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldur	w0, [x23, #-16]
	mov	x1, x20
	bl	_strcmp
	cbnz	x0, LBB0_5
; %bb.8:
	sub	x8, x23, #32
	str	x8, [x19, #8]
	add	x8, x21, #1
	cmp	x22, x8
	csinc	x8, x22, x21, hi
	mov	x9, x21
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x9, #1
	cmp	x9, x22
	b.hs	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x10, [x23], #24
	cbnz	x10, LBB0_9
	b	LBB0_13
LBB0_11:
	mov	w0, #-1
	b	LBB0_14
LBB0_12:
	mov	x9, x8
LBB0_13:
	mov	w0, #0
	sub	x8, x9, x21
	str	x8, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FILE_NAME,8,3                  ; @FILE_NAME
.subsections_via_symbols
