	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pos_out                        ## -- Begin function pos_out
	.p2align	4, 0x90
_pos_out:                               ## @pos_out
	.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	_out@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_ISSEEK@GOTPCREL(%rip), %rcx
	movq	_ISPIPE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_4
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movl	32(%r12), %ebx
	movq	%r12, %rdi
	callq	_seek_offset
	movq	_SEEK_CUR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_lseek
	cmpl	$-1, %eax
	jne	LBB0_24
## %bb.2:
	cmpq	$0, (%r14)
	je	LBB0_24
## %bb.3:
	movq	8(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_err                            ## TAILCALL
LBB0_4:
	cmpq	$0, 16(%r12)
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %edi
	callq	_errx
	movl	(%r12), %eax
LBB0_6:
	movq	_NOREAD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.21:
	movq	_MTFSR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	16(%r12), %eax
	movl	32(%r12), %edi
	movl	%eax, -48(%rbp)
	movq	_MTIOCTOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_24
## %bb.22:
	movq	8(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
	jmp	LBB0_24
LBB0_7:
	cmpq	$0, 16(%r12)
	jle	LBB0_24
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r12), %edi
	movl	24(%r12), %edx
	movl	28(%r12), %esi
	callq	_read
	testl	%eax, %eax
	jle	LBB0_10
## %bb.23:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	cmpq	16(%r12), %rbx
	jl	LBB0_9
	jmp	LBB0_24
LBB0_10:
	cmpl	$-1, %eax
	jne	LBB0_12
## %bb.11:
	movq	8(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_12:
	movq	_MTBSR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	$1, -48(%rbp)
	movl	32(%r12), %edi
	movq	_MTIOCTOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_14
## %bb.13:
	movq	8(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_14:
	cmpq	16(%r12), %rbx
	jge	LBB0_24
## %bb.15:
	leaq	L_.str(%rip), %r14
	leaq	L_.str.3(%rip), %r15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	cmpq	16(%r12), %rbx
	jge	LBB0_24
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	32(%r12), %edi
	movl	24(%r12), %edx
	movl	28(%r12), %esi
	callq	_write
	movl	%eax, %r13d
	cmpl	$-1, %eax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%r12), %rdx
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_err
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	cmpl	24(%r12), %r13d
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%r12), %rdx
	movl	$1, %edi
	movq	%r15, %rsi
	callq	_errx
	jmp	LBB0_20
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_out,40,3                       ## @out
	.comm	_ISSEEK,4,2                     ## @ISSEEK
	.comm	_ISPIPE,4,2                     ## @ISPIPE
	.comm	_errno,8,3                      ## @errno
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"%s: illegal offset"

L_.str.2:                               ## @.str.2
	.asciz	"oseek/seek"

	.comm	_NOREAD,4,2                     ## @NOREAD
	.comm	_MTFSR,4,2                      ## @MTFSR
	.comm	_MTIOCTOP,4,2                   ## @MTIOCTOP
	.comm	_MTBSR,4,2                      ## @MTBSR
L_.str.3:                               ## @.str.3
	.asciz	"%s: write failure"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pos_out                        ; -- Begin function pos_out
	.p2align	2
_pos_out:                               ; @pos_out
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, _out@GOTPAGE
Lloh1:
	ldr	x19, [x19, _out@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _ISSEEK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ISSEEK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _ISPIPE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ISPIPE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh8:
	adrp	x21, _errno@GOTPAGE
Lloh9:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	str	xzr, [x21]
	ldr	w20, [x19, #32]
	mov	x0, x19
	bl	_seek_offset
	mov	x1, x0
Lloh10:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_lseek
	ldr	x8, [x21]
	cmn	w0, #1
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_23
; %bb.2:
	ldr	x2, [x19, #8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_err
LBB0_3:
	ldr	x9, [x19, #16]
	tbz	x9, #63, LBB0_5
; %bb.4:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	w8, [x19]
LBB0_5:
Lloh19:
	adrp	x9, _NOREAD@GOTPAGE
Lloh20:
	ldr	x9, [x9, _NOREAD@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
Lloh22:
	adrp	x8, _MTFSR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MTFSR@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	stp	w9, w8, [sp, #8]
	ldr	w0, [x19, #32]
Lloh25:
	adrp	x8, _MTIOCTOP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MTIOCTOP@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_23
; %bb.7:
	ldr	x2, [x19, #8]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
	b	LBB0_23
LBB0_8:
	ldr	x8, [x19, #16]
	cmp	x8, #1
	b.lt	LBB0_23
; %bb.9:
	mov	x23, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x19, #28]
	ldr	w2, [x19, #24]
	bl	_read
	cmp	w0, #0
	b.le	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x23, x23, #1
	ldr	x8, [x19, #16]
	cmp	x23, x8
	b.lt	LBB0_10
	b	LBB0_23
LBB0_12:
	cmn	w0, #1
	b.ne	LBB0_14
; %bb.13:
	ldr	x2, [x19, #8]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_14:
Lloh32:
	adrp	x8, _MTBSR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MTBSR@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [sp, #8]
	ldr	w0, [x19, #32]
Lloh35:
	adrp	x8, _MTIOCTOP@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MTIOCTOP@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_16
; %bb.15:
	ldr	x2, [x19, #8]
Lloh38:
	adrp	x1, l_.str@PAGE
Lloh39:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_16:
	ldr	x8, [x19, #16]
	cmp	x23, x8
	b.ge	LBB0_23
; %bb.17:
Lloh40:
	adrp	x20, l_.str@PAGE
Lloh41:
	add	x20, x20, l_.str@PAGEOFF
Lloh42:
	adrp	x21, l_.str.3@PAGE
Lloh43:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x23, x23, #1
	ldr	x8, [x19, #16]
	cmp	x23, x8
	b.ge	LBB0_23
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x19, #28]
	ldr	w2, [x19, #24]
	bl	_write
	mov	x22, x0
	cmn	w0, #1
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x2, [x19, #8]
	mov	w0, #1
	mov	x1, x20
	bl	_err
LBB0_21:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x19, #24]
	cmp	w22, w8
	b.eq	LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x2, [x19, #8]
	mov	w0, #1
	mov	x1, x21
	bl	_errx
	b	LBB0_18
LBB0_23:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_out,40,3                       ; @out
	.comm	_ISSEEK,4,2                     ; @ISSEEK
	.comm	_ISPIPE,4,2                     ; @ISPIPE
	.comm	_errno,8,3                      ; @errno
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"%s: illegal offset"

l_.str.2:                               ; @.str.2
	.asciz	"oseek/seek"

	.comm	_NOREAD,4,2                     ; @NOREAD
	.comm	_MTFSR,4,2                      ; @MTFSR
	.comm	_MTIOCTOP,4,2                   ; @MTIOCTOP
	.comm	_MTBSR,4,2                      ; @MTBSR
l_.str.3:                               ; @.str.3
	.asciz	"%s: write failure"

.subsections_via_symbols
