	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gelf_getphdr                   ## -- Begin function gelf_getphdr
	.p2align	4, 0x90
_gelf_getphdr:                          ## @gelf_getphdr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.2:
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	movq	_ELFCLASS32@GOTPCREL(%rip), %r13
	movq	_ELFCLASS64@GOTPCREL(%rip), %rax
	cmpl	(%r13), %r15d
	je	LBB0_4
## %bb.3:
	cmpl	(%rax), %r15d
	jne	LBB0_12
LBB0_4:
	testl	%r12d, %r12d
	js	LBB0_12
## %bb.5:
	movq	_ELF_K_ELF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 8(%rbx)
	jne	LBB0_12
## %bb.6:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_elf_getphdrnum
	movq	_ELFCLASS64@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	js	LBB0_12
## %bb.7:
	movl	%r12d, %r12d
	cmpq	%r12, -48(%rbp)
	jbe	LBB0_12
## %bb.8:
	cmpl	(%r13), %r15d
	jne	LBB0_14
## %bb.9:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	__libelf_ehdr
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	__libelf_getphdr
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	imulq	$56, %r12, %rcx
	movl	52(%rax,%rcx), %edx
	movl	%edx, 52(%r14)
	movl	48(%rax,%rcx), %edx
	movl	%edx, 48(%r14)
	movups	32(%rax,%rcx), %xmm0
	movups	%xmm0, 32(%r14)
	movups	16(%rax,%rcx), %xmm0
	movups	%xmm0, 16(%r14)
	movl	8(%rax,%rcx), %edx
	movl	%edx, 8(%r14)
	movq	(%rax,%rcx), %rax
	movq	%rax, (%r14)
	jmp	LBB0_13
LBB0_12:
	movq	_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_LIBELF_SET_ERROR
LBB0_13:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%rcx, %r15
	callq	__libelf_ehdr
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	__libelf_getphdr
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	imulq	$56, %r12, %rcx
	movq	48(%rax,%rcx), %rdx
	movq	%rdx, 48(%r14)
	movups	(%rax,%rcx), %xmm0
	movups	16(%rax,%rcx), %xmm1
	movups	32(%rax,%rcx), %xmm2
	movups	%xmm2, 32(%r14)
	movups	%xmm1, 16(%r14)
	movups	%xmm0, (%r14)
	jmp	LBB0_13
LBB0_17:
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ELFCLASS32,4,2                 ## @ELFCLASS32
	.comm	_ELFCLASS64,4,2                 ## @ELFCLASS64
	.comm	_ELF_K_ELF,8,3                  ## @ELF_K_ELF
	.comm	_ARGUMENT,4,2                   ## @ARGUMENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gelf_getphdr                   ; -- Begin function gelf_getphdr
	.p2align	2
_gelf_getphdr:                          ; @gelf_getphdr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x2
	cbz	x2, LBB0_11
; %bb.2:
	mov	x20, x0
	ldr	w21, [x0]
Lloh0:
	adrp	x23, _ELFCLASS32@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ELFCLASS32@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x24, _ELFCLASS64@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ELFCLASS64@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w21, w8
	ccmp	w21, w9, #4, ne
	b.ne	LBB0_11
; %bb.3:
	mov	x22, x1
	tbnz	w1, #31, LBB0_11
; %bb.4:
	ldr	x8, [x20, #8]
Lloh4:
	adrp	x9, _ELF_K_ELF@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ELF_K_ELF@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.5:
	add	x1, sp, #8
	mov	x0, x20
	bl	_elf_getphdrnum
	tbnz	x0, #63, LBB0_11
; %bb.6:
	mov	w22, w22
	ldr	x8, [sp, #8]
	cmp	x8, x22
	b.ls	LBB0_11
; %bb.7:
	ldr	w8, [x23]
	cmp	w21, w8
	b.ne	LBB0_14
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	__libelf_ehdr
	cbz	x0, LBB0_12
; %bb.9:
	ldr	w1, [x23]
	mov	x0, x20
	bl	__libelf_getphdr
	cbz	x0, LBB0_12
; %bb.10:
	mov	w8, #56
	madd	x8, x22, x8, x0
	ldr	d0, [x8, #48]
	str	d0, [x19, #48]
	ldp	x10, x9, [x8, #32]
	stp	x10, x9, [x19, #32]
	ldr	q0, [x8, #16]
	str	q0, [x19, #16]
	ldr	w9, [x8, #8]
	str	w9, [x19, #8]
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_13
LBB0_11:
Lloh7:
	adrp	x8, _ARGUMENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ARGUMENT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_LIBELF_SET_ERROR
LBB0_12:
	mov	x19, #0
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
	ldr	w1, [x24]
	mov	x0, x20
	mov	w2, #0
	bl	__libelf_ehdr
	cbz	x0, LBB0_12
; %bb.15:
	ldr	w1, [x24]
	mov	x0, x20
	bl	__libelf_getphdr
	cbz	x0, LBB0_12
; %bb.16:
	mov	w8, #56
	madd	x8, x22, x8, x0
	ldp	q0, q1, [x8]
	ldr	q2, [x8, #32]
	ldr	x8, [x8, #48]
	str	x8, [x19, #48]
	stp	q1, q2, [x19, #16]
	str	q0, [x19]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ELFCLASS32,4,2                 ; @ELFCLASS32
	.comm	_ELFCLASS64,4,2                 ; @ELFCLASS64
	.comm	_ELF_K_ELF,8,3                  ; @ELF_K_ELF
	.comm	_ARGUMENT,4,2                   ; @ARGUMENT
.subsections_via_symbols
