	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setptr
_setptr:                                ## @setptr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpl	$1, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_apr_file_flush_locked
	testq	%rax, %rax
	jne	LBB0_12
## %bb.3:
	movl	$0, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	16(%rbx), %rax
LBB0_4:
	movq	%rax, %rcx
	subq	24(%rbx), %rcx
	addq	%r14, %rcx
	js	LBB0_7
## %bb.5:
	cmpq	%rax, %rcx
	jg	LBB0_7
## %bb.6:
	movq	%rcx, 8(%rbx)
	jmp	LBB0_10
LBB0_7:
	movl	32(%rbx), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_lseek
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.9:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	%r14, 24(%rbx)
LBB0_10:
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movq	_errno@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APR_SUCCESS,8,3                ## @APR_SUCCESS
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_errno,8,3                      ## @errno
	.no_dead_strip	_setptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setptr
_setptr:                                ; @setptr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_apr_file_flush_locked
	cbnz	x0, LBB0_12
; %bb.2:
	mov	x8, #0
	str	wzr, [x19]
	stp	xzr, xzr, [x19, #8]
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19, #16]
LBB0_4:
	ldr	x9, [x19, #24]
	sub	x9, x8, x9
	adds	x9, x9, x20
	b.mi	LBB0_7
; %bb.5:
	cmp	x9, x8
	b.gt	LBB0_7
; %bb.6:
	str	x9, [x19, #8]
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19, #32]
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_lseek
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.8:
	stp	xzr, xzr, [x19, #8]
	str	x20, [x19, #24]
LBB0_9:
Lloh3:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
LBB0_11:
	ldr	x0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_APR_SUCCESS,8,3                ; @APR_SUCCESS
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_errno,8,3                      ; @errno
	.no_dead_strip	_setptr
.subsections_via_symbols
