	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_validate_desktop_file          ## -- Begin function validate_desktop_file
	.p2align	4, 0x90
_validate_desktop_file:                 ## @validate_desktop_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.2:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$1, %eax
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movq	%rdi, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_execlp
	jmp	LBB0_6
LBB0_4:
	movq	_WUNTRACED@GOTPCREL(%rip), %rcx
	movq	_WCONTINUED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	leaq	-12(%rbp), %rsi
	movl	%eax, %edi
	callq	_waitpid
	movl	-12(%rbp), %edi
	callq	_WIFEXITED
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	-12(%rbp), %edi
	callq	_WEXITSTATUS
	jmp	LBB0_7
LBB0_6:
	movl	$-1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"desktop-file-validate"

	.comm	_WUNTRACED,4,2                  ## @WUNTRACED
	.comm	_WCONTINUED,4,2                 ## @WCONTINUED
L_str:                                  ## @str
	.asciz	"could not fork! "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_validate_desktop_file          ; -- Begin function validate_desktop_file
	.p2align	2
_validate_desktop_file:                 ; @validate_desktop_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_fork
	cbz	w0, LBB0_3
; %bb.1:
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #1
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x0
	mov	x2, x19
	mov	x3, #0
	bl	_execlp
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x8, _WUNTRACED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WUNTRACED@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _WCONTINUED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WCONTINUED@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x1, sp, #12
	bl	_waitpid
	ldr	w0, [sp, #12]
	bl	_WIFEXITED
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [sp, #12]
	bl	_WEXITSTATUS
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"desktop-file-validate"

	.comm	_WUNTRACED,4,2                  ; @WUNTRACED
	.comm	_WCONTINUED,4,2                 ; @WCONTINUED
l_str:                                  ; @str
	.asciz	"could not fork! "

.subsections_via_symbols
