	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function valid_elf_header
_valid_elf_header:                      ## @valid_elf_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	8(%rbx), %rsi
	callq	_IS_ELF
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	(%rbx), %rax
	movq	_EI_CLASS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	_ELFCLASS32@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.2:
	movq	_EI_DATA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	_ELFDATA2MSB@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.3:
	movq	_EI_VERSION@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	_EV_CURRENT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.4:
	movq	_EI_OSABI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_ELFOSABI_STANDALONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movl	12(%rbx), %edi
	callq	_be16toh
	movq	_ET_CORE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movl	8(%rbx), %edi
	callq	_be16toh
	movq	_EM_PPC@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	sete	%r14b
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EI_CLASS,8,3                   ## @EI_CLASS
	.comm	_ELFCLASS32,8,3                 ## @ELFCLASS32
	.comm	_EI_DATA,8,3                    ## @EI_DATA
	.comm	_ELFDATA2MSB,8,3                ## @ELFDATA2MSB
	.comm	_EI_VERSION,8,3                 ## @EI_VERSION
	.comm	_EV_CURRENT,8,3                 ## @EV_CURRENT
	.comm	_EI_OSABI,8,3                   ## @EI_OSABI
	.comm	_ELFOSABI_STANDALONE,8,3        ## @ELFOSABI_STANDALONE
	.comm	_ET_CORE,8,3                    ## @ET_CORE
	.comm	_EM_PPC,8,3                     ## @EM_PPC
	.no_dead_strip	_valid_elf_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function valid_elf_header
_valid_elf_header:                      ; @valid_elf_header
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0]
	ldr	x1, [x19, #8]
	bl	_IS_ELF
	cbz	w0, LBB0_8
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _EI_CLASS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EI_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
Lloh3:
	adrp	x10, _ELFCLASS32@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ELFCLASS32@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.2:
Lloh6:
	adrp	x9, _EI_DATA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EI_DATA@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
Lloh9:
	adrp	x10, _ELFDATA2MSB@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ELFDATA2MSB@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.3:
Lloh12:
	adrp	x9, _EI_VERSION@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EI_VERSION@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
Lloh15:
	adrp	x10, _EV_CURRENT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _EV_CURRENT@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.4:
Lloh18:
	adrp	x9, _EI_OSABI@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EI_OSABI@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh21:
	adrp	x9, _ELFOSABI_STANDALONE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ELFOSABI_STANDALONE@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	ldr	w0, [x19, #12]
	bl	_be16toh
Lloh24:
	adrp	x8, _ET_CORE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ET_CORE@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [x19, #8]
	bl	_be16toh
Lloh27:
	adrp	x8, _EM_PPC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EM_PPC@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_EI_CLASS,8,3                   ; @EI_CLASS
	.comm	_ELFCLASS32,8,3                 ; @ELFCLASS32
	.comm	_EI_DATA,8,3                    ; @EI_DATA
	.comm	_ELFDATA2MSB,8,3                ; @ELFDATA2MSB
	.comm	_EI_VERSION,8,3                 ; @EI_VERSION
	.comm	_EV_CURRENT,8,3                 ; @EV_CURRENT
	.comm	_EI_OSABI,8,3                   ; @EI_OSABI
	.comm	_ELFOSABI_STANDALONE,8,3        ; @ELFOSABI_STANDALONE
	.comm	_ET_CORE,8,3                    ; @ET_CORE
	.comm	_EM_PPC,8,3                     ; @EM_PPC
	.no_dead_strip	_valid_elf_header
.subsections_via_symbols
