	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_section_group
_update_section_group:                  ## @update_section_group
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	leaq	-48(%rbp), %rsi
	callq	_elf_getshnum
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_2:
	movl	16(%r15), %edi
	leaq	-40(%rbp), %rsi
	callq	_gelf_getshdr
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_4:
	movl	16(%r15), %edi
	xorl	%esi, %esi
	callq	_elf_getdata
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_6:
	movl	-40(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_21
## %bb.7:
	cmpl	$0, -36(%rbp)
	jne	LBB0_9
## %bb.8:
	movl	$4, -36(%rbp)
LBB0_9:
	movq	(%rbx), %r12
	testb	$1, (%r12)
	je	LBB0_21
## %bb.10:
	callq	_malloc
	movq	%rax, %r8
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_err
	movq	(%r15), %r8
LBB0_12:
	movl	-40(%rbp), %esi
	movl	%esi, 8(%r15)
	movq	(%r12), %rax
	movq	%rax, (%r8)
	movl	%esi, %eax
	cltd
	idivl	-36(%rbp)
	cmpl	$2, %eax
	jl	LBB0_20
## %bb.13:
	movl	%eax, %eax
	movl	$1, %edx
	movl	$1, %edi
	movq	_SHN_UNDEF@GOTPCREL(%rip), %r9
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	addl	$-4, %esi
	movl	%esi, 8(%r15)
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rdi
	cmpq	%rdi, %rax
	je	LBB0_20
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rdi,8), %rcx
	cmpq	(%r9), %rcx
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpq	-48(%rbp), %rcx
	jae	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%r14), %rbx
	movq	(%rbx,%rcx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movslq	%edx, %rbx
	incl	%edx
	movq	%rcx, (%r8,%rbx,8)
	jmp	LBB0_19
LBB0_20:
	movl	$1, 12(%r15)
LBB0_21:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"elf_getshnum failed: %s"

L_.str.1:                               ## @.str.1
	.asciz	"gelf_getehdr() failed: %s"

L_.str.2:                               ## @.str.2
	.asciz	"elf_getdata() failed: %s"

L_.str.3:                               ## @.str.3
	.asciz	"malloc failed"

	.comm	_SHN_UNDEF,8,3                  ## @SHN_UNDEF
	.comm	_GRP_COMDAT,8,3                 ## @GRP_COMDAT
	.no_dead_strip	_update_section_group
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_section_group
_update_section_group:                  ; @update_section_group
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	mov	x1, sp
	bl	_elf_getshnum
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_errx
LBB0_2:
	ldr	w0, [x19, #16]
	add	x1, sp, #8
	bl	_gelf_getshdr
	cbnz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_errx
LBB0_4:
	ldr	w0, [x19, #16]
	mov	x1, #0
	bl	_elf_getdata
	mov	x21, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_errx
LBB0_6:
	ldr	w0, [sp, #8]
	cbz	w0, LBB0_20
; %bb.7:
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_9
; %bb.8:
	mov	w8, #4
	str	w8, [sp, #12]
LBB0_9:
	ldr	x21, [x21]
	ldrb	w8, [x21]
	tbz	w8, #0, LBB0_20
; %bb.10:
	bl	_malloc
	str	x0, [x19]
	cbnz	x0, LBB0_12
; %bb.11:
Lloh15:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
	ldr	x0, [x19]
LBB0_12:
	ldr	w8, [sp, #8]
	str	w8, [x19, #8]
	ldr	x9, [x21]
	str	x9, [x0]
	ldr	w9, [sp, #12]
	sdiv	w10, w8, w9
	cmp	w10, #2
	b.lt	LBB0_19
; %bb.13:
	add	x9, x21, #8
	sub	x10, x10, #1
	mov	w11, #1
Lloh20:
	adrp	x12, _SHN_UNDEF@GOTPAGE
Lloh21:
	ldr	x12, [x12, _SHN_UNDEF@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	sub	w8, w8, #4
	str	w8, [x19, #8]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x9, x9, #8
	subs	x10, x10, #1
	b.eq	LBB0_19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x9]
	ldr	x14, [x12]
	ldr	x15, [sp]
	cmp	x13, x14
	ccmp	x13, x15, #2, ne
	b.hs	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x14, [x20]
	ldr	x13, [x14, x13, lsl #3]
	cbz	x13, LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	str	x13, [x0, w11, sxtw #3]
	add	w11, w11, #1
	b	LBB0_15
LBB0_19:
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_20:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"elf_getshnum failed: %s"

l_.str.1:                               ; @.str.1
	.asciz	"gelf_getehdr() failed: %s"

l_.str.2:                               ; @.str.2
	.asciz	"elf_getdata() failed: %s"

l_.str.3:                               ; @.str.3
	.asciz	"malloc failed"

	.comm	_SHN_UNDEF,8,3                  ; @SHN_UNDEF
	.comm	_GRP_COMDAT,8,3                 ; @GRP_COMDAT
	.no_dead_strip	_update_section_group
.subsections_via_symbols
