	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pad_section
_pad_section:                           ## @pad_section
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r15
	movq	(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.2:
	movq	%rdi, %r14
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_err
	movq	(%r15), %rbx
	movq	24(%r15), %rax
LBB0_4:
	movl	(%r14), %esi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_memset
	movl	16(%r15), %edi
	callq	_elf_newdata
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_6:
	movl	$1, (%rbx)
	movq	24(%r15), %rax
	movq	%rax, 32(%rbx)
	movq	_ELF_T_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movdqu	(%r15), %xmm0
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
	movdqu	%xmm0, 8(%rbx)
	movq	_EV_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	16(%r15), %edi
	leaq	-32(%rbp), %rsi
	callq	_gelf_getshdr
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_8:
	movq	(%r15), %rax
	addq	8(%r15), %rax
	movq	%rax, -32(%rbp)
	movl	16(%r15), %edi
	leaq	-32(%rbp), %rsi
	callq	_gelf_update_shdr
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	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	"malloc failed"

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

	.comm	_ELF_T_BYTE,4,2                 ## @ELF_T_BYTE
	.comm	_EV_CURRENT,4,2                 ## @EV_CURRENT
L_.str.2:                               ## @.str.2
	.asciz	"gelf_getshdr() failed: %s"

L_.str.3:                               ## @.str.3
	.asciz	"elf_update_shdr failed: %s"

	.no_dead_strip	_pad_section
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pad_section
_pad_section:                           ; @pad_section
	.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
	cbz	x1, LBB0_10
; %bb.1:
	mov	x19, x1
	ldr	x21, [x1]
	cbz	x21, LBB0_10
; %bb.2:
	mov	x20, x0
	mov	x0, x21
	bl	_malloc
	str	x0, [x19, #24]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
	ldr	x0, [x19, #24]
	ldr	x21, [x19]
LBB0_4:
	ldr	w1, [x20]
	mov	x2, x21
	bl	_memset
	ldr	w0, [x19, #16]
	bl	_elf_newdata
	mov	x20, x0
	cbnz	x0, LBB0_6
; %bb.5:
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_6:
	mov	w8, #1
	str	w8, [x20]
	ldr	x8, [x19, #24]
	str	x8, [x20, #32]
Lloh10:
	adrp	x8, _ELF_T_BYTE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ELF_T_BYTE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	q0, [x19]
	ext.16b	v0, v0, v0, #8
	stur	q0, [x20, #8]
Lloh13:
	adrp	x9, _EV_CURRENT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EV_CURRENT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
	ldr	w0, [x19, #16]
	add	x1, sp, #8
	bl	_gelf_getshdr
	cbnz	x0, LBB0_8
; %bb.7:
Lloh16:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_errx
LBB0_8:
	ldp	x9, x8, [x19]
	add	x8, x9, x8
	str	x8, [sp, #8]
	ldr	w0, [x19, #16]
	add	x1, sp, #8
	bl	_gelf_update_shdr
	cbnz	w0, LBB0_10
; %bb.9:
Lloh21:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh23:
	ldr	w19, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_errx
LBB0_10:
	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 AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc failed"

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

	.comm	_ELF_T_BYTE,4,2                 ; @ELF_T_BYTE
	.comm	_EV_CURRENT,4,2                 ; @EV_CURRENT
l_.str.2:                               ; @.str.2
	.asciz	"gelf_getshdr() failed: %s"

l_.str.3:                               ; @.str.3
	.asciz	"elf_update_shdr failed: %s"

	.no_dead_strip	_pad_section
.subsections_via_symbols
