	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__libelf_newphdr                ## -- Begin function _libelf_newphdr
	.p2align	4, 0x90
__libelf_newphdr:                       ## @_libelf_newphdr
	.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_1
## %bb.3:
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%edx, %edx
	callq	__libelf_ehdr
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	xorl	%edi, %edi
	cmpl	%r15d, (%rbx)
	sete	%dil
	callq	_assert
	movq	_ELFCLASS32@GOTPCREL(%rip), %r13
	cmpl	%r15d, (%r13)
	sete	%al
	movq	_ELFCLASS64@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	8(%rbx), %rax
	movq	_EV_CURRENT@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	_ELF_T_PHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	movl	%r15d, %esi
	callq	__libelf_msize
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	testq	%r14, %r14
	je	LBB0_6
## %bb.9:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_calloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	cmpl	%r15d, (%r13)
	jne	LBB0_11
LBB0_8:
	leaq	32(%rbx), %r15
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_13
	jmp	LBB0_14
LBB0_1:
	movq	_ARGUMENT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_SEQUENCE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	xorl	%r12d, %r12d
	cmpl	%r15d, (%r13)
	je	LBB0_8
LBB0_11:
	leaq	24(%rbx), %r15
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
LBB0_13:
	callq	_free
LBB0_14:
	movq	%r12, (%r15)
	movq	%r14, 16(%rbx)
	movq	_ELF_C_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ELF_F_DIRTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_elf_flagphdr
	jmp	LBB0_15
LBB0_10:
	movq	_RESOURCE@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_LIBELF_SET_ERROR
LBB0_15:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARGUMENT,4,2                   ## @ARGUMENT
	.comm	_SEQUENCE,4,2                   ## @SEQUENCE
	.comm	_ELFCLASS32,4,2                 ## @ELFCLASS32
	.comm	_ELFCLASS64,4,2                 ## @ELFCLASS64
	.comm	_EV_CURRENT,8,3                 ## @EV_CURRENT
	.comm	_ELF_T_PHDR,4,2                 ## @ELF_T_PHDR
	.comm	_RESOURCE,4,2                   ## @RESOURCE
	.comm	_ELF_C_SET,4,2                  ## @ELF_C_SET
	.comm	_ELF_F_DIRTY,4,2                ## @ELF_F_DIRTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__libelf_newphdr                ; -- Begin function _libelf_newphdr
	.p2align	2
__libelf_newphdr:                       ; @_libelf_newphdr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	w2, #0
	bl	__libelf_ehdr
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, w21
	cset	w0, eq
	bl	_assert
Lloh0:
	adrp	x23, _ELFCLASS32@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ELFCLASS32@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w21
Lloh2:
	adrp	x8, _ELFCLASS64@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ELFCLASS64@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ccmp	w8, w21, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _EV_CURRENT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EV_CURRENT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
Lloh8:
	adrp	x8, _ELF_T_PHDR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ELF_T_PHDR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
	mov	x1, x21
	bl	__libelf_msize
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cbz	x20, LBB0_8
; %bb.3:
	mov	x0, x20
	mov	x1, x22
	bl	_calloc
	mov	x22, x0
	cbnz	x0, LBB0_9
; %bb.4:
Lloh11:
	adrp	x8, _RESOURCE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RESOURCE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_LIBELF_SET_ERROR
	b	LBB0_14
LBB0_5:
Lloh14:
	adrp	x8, _ARGUMENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ARGUMENT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _SEQUENCE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SEQUENCE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_LIBELF_SET_ERROR
	mov	x22, #0
	b	LBB0_14
LBB0_8:
	mov	x22, #0
LBB0_9:
	ldr	w8, [x23]
	cmp	w8, w21
	b.ne	LBB0_11
; %bb.10:
	mov	x21, x19
	ldr	x0, [x21, #32]!
	cbnz	x0, LBB0_12
	b	LBB0_13
LBB0_11:
	mov	x21, x19
	ldr	x0, [x21, #24]!
	cbz	x0, LBB0_13
LBB0_12:
	bl	_free
LBB0_13:
	str	x22, [x21]
	str	x20, [x19, #16]
Lloh18:
	adrp	x8, _ELF_C_SET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ELF_C_SET@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _ELF_F_DIRTY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ELF_F_DIRTY@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_elf_flagphdr
LBB0_14:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ARGUMENT,4,2                   ; @ARGUMENT
	.comm	_SEQUENCE,4,2                   ; @SEQUENCE
	.comm	_ELFCLASS32,4,2                 ; @ELFCLASS32
	.comm	_ELFCLASS64,4,2                 ; @ELFCLASS64
	.comm	_EV_CURRENT,8,3                 ; @EV_CURRENT
	.comm	_ELF_T_PHDR,4,2                 ; @ELF_T_PHDR
	.comm	_RESOURCE,4,2                   ; @RESOURCE
	.comm	_ELF_C_SET,4,2                  ; @ELF_C_SET
	.comm	_ELF_F_DIRTY,4,2                ; @ELF_F_DIRTY
.subsections_via_symbols
