	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf_get_word
_elf_get_word:                          ## @elf_get_word
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_EI_CLASS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	cmpl	$131, %ecx
	je	LBB0_12
## %bb.1:
	cmpl	$132, %ecx
	je	LBB0_8
## %bb.2:
	cmpl	$133, %ecx
	jne	LBB0_14
## %bb.3:
	movq	_EI_DATA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	cmpl	$128, %eax
	je	LBB0_11
## %bb.4:
	movq	_elf32_offsets@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_13
LBB0_8:
	movq	_EI_DATA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	cmpl	$128, %eax
	je	LBB0_11
## %bb.9:
	movq	_elf64_offsets@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	(%rcx), %rcx
	movslq	(%rcx,%rdx,4), %rcx
	addq	%rcx, %rsi
	cmpl	$130, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$129, %eax
	jne	LBB0_14
## %bb.7:
	movq	%rsi, %rdi
	popq	%rbp
	jmp	_be32dec                        ## TAILCALL
LBB0_11:
	leaq	L_.str(%rip), %rsi
LBB0_13:
	movl	$1, %edi
	callq	_errx
LBB0_14:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_10:
	movq	%rsi, %rdi
	popq	%rbp
	jmp	_le32dec                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EI_CLASS,8,3                   ## @EI_CLASS
	.comm	_elf32_offsets,8,3              ## @elf32_offsets
	.comm	_EI_DATA,8,3                    ## @EI_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid data format"

	.comm	_elf64_offsets,8,3              ## @elf64_offsets
L_.str.1:                               ## @.str.1
	.asciz	"invalid class"

	.no_dead_strip	_elf_get_word
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf_get_word
_elf_get_word:                          ; @elf_get_word
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _EI_CLASS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EI_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cmp	w9, #131
	b.eq	LBB0_7
; %bb.1:
	cmp	w9, #132
	b.eq	LBB0_8
; %bb.2:
	cmp	w9, #133
	b.ne	LBB0_14
; %bb.3:
Lloh3:
	adrp	x9, _EI_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EI_DATA@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, #128
	b.eq	LBB0_12
; %bb.4:
Lloh6:
	adrp	x9, _elf32_offsets@GOTPAGE
Lloh7:
	ldr	x9, [x9, _elf32_offsets@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldrsw	x9, [x9, x2, lsl #2]
	add	x0, x1, x9
	cmp	w8, #130
	b.eq	LBB0_15
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_14
; %bb.6:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_be32dec
LBB0_7:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_8:
Lloh11:
	adrp	x9, _EI_DATA@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EI_DATA@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, #128
	b.eq	LBB0_12
; %bb.9:
Lloh14:
	adrp	x9, _elf64_offsets@GOTPAGE
Lloh15:
	ldr	x9, [x9, _elf64_offsets@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldrsw	x9, [x9, x2, lsl #2]
	add	x0, x1, x9
	cmp	w8, #130
	b.eq	LBB0_15
; %bb.10:
	cmp	w8, #129
	b.ne	LBB0_14
; %bb.11:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_be32dec
LBB0_12:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
LBB0_13:
	mov	w0, #1
	bl	_errx
LBB0_14:
	mov	x0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_le32dec
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EI_CLASS,8,3                   ; @EI_CLASS
	.comm	_elf32_offsets,8,3              ; @elf32_offsets
	.comm	_EI_DATA,8,3                    ; @EI_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid data format"

	.comm	_elf64_offsets,8,3              ; @elf64_offsets
l_.str.1:                               ; @.str.1
	.asciz	"invalid class"

	.no_dead_strip	_elf_get_word
.subsections_via_symbols
