	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_header
_read_header:                           ## @read_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	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_SEEK_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%esi, %esi
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	__EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$48, %edx
	callq	*(%rax)
	cmpl	$48, %eax
	jne	LBB0_3
## %bb.4:
	leaq	40(%r14), %rdi
	movq	_ELF_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:
	movq	(%r14), %rax
	movq	_ELF_EXECUTABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_ELF_DYNAMIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
LBB0_7:
	movq	8(%r14), %rax
	movq	_ELF_32BIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:
	movq	16(%r14), %rax
	movq	_ELF_LITTLEENDIAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	cmpl	$1, 24(%r14)
	jne	LBB0_11
## %bb.10:
	movq	32(%r14), %rcx
	movq	_ELF_X86@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_11
	jmp	LBB0_13
LBB0_3:
	testl	%eax, %eax
	js	LBB0_1
LBB0_11:
	movq	__ENOEXEC@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	__EIO,4,2                       ## @_EIO
	.comm	__ENOEXEC,4,2                   ## @_ENOEXEC
	.comm	_ELF_MAGIC,4,2                  ## @ELF_MAGIC
	.comm	_ELF_EXECUTABLE,8,3             ## @ELF_EXECUTABLE
	.comm	_ELF_DYNAMIC,8,3                ## @ELF_DYNAMIC
	.comm	_ELF_32BIT,8,3                  ## @ELF_32BIT
	.comm	_ELF_LITTLEENDIAN,8,3           ## @ELF_LITTLEENDIAN
	.comm	_ELF_X86,8,3                    ## @ELF_X86
	.no_dead_strip	_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_header
_read_header:                           ; @read_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, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x9, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	w1, #0
	blr	x8
	cbz	x0, LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, __EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, __EIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #48
	blr	x8
	cmp	w0, #48
	b.ne	LBB0_10
; %bb.3:
	add	x0, x19, #40
Lloh5:
	adrp	x8, _ELF_MAGIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ELF_MAGIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_11
; %bb.4:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _ELF_EXECUTABLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ELF_EXECUTABLE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _ELF_DYNAMIC@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ELF_DYNAMIC@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_11
; %bb.5:
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _ELF_32BIT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ELF_32BIT@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.6:
	ldr	x8, [x19, #16]
Lloh17:
	adrp	x9, _ELF_LITTLEENDIAN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ELF_LITTLEENDIAN@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.7:
	ldr	w8, [x19, #24]
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.8:
	ldr	x8, [x19, #32]
Lloh20:
	adrp	x9, _ELF_X86@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ELF_X86@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	mov	w0, #0
	b	LBB0_13
LBB0_10:
	tbnz	w0, #31, LBB0_1
LBB0_11:
Lloh23:
	adrp	x8, __ENOEXEC@GOTPAGE
Lloh24:
	ldr	x8, [x8, __ENOEXEC@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	__EIO,4,2                       ; @_EIO
	.comm	__ENOEXEC,4,2                   ; @_ENOEXEC
	.comm	_ELF_MAGIC,4,2                  ; @ELF_MAGIC
	.comm	_ELF_EXECUTABLE,8,3             ; @ELF_EXECUTABLE
	.comm	_ELF_DYNAMIC,8,3                ; @ELF_DYNAMIC
	.comm	_ELF_32BIT,8,3                  ; @ELF_32BIT
	.comm	_ELF_LITTLEENDIAN,8,3           ; @ELF_LITTLEENDIAN
	.comm	_ELF_X86,8,3                    ; @ELF_X86
	.no_dead_strip	_read_header
.subsections_via_symbols
