	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function task_database_gdi_get_crc
_task_database_gdi_get_crc:             ## @task_database_gdi_get_crc
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_malloc
	movq	%rax, %r12
	movb	$0, (%rax)
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_gdi_find_track
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_RARCH_LOG
	movq	_MSG_READING_FIRST_DATA_TRACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_RARCH_LOG
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r15, %rcx
	callq	_intfstream_file_get_crc
	movl	%eax, %ebx
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.3:
	movq	(%r15), %rdx
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %ebx
	movq	_MSG_COULD_NOT_FIND_VALID_DATA_TRACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%rax, %r14
	negl	%ebx
	movl	%ebx, %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	movq	%rax, %rdx
LBB0_4:
	xorl	%eax, %eax
	callq	_RARCH_LOG
LBB0_5:
	movq	%r12, %rdi
	callq	_free
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ## @PATH_MAX_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s\n"

	.comm	_MSG_COULD_NOT_FIND_VALID_DATA_TRACK,4,2 ## @MSG_COULD_NOT_FIND_VALID_DATA_TRACK
L_.str.1:                               ## @.str.1
	.asciz	"GDI '%s' primary track: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s\n"

	.comm	_MSG_READING_FIRST_DATA_TRACK,4,2 ## @MSG_READING_FIRST_DATA_TRACK
	.comm	_SIZE_MAX,4,2                   ## @SIZE_MAX
L_.str.3:                               ## @.str.3
	.asciz	"GDI '%s' crc: %x\n"

	.no_dead_strip	_task_database_gdi_get_crc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function task_database_gdi_get_crc
_task_database_gdi_get_crc:             ; @task_database_gdi_get_crc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _PATH_MAX_LENGTH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PATH_MAX_LENGTH@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_malloc
	mov	x19, x0
	strb	wzr, [x0]
	ldr	w3, [x22]
	mov	x0, x20
	mov	w1, #1
	mov	x2, x19
	bl	_gdi_find_track
	tbnz	w0, #31, LBB0_3
; %bb.1:
	str	x19, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_RARCH_LOG
Lloh4:
	adrp	x8, _MSG_READING_FIRST_DATA_TRACK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_READING_FIRST_DATA_TRACK@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_RARCH_LOG
Lloh9:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x21
	bl	_intfstream_file_get_crc
	mov	x22, x0
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x21]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_RARCH_LOG
	b	LBB0_4
LBB0_3:
	mov	x22, x0
Lloh14:
	adrp	x8, _MSG_COULD_NOT_FIND_VALID_DATA_TRACK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_COULD_NOT_FIND_VALID_DATA_TRACK@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x20, x0
	neg	w0, w22
	bl	_strerror
	str	x0, [sp]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_RARCH_LOG
	mov	w22, #0
LBB0_4:
	mov	x0, x19
	bl	_free
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ; @PATH_MAX_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s\n"

	.comm	_MSG_COULD_NOT_FIND_VALID_DATA_TRACK,4,2 ; @MSG_COULD_NOT_FIND_VALID_DATA_TRACK
l_.str.1:                               ; @.str.1
	.asciz	"GDI '%s' primary track: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s\n"

	.comm	_MSG_READING_FIRST_DATA_TRACK,4,2 ; @MSG_READING_FIRST_DATA_TRACK
	.comm	_SIZE_MAX,4,2                   ; @SIZE_MAX
l_.str.3:                               ; @.str.3
	.asciz	"GDI '%s' crc: %x\n"

	.no_dead_strip	_task_database_gdi_get_crc
.subsections_via_symbols
