	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_section
_load_section:                          ## @load_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	%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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SEC_LOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_5
## %bb.1:
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_bfd_section_size
	movl	%eax, %r15d
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bfd_section_lma
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	addl	%r15d, (%r13)
LBB0_4:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bfd_section_name
	movl	%r15d, %r13d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_printf_filtered
	movq	_gdb_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_print_address_numeric
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf_filtered
	movq	_gdb_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gdb_flush
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_write_long
	leaq	-52(%rbp), %rdi
	movq	%r13, %rsi
	callq	_write_long
	leaq	-56(%rbp), %rdi
	movl	$8, %esi
	callq	_process_read_request
	movl	%r15d, %edi
	callq	_xmalloc
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_bfd_get_section_contents
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_process_read_request
	movq	%rbx, %rdi
	callq	_xfree
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SEC_LOAD,4,2                   ## @SEC_LOAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Loading section %s, size 0x%lx lma "

	.comm	_gdb_stdout,4,2                 ## @gdb_stdout
L_.str.1:                               ## @.str.1
	.asciz	"\n"

	.no_dead_strip	_load_section
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_section
_load_section:                          ; @load_section
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w8, [x1]
Lloh3:
	adrp	x9, _SEC_LOAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SEC_LOAD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	bl	_bfd_section_size
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_bfd_section_lma
	cbz	w21, LBB0_5
; %bb.2:
	mov	x22, x0
	cbz	x23, LBB0_4
; %bb.3:
	ldr	w8, [x23]
	add	w8, w8, w21
	str	w8, [x23]
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_bfd_section_name
                                        ; kill: def $w0 killed $w0 def $x0
	mov	w23, w21
	stp	x0, x23, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf_filtered
Lloh8:
	adrp	x24, _gdb_stdout@GOTPAGE
Lloh9:
	ldr	x24, [x24, _gdb_stdout@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x22
	mov	w1, #1
	bl	_print_address_numeric
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf_filtered
	ldr	w0, [x24]
	bl	_gdb_flush
	add	x24, sp, #16
	add	x0, sp, #16
	mov	x1, x22
	bl	_write_long
	add	x0, x24, #4
	mov	x1, x23
	bl	_write_long
	add	x0, sp, #16
	mov	w1, #8
	bl	_process_read_request
	mov	x0, x21
	bl	_xmalloc
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	w3, #0
	mov	x4, x21
	bl	_bfd_get_section_contents
	mov	x0, x22
	mov	x1, x21
	bl	_process_read_request
	mov	x0, x22
	bl	_xfree
LBB0_5:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SEC_LOAD,4,2                   ; @SEC_LOAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Loading section %s, size 0x%lx lma "

	.comm	_gdb_stdout,4,2                 ; @gdb_stdout
l_.str.1:                               ; @.str.1
	.asciz	"\n"

	.no_dead_strip	_load_section
.subsections_via_symbols
