	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_elf_header
_get_elf_header:                        ## @get_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r8d
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	cmpq	$47, (%rdx)
	jg	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	__rtld_error
	jmp	LBB0_21
LBB0_3:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rax
	movq	_MAP_PREFAULT_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%edi, %edi
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %rbx
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_4
## %bb.5:
	movups	(%rbx), %xmm0
	movups	16(%rbx), %xmm1
	movups	32(%rbx), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_IS_ELF
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	(%rbx), %rax
	movq	_EI_CLASS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	_ELF_TARG_CLASS@GOTPCREL(%rip), %rdx
	leaq	L_.str.2(%rip), %rdi
	cmpq	(%rdx), %rcx
	jne	LBB0_20
## %bb.8:
	movq	_EI_DATA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	_ELF_TARG_DATA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_20
## %bb.9:
	movq	_EI_VERSION@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_EV_CURRENT@GOTPCREL(%rip), %rcx
	leaq	L_.str.3(%rip), %rdi
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.10:
	cmpq	%rax, 8(%rbx)
	jne	LBB0_20
## %bb.11:
	movq	16(%rbx), %rax
	movq	_ET_EXEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.12:
	movq	_ET_DYN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_20
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rtld_strerror
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	__rtld_error
	jmp	LBB0_21
LBB0_6:
	leaq	L_.str(%rip), %rdi
LBB0_20:
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	__rtld_error
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_munmap
	xorl	%ebx, %ebx
LBB0_21:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	24(%rbx), %rax
	movq	_ELF_TARG_MACH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.16:
	cmpl	$4, 32(%rbx)
	jne	LBB0_17
## %bb.18:
	movslq	36(%rbx), %rax
	movslq	40(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rax
	cmpq	(%r15), %rax
	jbe	LBB0_21
## %bb.19:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_20
LBB0_15:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_20
LBB0_17:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: invalid file format"

	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
	.comm	_MAP_PREFAULT_READ,4,2          ## @MAP_PREFAULT_READ
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"%s: read error: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_EI_CLASS,8,3                   ## @EI_CLASS
	.comm	_ELF_TARG_CLASS,8,3             ## @ELF_TARG_CLASS
	.comm	_EI_DATA,8,3                    ## @EI_DATA
	.comm	_ELF_TARG_DATA,8,3              ## @ELF_TARG_DATA
L_.str.2:                               ## @.str.2
	.asciz	"%s: unsupported file layout"

	.comm	_EI_VERSION,8,3                 ## @EI_VERSION
	.comm	_EV_CURRENT,8,3                 ## @EV_CURRENT
L_.str.3:                               ## @.str.3
	.asciz	"%s: unsupported file version"

	.comm	_ET_EXEC,8,3                    ## @ET_EXEC
	.comm	_ET_DYN,8,3                     ## @ET_DYN
L_.str.4:                               ## @.str.4
	.asciz	"%s: unsupported file type"

	.comm	_ELF_TARG_MACH,8,3              ## @ELF_TARG_MACH
L_.str.5:                               ## @.str.5
	.asciz	"%s: unsupported machine"

L_.str.6:                               ## @.str.6
	.asciz	"%s: invalid shared object: e_phentsize != sizeof(Elf_Phdr)"

L_.str.7:                               ## @.str.7
	.asciz	"%s: program header too large"

	.no_dead_strip	_get_elf_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_elf_header
_get_elf_header:                        ; @get_elf_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x4, x0
	cbz	x2, LBB0_3
; %bb.1:
	ldr	x8, [x2]
	cmp	x8, #47
	b.gt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_3:
Lloh2:
	adrp	x21, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x1, [x21]
Lloh4:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh6:
	adrp	x9, _MAP_PRIVATE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAP_PRIVATE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	ldr	w8, [x9]
Lloh10:
	adrp	x9, _MAP_PREFAULT_READ@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MAP_PREFAULT_READ@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, #0
	mov	w5, #0
	bl	_mmap
Lloh13:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.4:
	mov	x20, x0
	ldp	q0, q1, [x0]
	ldr	q2, [x0, #32]
	stp	q1, q2, [sp, #32]
	str	q0, [sp, #16]
	add	x0, sp, #16
	bl	_IS_ELF
	cbz	w0, LBB0_15
; %bb.5:
	ldr	x8, [x20]
Lloh16:
	adrp	x9, _EI_CLASS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EI_CLASS@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
Lloh19:
	adrp	x10, _ELF_TARG_CLASS@GOTPAGE
Lloh20:
	ldr	x10, [x10, _ELF_TARG_CLASS@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.6:
Lloh22:
	adrp	x9, _EI_DATA@GOTPAGE
Lloh23:
	ldr	x9, [x9, _EI_DATA@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
Lloh25:
	adrp	x10, _ELF_TARG_DATA@GOTPAGE
Lloh26:
	ldr	x10, [x10, _ELF_TARG_DATA@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.7:
Lloh28:
	adrp	x9, _EI_VERSION@GOTPAGE
Lloh29:
	ldr	x9, [x9, _EI_VERSION@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh31:
	adrp	x9, _EV_CURRENT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _EV_CURRENT@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.8:
	ldr	x9, [x20, #8]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.9:
	ldr	x8, [x20, #16]
Lloh34:
	adrp	x9, _ET_EXEC@GOTPAGE
Lloh35:
	ldr	x9, [x9, _ET_EXEC@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.10:
Lloh37:
	adrp	x9, _ET_DYN@GOTPAGE
Lloh38:
	ldr	x9, [x9, _ET_DYN@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.11:
Lloh40:
	adrp	x0, l_.str.4@PAGE
Lloh41:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_12:
Lloh42:
	adrp	x8, _errno@GOTPAGE
Lloh43:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	bl	_rtld_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh45:
	adrp	x0, l_.str.1@PAGE
Lloh46:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_13:
	mov	x1, x19
	bl	__rtld_error
	b	LBB0_18
LBB0_14:
Lloh47:
	adrp	x0, l_.str.2@PAGE
Lloh48:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_15:
Lloh49:
	adrp	x0, l_.str@PAGE
Lloh50:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh51:
	adrp	x0, l_.str.3@PAGE
Lloh52:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_17:
	mov	x1, x19
	bl	__rtld_error
	ldr	x1, [x21]
	mov	x0, x20
	bl	_munmap
LBB0_18:
	mov	x20, #0
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
	ldr	x8, [x20, #24]
Lloh53:
	adrp	x9, _ELF_TARG_MACH@GOTPAGE
Lloh54:
	ldr	x9, [x9, _ELF_TARG_MACH@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.21:
	ldr	w8, [x20, #32]
	cmp	w8, #4
	b.ne	LBB0_25
; %bb.22:
	ldpsw	x8, x9, [x20, #36]
	add	x8, x8, x9, lsl #2
	ldr	x9, [x21]
	cmp	x8, x9
	b.ls	LBB0_19
; %bb.23:
Lloh56:
	adrp	x0, l_.str.7@PAGE
Lloh57:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_17
LBB0_24:
Lloh58:
	adrp	x0, l_.str.5@PAGE
Lloh59:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_17
LBB0_25:
Lloh60:
	adrp	x0, l_.str.6@PAGE
Lloh61:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: invalid file format"

	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
	.comm	_MAP_PREFAULT_READ,4,2          ; @MAP_PREFAULT_READ
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"%s: read error: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_EI_CLASS,8,3                   ; @EI_CLASS
	.comm	_ELF_TARG_CLASS,8,3             ; @ELF_TARG_CLASS
	.comm	_EI_DATA,8,3                    ; @EI_DATA
	.comm	_ELF_TARG_DATA,8,3              ; @ELF_TARG_DATA
l_.str.2:                               ; @.str.2
	.asciz	"%s: unsupported file layout"

	.comm	_EI_VERSION,8,3                 ; @EI_VERSION
	.comm	_EV_CURRENT,8,3                 ; @EV_CURRENT
l_.str.3:                               ; @.str.3
	.asciz	"%s: unsupported file version"

	.comm	_ET_EXEC,8,3                    ; @ET_EXEC
	.comm	_ET_DYN,8,3                     ; @ET_DYN
l_.str.4:                               ; @.str.4
	.asciz	"%s: unsupported file type"

	.comm	_ELF_TARG_MACH,8,3              ; @ELF_TARG_MACH
l_.str.5:                               ; @.str.5
	.asciz	"%s: unsupported machine"

l_.str.6:                               ; @.str.6
	.asciz	"%s: invalid shared object: e_phentsize != sizeof(Elf_Phdr)"

l_.str.7:                               ; @.str.7
	.asciz	"%s: program header too large"

	.no_dead_strip	_get_elf_header
.subsections_via_symbols
