	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EI_NIDENT@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	cmpl	$2, %r15d
	je	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	(%r13), %ebx
LBB0_2:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %r15d
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_fread
	cmpl	(%r13), %eax
	jne	LBB0_3
## %bb.4:
	movq	_ELFMAG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_SELFMAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_23
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_23
LBB0_6:
	movq	_EI_CLASS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	(%r12,%rax), %al
	cmpb	$-125, %al
	je	LBB0_7
## %bb.8:
	cmpb	$-126, %al
	jne	LBB0_25
## %bb.9:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_10
LBB0_7:
	leaq	L_str.23(%rip), %rdi
LBB0_10:
	callq	_puts
	movq	_EI_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	(%r12,%rax), %al
	cmpb	$-127, %al
	je	LBB0_11
## %bb.12:
	cmpb	$-128, %al
	jne	LBB0_25
## %bb.13:
	leaq	L_str.16(%rip), %rdi
	jmp	LBB0_14
LBB0_11:
	leaq	L_str.22(%rip), %rdi
LBB0_14:
	callq	_puts
	leaq	L_str.17(%rip), %rdi
	callq	_puts
	movw	$258, -56(%rbp)                 ## imm = 0x102
	leaq	L_.str.8(%rip), %rsi
	leaq	-56(%rbp), %rdi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	leaq	L_.str.10(%rip), %rsi
	leaq	-56(%rbp), %rdi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_25
## %bb.17:
	leaq	L_str.18(%rip), %rdi
	jmp	LBB0_18
LBB0_15:
	leaq	L_str.21(%rip), %rdi
LBB0_18:
	callq	_puts
	movq	8(%r14), %rdi
	leaq	L_.str.12(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	8(%r14), %rdi
	leaq	L_.str.13(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	leaq	L_str.19(%rip), %rdi
	jmp	LBB0_22
LBB0_20:
	leaq	L_str.20(%rip), %rdi
LBB0_22:
	callq	_puts
	xorl	%r15d, %r15d
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.24:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
LBB0_25:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_EI_NIDENT,4,2                  ## @EI_NIDENT
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: no arch\n"

	.comm	_stdin,4,2                      ## @stdin
L_.str.1:                               ## @.str.1
	.asciz	"Error: input truncated\n"

	.comm	_ELFMAG,8,3                     ## @ELFMAG
	.comm	_SELFMAG,4,2                    ## @SELFMAG
L_.str.2:                               ## @.str.2
	.asciz	"Error: not ELF\n"

	.comm	_EI_CLASS,8,3                   ## @EI_CLASS
	.comm	_EI_DATA,8,3                    ## @EI_DATA
L_.str.8:                               ## @.str.8
	.asciz	"\001\002"

L_.str.10:                              ## @.str.10
	.asciz	"\002\001"

L_.str.12:                              ## @.str.12
	.asciz	"h8300"

L_.str.13:                              ## @.str.13
	.asciz	"blackfin"

L_str:                                  ## @str
	.asciz	"#define KERNEL_ELFCLASS ELFCLASS64"

L_str.16:                               ## @str.16
	.asciz	"#define KERNEL_ELFDATA ELFDATA2MSB"

L_str.17:                               ## @str.17
	.asciz	"#define HOST_ELFCLASS ELFCLASS64"

L_str.18:                               ## @str.18
	.asciz	"#define HOST_ELFDATA ELFDATA2LSB"

L_str.19:                               ## @str.19
	.asciz	"#define MODULE_SYMBOL_PREFIX \"\""

L_str.20:                               ## @str.20
	.asciz	"#define MODULE_SYMBOL_PREFIX \"_\""

L_str.21:                               ## @str.21
	.asciz	"#define HOST_ELFDATA ELFDATA2MSB"

L_str.22:                               ## @str.22
	.asciz	"#define KERNEL_ELFDATA ELFDATA2LSB"

L_str.23:                               ## @str.23
	.asciz	"#define KERNEL_ELFCLASS ELFCLASS32"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _EI_NIDENT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _EI_NIDENT@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x9, x2
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	cmp	w0, #2
	b.eq	LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _stderr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w2, [x21]
LBB0_2:
Lloh12:
	adrp	x8, _stdin@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_fread
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
Lloh15:
	adrp	x8, _ELFMAG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ELFMAG@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
Lloh18:
	adrp	x8, _SELFMAG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SELFMAG@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_memcmp
	cbz	x0, LBB0_9
; %bb.4:
Lloh21:
	adrp	x8, _stderr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	bl	_fprintf
	mov	w0, #1
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.8:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh34:
	adrp	x8, _EI_CLASS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EI_CLASS@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	ldrb	w8, [x20, x8]
	cmp	w8, #131
	b.eq	LBB0_12
; %bb.10:
	cmp	w8, #130
	b.ne	LBB0_27
; %bb.11:
Lloh37:
	adrp	x0, l_str@PAGE
Lloh38:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh39:
	adrp	x0, l_str.23@PAGE
Lloh40:
	add	x0, x0, l_str.23@PAGEOFF
LBB0_13:
	bl	_puts
Lloh41:
	adrp	x8, _EI_DATA@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EI_DATA@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	ldrb	w8, [x20, x8]
	cmp	w8, #129
	b.eq	LBB0_16
; %bb.14:
	cmp	w8, #128
	b.ne	LBB0_27
; %bb.15:
Lloh44:
	adrp	x0, l_str.16@PAGE
Lloh45:
	add	x0, x0, l_str.16@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh46:
	adrp	x0, l_str.22@PAGE
Lloh47:
	add	x0, x0, l_str.22@PAGEOFF
LBB0_17:
	bl	_puts
Lloh48:
	adrp	x0, l_str.17@PAGE
Lloh49:
	add	x0, x0, l_str.17@PAGEOFF
	bl	_puts
	mov	w8, #258
	sturh	w8, [x29, #-48]
Lloh50:
	adrp	x1, l_.str.8@PAGE
Lloh51:
	add	x1, x1, l_.str.8@PAGEOFF
	sub	x0, x29, #48
	mov	w2, #2
	bl	_memcmp
	cbz	x0, LBB0_20
; %bb.18:
Lloh52:
	adrp	x1, l_.str.10@PAGE
Lloh53:
	add	x1, x1, l_.str.10@PAGEOFF
	sub	x0, x29, #48
	mov	w2, #2
	bl	_memcmp
	cbnz	x0, LBB0_27
; %bb.19:
Lloh54:
	adrp	x0, l_str.18@PAGE
Lloh55:
	add	x0, x0, l_str.18@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh56:
	adrp	x0, l_str.21@PAGE
Lloh57:
	add	x0, x0, l_str.21@PAGEOFF
LBB0_21:
	bl	_puts
	ldr	x0, [x19, #8]
Lloh58:
	adrp	x1, l_.str.12@PAGE
Lloh59:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_24
; %bb.22:
	ldr	x0, [x19, #8]
Lloh60:
	adrp	x1, l_.str.13@PAGE
Lloh61:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_24
; %bb.23:
Lloh62:
	adrp	x0, l_str.19@PAGE
Lloh63:
	add	x0, x0, l_str.19@PAGEOFF
	b	LBB0_25
LBB0_24:
Lloh64:
	adrp	x0, l_str.20@PAGE
Lloh65:
	add	x0, x0, l_str.20@PAGEOFF
LBB0_25:
	bl	_puts
	mov	w0, #0
	b	LBB0_7
LBB0_26:
	bl	___stack_chk_fail
LBB0_27:
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.comm	_EI_NIDENT,4,2                  ; @EI_NIDENT
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: no arch\n"

	.comm	_stdin,4,2                      ; @stdin
l_.str.1:                               ; @.str.1
	.asciz	"Error: input truncated\n"

	.comm	_ELFMAG,8,3                     ; @ELFMAG
	.comm	_SELFMAG,4,2                    ; @SELFMAG
l_.str.2:                               ; @.str.2
	.asciz	"Error: not ELF\n"

	.comm	_EI_CLASS,8,3                   ; @EI_CLASS
	.comm	_EI_DATA,8,3                    ; @EI_DATA
l_.str.8:                               ; @.str.8
	.asciz	"\001\002"

l_.str.10:                              ; @.str.10
	.asciz	"\002\001"

l_.str.12:                              ; @.str.12
	.asciz	"h8300"

l_.str.13:                              ; @.str.13
	.asciz	"blackfin"

l_str:                                  ; @str
	.asciz	"#define KERNEL_ELFCLASS ELFCLASS64"

l_str.16:                               ; @str.16
	.asciz	"#define KERNEL_ELFDATA ELFDATA2MSB"

l_str.17:                               ; @str.17
	.asciz	"#define HOST_ELFCLASS ELFCLASS64"

l_str.18:                               ; @str.18
	.asciz	"#define HOST_ELFDATA ELFDATA2LSB"

l_str.19:                               ; @str.19
	.asciz	"#define MODULE_SYMBOL_PREFIX \"\""

l_str.20:                               ; @str.20
	.asciz	"#define MODULE_SYMBOL_PREFIX \"_\""

l_str.21:                               ; @str.21
	.asciz	"#define HOST_ELFDATA ELFDATA2MSB"

l_str.22:                               ; @str.22
	.asciz	"#define KERNEL_ELFDATA ELFDATA2LSB"

l_str.23:                               ; @str.23
	.asciz	"#define KERNEL_ELFCLASS ELFCLASS32"

.subsections_via_symbols
