	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generic_elf_osabi_sniffer
_generic_elf_osabi_sniffer:             ## @generic_elf_osabi_sniffer
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GDB_OSABI_UNKNOWN@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movl	%ebx, -28(%rbp)
	callq	_elf_elfheader
	movq	(%rax), %rax
	movq	_EI_OSABI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_10
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	_GDB_OSABI_SOLARIS@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movq	_generic_elf_osabi_sniff_abi_tag_sections@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_bfd_map_over_sections
	movl	-28(%rbp), %ebx
	jmp	LBB0_10
LBB0_4:
	movq	_GDB_OSABI_NETBSD_ELF@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_GDB_OSABI_LINUX@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_GDB_OSABI_HURD@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_GDB_OSABI_HPUX_ELF@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_GDB_OSABI_FREEBSD_ELF@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %ebx
	movl	%ebx, -28(%rbp)
LBB0_10:
	cmpl	(%r15), %ebx
	jne	LBB0_14
## %bb.11:
	movq	%r14, %rdi
	callq	_elf_elfheader
	movq	(%rax), %rdi
	addq	$32, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	-28(%rbp), %ebx
	jmp	LBB0_14
LBB0_13:
	movq	_GDB_OSABI_FREEBSD_ELF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_GDB_OSABI_UNKNOWN,4,2          ## @GDB_OSABI_UNKNOWN
	.comm	_EI_OSABI,8,3                   ## @EI_OSABI
	.comm	_generic_elf_osabi_sniff_abi_tag_sections,4,2 ## @generic_elf_osabi_sniff_abi_tag_sections
	.comm	_GDB_OSABI_FREEBSD_ELF,4,2      ## @GDB_OSABI_FREEBSD_ELF
	.comm	_GDB_OSABI_NETBSD_ELF,4,2       ## @GDB_OSABI_NETBSD_ELF
	.comm	_GDB_OSABI_LINUX,4,2            ## @GDB_OSABI_LINUX
	.comm	_GDB_OSABI_HURD,4,2             ## @GDB_OSABI_HURD
	.comm	_GDB_OSABI_SOLARIS,4,2          ## @GDB_OSABI_SOLARIS
	.comm	_GDB_OSABI_HPUX_ELF,4,2         ## @GDB_OSABI_HPUX_ELF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FreeBSD"

	.no_dead_strip	_generic_elf_osabi_sniffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generic_elf_osabi_sniffer
_generic_elf_osabi_sniffer:             ; @generic_elf_osabi_sniffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x21, _GDB_OSABI_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GDB_OSABI_UNKNOWN@GOTPAGEOFF]
	ldr	w20, [x21]
	str	w20, [sp, #12]
	bl	_elf_elfheader
Lloh2:
	adrp	x8, _EI_OSABI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EI_OSABI@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh4:
	ldr	x8, [x8]
	ldr	w8, [x9, x8, lsl #2]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_10
; %bb.1:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh7:
	adrp	x8, _GDB_OSABI_SOLARIS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GDB_OSABI_SOLARIS@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
Lloh9:
	adrp	x8, _generic_elf_osabi_sniff_abi_tag_sections@GOTPAGE
Lloh10:
	ldr	x8, [x8, _generic_elf_osabi_sniff_abi_tag_sections@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_bfd_map_over_sections
	ldr	w20, [sp, #12]
	b	LBB0_10
LBB0_4:
Lloh12:
	adrp	x8, _GDB_OSABI_NETBSD_ELF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GDB_OSABI_NETBSD_ELF@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh14:
	adrp	x8, _GDB_OSABI_LINUX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GDB_OSABI_LINUX@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh16:
	adrp	x8, _GDB_OSABI_HURD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GDB_OSABI_HURD@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh18:
	adrp	x8, _GDB_OSABI_HPUX_ELF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GDB_OSABI_HPUX_ELF@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x8, _GDB_OSABI_FREEBSD_ELF@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GDB_OSABI_FREEBSD_ELF@GOTPAGEOFF]
LBB0_9:
	ldr	w20, [x8]
	str	w20, [sp, #12]
LBB0_10:
	ldr	w8, [x21]
	cmp	w20, w8
	b.ne	LBB0_14
; %bb.11:
	mov	x0, x19
	bl	_elf_elfheader
	ldr	x8, [x0]
	add	x0, x8, #32
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w20, [sp, #12]
	b	LBB0_14
LBB0_13:
Lloh24:
	adrp	x8, _GDB_OSABI_FREEBSD_ELF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GDB_OSABI_FREEBSD_ELF@GOTPAGEOFF]
Lloh26:
	ldr	w20, [x8]
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_GDB_OSABI_UNKNOWN,4,2          ; @GDB_OSABI_UNKNOWN
	.comm	_EI_OSABI,8,3                   ; @EI_OSABI
	.comm	_generic_elf_osabi_sniff_abi_tag_sections,4,2 ; @generic_elf_osabi_sniff_abi_tag_sections
	.comm	_GDB_OSABI_FREEBSD_ELF,4,2      ; @GDB_OSABI_FREEBSD_ELF
	.comm	_GDB_OSABI_NETBSD_ELF,4,2       ; @GDB_OSABI_NETBSD_ELF
	.comm	_GDB_OSABI_LINUX,4,2            ; @GDB_OSABI_LINUX
	.comm	_GDB_OSABI_HURD,4,2             ; @GDB_OSABI_HURD
	.comm	_GDB_OSABI_SOLARIS,4,2          ; @GDB_OSABI_SOLARIS
	.comm	_GDB_OSABI_HPUX_ELF,4,2         ; @GDB_OSABI_HPUX_ELF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FreeBSD"

	.no_dead_strip	_generic_elf_osabi_sniffer
.subsections_via_symbols
