	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunos_scan_relocs
_sunos_scan_relocs:                     ## @sunos_scan_relocs
	.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
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.1:
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	cmpl	$0, (%rdi)
	je	LBB0_10
## %bb.2:
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_bfd_alloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_set_aout_section_data
	movl	%ebx, %edi
	callq	_bfd_malloc
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_aout_section_data
	movq	%r13, (%rax)
	xorl	%eax, %eax
	testq	%r13, %r13
	je	LBB0_12
LBB0_4:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_bfd_seek
	testq	%rax, %rax
	jne	LBB0_14
## %bb.5:
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_bfd_bread
	cmpl	%ebx, %eax
	jne	LBB0_14
## %bb.6:
	movq	%r15, %rdi
	callq	_obj_reloc_entry_size
	movq	_RELOC_STD_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.7:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%r13, %rcx
	movl	%ebx, %r8d
	callq	_sunos_scan_std_relocs
	testl	%eax, %eax
	je	LBB0_14
LBB0_8:
	movq	_TRUE@GOTPCREL(%rip), %rbx
	jmp	LBB0_15
LBB0_9:
	movq	_TRUE@GOTPCREL(%rip), %rbx
	jmp	LBB0_17
LBB0_10:
	movl	%ebx, %edi
	callq	_bfd_malloc
	movq	%rax, %r13
	testq	%r13, %r13
	jne	LBB0_4
LBB0_12:
	movq	_FALSE@GOTPCREL(%rip), %rbx
	jmp	LBB0_17
LBB0_13:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%r13, %rcx
	movl	%ebx, %r8d
	callq	_sunos_scan_ext_relocs
	testl	%eax, %eax
	jne	LBB0_8
LBB0_14:
	movq	_FALSE@GOTPCREL(%rip), %rbx
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	callq	_free
LBB0_17:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_RELOC_STD_SIZE,8,3             ## @RELOC_STD_SIZE
	.no_dead_strip	_sunos_scan_relocs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunos_scan_relocs
_sunos_scan_relocs:                     ; @sunos_scan_relocs
	.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	w3, LBB0_10
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_11
; %bb.2:
	mov	x0, x21
	mov	w1, #4
	bl	_bfd_alloc
	cbz	x0, LBB0_12
; %bb.3:
	mov	x1, x0
	mov	x0, x20
	bl	_set_aout_section_data
	mov	x0, x19
	bl	_bfd_malloc
	mov	x24, x0
	mov	x0, x20
	bl	_aout_section_data
	mov	x23, #0
	str	x24, [x0]
	cbz	x24, LBB0_12
LBB0_4:
	ldr	w1, [x20]
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_bfd_seek
	cbnz	x0, LBB0_8
; %bb.5:
	mov	x0, x24
	mov	x1, x19
	mov	x2, x21
	bl	_bfd_bread
	cmp	w0, w19
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x21
	bl	_obj_reloc_entry_size
Lloh3:
	adrp	x8, _RELOC_STD_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RELOC_STD_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.7:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x24
	mov	x4, x19
	bl	_sunos_scan_std_relocs
	cbnz	w0, LBB0_15
LBB0_8:
Lloh6:
	adrp	x19, _FALSE@GOTPAGE
Lloh7:
	ldr	x19, [x19, _FALSE@GOTPAGEOFF]
	cbz	x23, LBB0_13
LBB0_9:
	mov	x0, x23
	bl	_free
	b	LBB0_13
LBB0_10:
Lloh8:
	adrp	x19, _TRUE@GOTPAGE
Lloh9:
	ldr	x19, [x19, _TRUE@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_bfd_malloc
	mov	x23, x0
	mov	x24, x0
	cbnz	x24, LBB0_4
LBB0_12:
Lloh10:
	adrp	x19, _FALSE@GOTPAGE
Lloh11:
	ldr	x19, [x19, _FALSE@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x19]
	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
LBB0_14:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x24
	mov	x4, x19
	bl	_sunos_scan_ext_relocs
	cbz	w0, LBB0_8
LBB0_15:
Lloh12:
	adrp	x19, _TRUE@GOTPAGE
Lloh13:
	ldr	x19, [x19, _TRUE@GOTPAGEOFF]
	cbnz	x23, LBB0_9
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_RELOC_STD_SIZE,8,3             ; @RELOC_STD_SIZE
	.no_dead_strip	_sunos_scan_relocs
.subsections_via_symbols
