	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__libelf_getshdr                ## -- Begin function _libelf_getshdr
	.p2align	4, 0x90
__libelf_getshdr:                       ## @_libelf_getshdr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rax), %rcx
	movq	_ELF_K_ELF@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.6:
	movq	_ELFCLASSNONE@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	je	LBB0_5
## %bb.7:
	cmpl	%esi, 8(%rax)
	je	LBB0_5
## %bb.8:
	movq	_CLASS@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ARGUMENT@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_LIBELF_SET_ERROR
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ELF_K_ELF,8,3                  ## @ELF_K_ELF
	.comm	_ARGUMENT,4,2                   ## @ARGUMENT
	.comm	_ELFCLASSNONE,4,2               ## @ELFCLASSNONE
	.comm	_CLASS,4,2                      ## @CLASS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__libelf_getshdr                ; -- Begin function _libelf_getshdr
	.p2align	2
__libelf_getshdr:                       ; @_libelf_getshdr
	.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
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _ELF_K_ELF@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ELF_K_ELF@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.3:
Lloh3:
	adrp	x9, _ELFCLASSNONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ELFCLASSNONE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w1
	b.eq	LBB0_8
; %bb.4:
	ldr	w8, [x8, #8]
	cmp	w8, w1
	b.eq	LBB0_8
; %bb.5:
Lloh6:
	adrp	x8, _CLASS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CLASS@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _ARGUMENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARGUMENT@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_LIBELF_SET_ERROR
	mov	x0, #0
LBB0_8:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ELF_K_ELF,8,3                  ; @ELF_K_ELF
	.comm	_ARGUMENT,4,2                   ; @ARGUMENT
	.comm	_ELFCLASSNONE,4,2               ; @ELFCLASSNONE
	.comm	_CLASS,4,2                      ; @CLASS
.subsections_via_symbols
