	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coff_compute_checksum
_coff_compute_checksum:                 ## @coff_compute_checksum
	.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
	movq	%rdi, %r14
	movq	_pelength@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%r12d, %r12d
	movq	_SEEK_SET@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bfd_seek
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_coff_read_word
	addl	-44(%rbp), %ebx
	movl	%ebx, %ecx
	shrl	$16, %ecx
	addl	%ebx, %ecx
	movzwl	%cx, %ebx
	addq	$2, %r12
	testq	%rax, %rax
	jne	LBB0_1
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pelength,8,3                   ## @pelength
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_coff_compute_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coff_compute_checksum
_coff_compute_checksum:                 ; @coff_compute_checksum
	.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	x20, x0
	mov	x21, #0
	mov	w19, #0
Lloh0:
	adrp	x8, _pelength@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pelength@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x22, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SEEK_SET@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_bfd_seek
	cbnz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x1, sp, #12
	mov	x0, x20
	bl	_coff_read_word
	ldr	w8, [sp, #12]
	add	w8, w8, w19
	add	w8, w8, w8, lsr #16
	and	w19, w8, #0xffff
	add	x21, x21, #2
	cbnz	x0, LBB0_1
	b	LBB0_4
LBB0_3:
	mov	w19, #0
LBB0_4:
	mov	x0, 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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_pelength,8,3                   ; @pelength
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_coff_compute_checksum
.subsections_via_symbols
