	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gelf_update_dyn                ## -- Begin function gelf_update_dyn
	.p2align	4, 0x90
_gelf_update_dyn:                       ## @gelf_update_dyn
	.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
	subq	$24, %rsp
	.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_5
## %bb.1:
	movl	%esi, %r15d
	testl	%esi, %esi
	js	LBB0_5
## %bb.2:
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.3:
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_5
## %bb.4:
	movq	8(%r12), %r13
	testq	%r13, %r13
	je	LBB0_5
## %bb.6:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %r14d
	movq	_ELFCLASS32@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	sete	%al
	movq	_ELFCLASS64@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	xorl	%eax, %eax
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_ELFCLASS32@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	movq	%rcx, %r14
	sete	%al
	movl	(%r12,%rax,4), %edi
	callq	__libelf_xlate_shtype
	movq	_ELF_T_DYN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.7:
	movl	4(%r13), %edx
	movq	%rax, %rdi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	callq	__libelf_msize
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movl	$1, %edi
	callq	_assert
	movl	%r15d, %r15d
	imulq	%r15, %r13
	cmpq	(%rbx), %r13
	jae	LBB0_5
## %bb.8:
	shlq	$2, %r15
	addq	8(%rbx), %r15
	cmpl	(%r14), %r12d
	jne	LBB0_10
## %bb.9:
	movq	_d_tag@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_LIBELF_COPY_S32
	movq	_d_un@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_LIBELF_COPY_U32
	jmp	LBB0_11
LBB0_5:
	movq	_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_LIBELF_SET_ERROR
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_11:
	movl	$1, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ARGUMENT,4,2                   ## @ARGUMENT
	.comm	_ELFCLASS32,4,2                 ## @ELFCLASS32
	.comm	_ELFCLASS64,4,2                 ## @ELFCLASS64
	.comm	_ELF_T_DYN,8,3                  ## @ELF_T_DYN
	.comm	_d_tag,4,2                      ## @d_tag
	.comm	_d_un,4,2                       ## @d_un
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gelf_update_dyn                ; -- Begin function gelf_update_dyn
	.p2align	2
_gelf_update_dyn:                       ; @gelf_update_dyn
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x1
	tbnz	w1, #31, LBB0_9
; %bb.2:
	mov	x19, x2
	cbz	x2, LBB0_9
; %bb.3:
	mov	x20, x0
	ldr	x25, [x0, #16]
	cbz	x25, LBB0_9
; %bb.4:
	ldr	x23, [x25, #8]
	cbz	x23, LBB0_9
; %bb.5:
	ldr	w22, [x23]
Lloh0:
	adrp	x24, _ELFCLASS32@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ELFCLASS32@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w22, w8
Lloh2:
	adrp	x8, _ELFCLASS64@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ELFCLASS64@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ccmp	w22, w8, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	w8, [x24]
	cmp	w22, w8
	cset	w8, eq
	ldr	w0, [x25, w8, uxtw #2]
	bl	__libelf_xlate_shtype
Lloh5:
	adrp	x8, _ELF_T_DYN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ELF_T_DYN@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.6:
	ldr	w2, [x23, #4]
	mov	x1, x22
	bl	__libelf_msize
	mov	x23, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	w0, #1
	bl	_assert
	mov	w8, w21
	mul	x9, x23, x8
	ldr	x10, [x20]
	cmp	x9, x10
	b.hs	LBB0_9
; %bb.7:
	ldr	w9, [x24]
	ldr	x10, [x20, #8]
	add	x20, x10, x8, lsl #2
	cmp	w22, w9
	b.ne	LBB0_11
; %bb.8:
Lloh8:
	adrp	x8, _d_tag@GOTPAGE
Lloh9:
	ldr	x8, [x8, _d_tag@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_LIBELF_COPY_S32
Lloh11:
	adrp	x8, _d_un@GOTPAGE
Lloh12:
	ldr	x8, [x8, _d_un@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_LIBELF_COPY_U32
	b	LBB0_12
LBB0_9:
Lloh14:
	adrp	x8, _ARGUMENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ARGUMENT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_LIBELF_SET_ERROR
	mov	w0, #0
LBB0_10:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	w8, [x19]
	str	w8, [x20]
LBB0_12:
	mov	w0, #1
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ARGUMENT,4,2                   ; @ARGUMENT
	.comm	_ELFCLASS32,4,2                 ; @ELFCLASS32
	.comm	_ELFCLASS64,4,2                 ; @ELFCLASS64
	.comm	_ELF_T_DYN,8,3                  ; @ELF_T_DYN
	.comm	_d_tag,4,2                      ; @d_tag
	.comm	_d_un,4,2                       ; @d_un
.subsections_via_symbols
