	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pifs_write
_pifs_write:                            ## @pifs_write
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	(%r8), %edi
	leal	(%rcx,%rcx), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lseek
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.1:
	testq	%r15, %r15
	je	LBB0_2
## %bb.4:
	movb	$1, %r13b
	xorl	%r12d, %r12d
	movq	_SHRT_MAX@GOTPCREL(%rip), %r14
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	cmpw	$0, (%r14)
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movswl	%r15w, %edi
	callq	_get_byte
	cmpb	(%rbx), %al
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	incl	%r15d
	cmpw	(%r14), %r15w
	jl	LBB0_8
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r15d, %r15d
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movw	%r15w, -42(%rbp)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	-42(%rbp), %rsi
	movl	$2, %edx
	callq	_write
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	incq	%r12
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	cmpq	%r15, %r12
	setb	%r13b
	jne	LBB0_5
	jmp	LBB0_12
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_2:
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_13:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	negl	%eax
	testb	$1, %r13b
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	cmovnel	%eax, %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %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	_errno,4,2                      ## @errno
	.comm	_SHRT_MAX,2,1                   ## @SHRT_MAX
	.no_dead_strip	_pifs_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pifs_write
_pifs_write:                            ; @pifs_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x19, x2
	mov	x21, x1
	ldr	w0, [x4]
	lsl	w1, w3, #1
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_lseek
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.1:
	cbz	x19, LBB0_12
; %bb.2:
	mov	x22, #0
	mov	w24, #1
Lloh3:
	adrp	x23, _SHRT_MAX@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SHRT_MAX@GOTPAGEOFF]
Lloh5:
	adrp	x25, _errno@GOTPAGE
Lloh6:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldrsh	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w26, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxth	w0, w26
	bl	_get_byte
	ldrb	w8, [x21]
	cmp	w8, w0, uxtb
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	w8, w26, #1
	sxth	w26, w8
	ldrsh	w8, [x23]
	cmp	w26, w8
	b.lt	LBB0_5
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w26, #0
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	strh	w26, [sp, #14]
	ldr	w0, [x20]
	add	x1, sp, #14
	mov	w2, #2
	bl	_write
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	add	x22, x22, #1
	cmp	x22, x19
	cset	w24, lo
	b.ne	LBB0_3
	b	LBB0_12
LBB0_10:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_12
LBB0_11:
	ldr	w8, [x25]
	tst	w24, #0x1
	csneg	w19, w19, w8, eq
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_errno,4,2                      ; @errno
	.comm	_SHRT_MAX,2,1                   ; @SHRT_MAX
	.no_dead_strip	_pifs_write
.subsections_via_symbols
