	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_seek                       ## -- Begin function bfd_seek
	.p2align	4, 0x90
_bfd_seek:                              ## @bfd_seek
	.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
	movl	%edx, %ebx
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movq	%rax, %r14
	cmpl	%edx, (%rax)
	sete	%al
	movq	_SEEK_CUR@GOTPCREL(%rip), %r13
	cmpl	%edx, (%r13)
	movq	%rsi, %r12
	movq	%rdi, %r15
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_BFD_ASSERT
	xorl	%esi, %esi
	testq	%r12, %r12
	jne	LBB0_2
## %bb.1:
	cmpl	%ebx, (%r13)
	je	LBB0_30
LBB0_2:
	movq	_BFD_IN_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_12
## %bb.3:
	movq	48(%r15), %r13
	cmpl	%ebx, (%r14)
	je	LBB0_5
## %bb.4:
	addl	4(%r15), %r12d
LBB0_5:
	movl	%r12d, 4(%r15)
	movl	(%r13), %eax
	cmpl	%eax, %r12d
	jle	LBB0_30
## %bb.6:
	movq	8(%r15), %rcx
	movq	_write_direction@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.7:
	movq	_both_direction@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.11:
	movl	%eax, 4(%r15)
	movq	_bfd_error_file_truncated@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bfd_set_error
	movl	$-1, %esi
	jmp	LBB0_30
LBB0_12:
	movq	16(%r15), %rax
	movq	_bfd_archive@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.13:
	movl	(%r14), %eax
LBB0_14:
	movq	%r12, %rsi
	cmpl	%ebx, %eax
	je	LBB0_18
	jmp	LBB0_20
LBB0_15:
	cmpq	$0, 40(%r15)
	movl	(%r14), %eax
	jne	LBB0_14
## %bb.16:
	cmpl	%ebx, %eax
	jne	LBB0_14
## %bb.17:
	movslq	4(%r15), %rax
	cmpq	%r12, %rax
	je	LBB0_30
LBB0_18:
	cmpq	$0, 40(%r15)
	movq	%r12, %rsi
	je	LBB0_20
## %bb.19:
	movq	24(%r15), %rsi
	addq	%r12, %rsi
LBB0_20:
	movq	32(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.22:
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	*(%rcx)
	testl	%eax, %eax
	jne	LBB0_23
## %bb.26:
	cmpl	%ebx, (%r14)
	jne	LBB0_28
## %bb.27:
	movl	%r12d, 4(%r15)
	jmp	LBB0_29
LBB0_8:
	addl	$127, %eax
	andl	$-128, %eax
	movl	%r12d, (%r13)
	addl	$127, %r12d
	andl	$-128, %r12d
	cmpl	%eax, %r12d
	jle	LBB0_30
## %bb.9:
	movl	4(%r13), %edi
	movl	%r12d, %esi
	callq	_bfd_realloc
	xorl	%esi, %esi
	movl	%eax, 4(%r13)
	testl	%eax, %eax
	jne	LBB0_30
## %bb.10:
	movl	$0, (%r13)
	movl	$-1, %esi
	jmp	LBB0_30
LBB0_21:
	movl	$-1, %eax
LBB0_23:
	movl	%eax, %r12d
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	%r15, %rdi
	callq	_bfd_tell
	movq	_EINVAL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_25
## %bb.24:
	movq	_bfd_error_file_truncated@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bfd_set_error
	movl	%r12d, %esi
	jmp	LBB0_30
LBB0_25:
	movq	_bfd_error_system_call@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bfd_set_error
	movl	%ebx, (%r14)
	movl	%r12d, %esi
	jmp	LBB0_30
LBB0_28:
	addl	%r12d, 4(%r15)
LBB0_29:
	xorl	%esi, %esi
LBB0_30:
	movl	%esi, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_BFD_IN_MEMORY,4,2              ## @BFD_IN_MEMORY
	.comm	_write_direction,8,3            ## @write_direction
	.comm	_both_direction,8,3             ## @both_direction
	.comm	_bfd_error_file_truncated,4,2   ## @bfd_error_file_truncated
	.comm	_bfd_archive,8,3                ## @bfd_archive
	.comm	_errno,4,2                      ## @errno
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_bfd_error_system_call,4,2      ## @bfd_error_system_call
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bfd_seek                       ; -- Begin function bfd_seek
	.p2align	2
_bfd_seek:                              ; @bfd_seek
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SEEK_SET@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w2
Lloh2:
	adrp	x22, _SEEK_CUR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SEEK_CUR@GOTPAGEOFF]
	ldr	w8, [x22]
	ccmp	w8, w2, #4, ne
	cset	w0, eq
	bl	_BFD_ASSERT
	cbnz	x20, LBB0_2
; %bb.1:
	ldr	w8, [x22]
	cmp	w8, w21
	b.eq	LBB0_16
LBB0_2:
	ldr	w8, [x19]
Lloh4:
	adrp	x9, _BFD_IN_MEMORY@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BFD_IN_MEMORY@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.3:
	ldr	x22, [x19, #48]
	ldr	w8, [x23]
	cmp	w8, w21
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x19, #4]
	add	w20, w8, w20
LBB0_5:
	str	w20, [x19, #4]
	ldr	w8, [x22]
	cmp	w20, w8
	b.le	LBB0_16
; %bb.6:
	ldr	x9, [x19, #8]
Lloh7:
	adrp	x10, _write_direction@GOTPAGE
Lloh8:
	ldr	x10, [x10, _write_direction@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
Lloh10:
	adrp	x11, _both_direction@GOTPAGE
Lloh11:
	ldr	x11, [x11, _both_direction@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_24
; %bb.7:
	add	w8, w8, #127
	and	w8, w8, #0xffffff80
	str	w20, [x22]
	add	w9, w20, #127
	and	w1, w9, #0xffffff80
	cmp	w1, w8
	b.le	LBB0_16
; %bb.8:
	ldr	w0, [x22, #4]
	bl	_bfd_realloc
	str	w0, [x22, #4]
	cbnz	w0, LBB0_16
; %bb.9:
	str	wzr, [x22]
	b	LBB0_25
LBB0_10:
	ldr	x8, [x19, #16]
Lloh13:
	adrp	x9, _bfd_archive@GOTPAGE
Lloh14:
	ldr	x9, [x9, _bfd_archive@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	ldr	w8, [x23]
LBB0_12:
	mov	x1, x20
	cmp	w8, w21
	b.eq	LBB0_18
	b	LBB0_20
LBB0_13:
	ldr	x9, [x19, #40]
	ldr	w8, [x23]
	cbnz	x9, LBB0_12
; %bb.14:
	cmp	w8, w21
	b.ne	LBB0_12
; %bb.15:
	ldrsw	x8, [x19, #4]
	cmp	x8, x20
	b.ne	LBB0_18
LBB0_16:
	mov	w22, #0
LBB0_17:
	mov	x0, x22
	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_18:
	ldr	x8, [x19, #40]
	mov	x1, x20
	cbz	x8, LBB0_20
; %bb.19:
	ldr	x8, [x19, #24]
	add	x1, x8, x20
LBB0_20:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_26
; %bb.21:
	ldr	x8, [x8]
	mov	x0, x19
	mov	x2, x21
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_27
; %bb.22:
	ldr	w8, [x23]
	cmp	w8, w21
	b.ne	LBB0_30
; %bb.23:
	mov	w22, #0
	str	w20, [x19, #4]
	b	LBB0_17
LBB0_24:
	str	w8, [x19, #4]
Lloh16:
	adrp	x8, _bfd_error_file_truncated@GOTPAGE
Lloh17:
	ldr	x8, [x8, _bfd_error_file_truncated@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_bfd_set_error
LBB0_25:
	mov	w22, #-1
	b	LBB0_17
LBB0_26:
	mov	w22, #-1
LBB0_27:
Lloh19:
	adrp	x20, _errno@GOTPAGE
Lloh20:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
	mov	x0, x19
	bl	_bfd_tell
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_29
; %bb.28:
Lloh24:
	adrp	x8, _bfd_error_file_truncated@GOTPAGE
Lloh25:
	ldr	x8, [x8, _bfd_error_file_truncated@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_bfd_set_error
	b	LBB0_17
LBB0_29:
Lloh27:
	adrp	x8, _bfd_error_system_call@GOTPAGE
Lloh28:
	ldr	x8, [x8, _bfd_error_system_call@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_bfd_set_error
	str	w21, [x20]
	b	LBB0_17
LBB0_30:
	mov	w22, #0
	ldr	w8, [x19, #4]
	add	w8, w8, w20
	str	w8, [x19, #4]
	b	LBB0_17
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_BFD_IN_MEMORY,4,2              ; @BFD_IN_MEMORY
	.comm	_write_direction,8,3            ; @write_direction
	.comm	_both_direction,8,3             ; @both_direction
	.comm	_bfd_error_file_truncated,4,2   ; @bfd_error_file_truncated
	.comm	_bfd_archive,8,3                ; @bfd_archive
	.comm	_errno,4,2                      ; @errno
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_bfd_error_system_call,4,2      ; @bfd_error_system_call
.subsections_via_symbols
